From 21f2f785e12c961a7c19dbf6aecc0f7dd136506d Mon Sep 17 00:00:00 2001 From: lj1412 Date: Tue, 14 Feb 2017 15:11:37 +0000 Subject: Init ncomp.openstack Change-Id: Ica7bc6ac64c8359e7e3d9846450f9fe15dd38146 Signed-off-by: lj1412 --- ncomp-openstack-model/.classpath | 32 + ncomp-openstack-model/.gitignore | 2 + ncomp-openstack-model/.project | 40 + .../.settings/org.eclipse.core.resources.prefs | 5 + .../.settings/org.eclipse.jdt.core.prefs | 8 + .../.settings/org.eclipse.m2e.core.prefs | 4 + ncomp-openstack-model/LICENSE.txt | 22 + ncomp-openstack-model/META-INF/MANIFEST.MF | 37 + ncomp-openstack-model/build.properties | 12 + ncomp-openstack-model/plugin.properties | 4 + ncomp-openstack-model/plugin.xml | 57 + ncomp-openstack-model/pom.xml | 18 + .../ncomp/openstack/OpenStackController.java | 108 + .../ncomp/openstack/OpenstackFactory.java | 63 + .../ncomp/openstack/OpenstackPackage.java | 266 ++ .../openstack/ceilometer/CeilometerAlarm.java | 330 ++ .../openstack/ceilometer/CeilometerFactory.java | 144 + .../openstack/ceilometer/CeilometerFilter.java | 144 + .../openstack/ceilometer/CeilometerMeter.java | 39 + .../openstack/ceilometer/CeilometerOrderedBy.java | 98 + .../openstack/ceilometer/CeilometerPackage.java | 2557 ++++++++++ .../openstack/ceilometer/CeilometerProject.java | 97 + .../openstack/ceilometer/CeilometerQuery.java | 107 + .../openstack/ceilometer/CeilometerRequest.java | 39 + .../openstack/ceilometer/CeilometerResource.java | 227 + .../openstack/ceilometer/CeilometerSample.java | 316 ++ .../openstack/ceilometer/CeilometerService.java | 103 + .../ceilometer/CeilometerThresholdAlarm.java | 70 + .../ceilometer/CeilometerThresholdAlarmRule.java | 252 + .../openstack/ceilometer/CreateAlarmRequest.java | 38 + .../ncomp/openstack/ceilometer/SampleRequest.java | 70 + .../ceilometer/impl/CeilometerAlarmImpl.java | 708 +++ .../ceilometer/impl/CeilometerFactoryImpl.java | 215 + .../ceilometer/impl/CeilometerFilterImpl.java | 350 ++ .../ceilometer/impl/CeilometerMeterImpl.java | 62 + .../ceilometer/impl/CeilometerOrderedByImpl.java | 238 + .../ceilometer/impl/CeilometerPackageImpl.java | 1123 +++++ .../ceilometer/impl/CeilometerProjectImpl.java | 246 + .../ceilometer/impl/CeilometerQueryImpl.java | 280 ++ .../ceilometer/impl/CeilometerRequestImpl.java | 62 + .../ceilometer/impl/CeilometerResourceImpl.java | 513 ++ .../ceilometer/impl/CeilometerSampleImpl.java | 672 +++ .../ceilometer/impl/CeilometerServiceImpl.java | 256 + .../impl/CeilometerThresholdAlarmImpl.java | 194 + .../impl/CeilometerThresholdAlarmRuleImpl.java | 551 +++ .../ceilometer/impl/CreateAlarmRequestImpl.java | 60 + .../ceilometer/impl/SampleRequestImpl.java | 196 + .../ceilometer/util/CeilometerAdapterFactory.java | 414 ++ .../ceilometer/util/CeilometerSwitch.java | 445 ++ .../openecomp/ncomp/openstack/compute/Address.java | 152 + .../ncomp/openstack/compute/Addresses.java | 90 + .../ncomp/openstack/compute/ComputeFactory.java | 261 + .../ncomp/openstack/compute/ComputePackage.java | 5045 ++++++++++++++++++++ .../ncomp/openstack/compute/ComputeService.java | 129 + .../openecomp/ncomp/openstack/compute/Fault.java | 125 + .../openecomp/ncomp/openstack/compute/Flavor.java | 333 ++ .../ncomp/openstack/compute/FloatingIp.java | 179 + .../openecomp/ncomp/openstack/compute/Image.java | 404 ++ .../openecomp/ncomp/openstack/compute/KeyPair.java | 125 + .../openecomp/ncomp/openstack/compute/Link.java | 125 + .../ncomp/openstack/compute/Metadata.java | 98 + .../openstack/compute/OpenstackRequestFlavor.java | 72 + .../openstack/compute/OpenstackRequestKeyPair.java | 72 + .../compute/OpenstackRequestNewServer.java | 243 + .../openstack/compute/OpenstackRequestPoll.java | 39 + .../compute/OpenstackRequestSecurityGroup.java | 72 + .../compute/OpenstackRequestServerAction.java | 98 + .../ncomp/openstack/compute/Personality.java | 98 + .../ncomp/openstack/compute/Reference.java | 90 + .../ncomp/openstack/compute/SecurityGroup.java | 144 + .../ncomp/openstack/compute/SecurityRange.java | 71 + .../ncomp/openstack/compute/SecurityRule.java | 233 + .../openecomp/ncomp/openstack/compute/Server.java | 789 +++ .../openecomp/ncomp/openstack/compute/Volume.java | 323 ++ .../ncomp/openstack/compute/VolumeAttachment.java | 152 + .../ncomp/openstack/compute/impl/AddressImpl.java | 346 ++ .../openstack/compute/impl/AddressesImpl.java | 243 + .../openstack/compute/impl/ComputeFactoryImpl.java | 358 ++ .../openstack/compute/impl/ComputePackageImpl.java | 2156 +++++++++ .../openstack/compute/impl/ComputeServiceImpl.java | 235 + .../ncomp/openstack/compute/impl/FaultImpl.java | 292 ++ .../ncomp/openstack/compute/impl/FlavorImpl.java | 729 +++ .../openstack/compute/impl/FloatingIpImpl.java | 400 ++ .../ncomp/openstack/compute/impl/ImageImpl.java | 887 ++++ .../ncomp/openstack/compute/impl/KeyPairImpl.java | 292 ++ .../ncomp/openstack/compute/impl/LinkImpl.java | 292 ++ .../ncomp/openstack/compute/impl/MetadataImpl.java | 238 + .../compute/impl/OpenstackRequestFlavorImpl.java | 199 + .../compute/impl/OpenstackRequestKeyPairImpl.java | 194 + .../impl/OpenstackRequestNewServerImpl.java | 562 +++ .../compute/impl/OpenstackRequestPollImpl.java | 62 + .../impl/OpenstackRequestSecurityGroupImpl.java | 199 + .../impl/OpenstackRequestServerActionImpl.java | 239 + .../openstack/compute/impl/PersonalityImpl.java | 238 + .../openstack/compute/impl/ReferenceImpl.java | 243 + .../openstack/compute/impl/SecurityGroupImpl.java | 352 ++ .../openstack/compute/impl/SecurityRangeImpl.java | 184 + .../openstack/compute/impl/SecurityRuleImpl.java | 548 +++ .../ncomp/openstack/compute/impl/ServerImpl.java | 1688 +++++++ .../compute/impl/VolumeAttachmentImpl.java | 346 ++ .../ncomp/openstack/compute/impl/VolumeImpl.java | 713 +++ .../compute/util/ComputeAdapterFactory.java | 595 +++ .../openstack/compute/util/ComputeSwitch.java | 656 +++ .../ncomp/openstack/core/CoreFactory.java | 90 + .../ncomp/openstack/core/CorePackage.java | 999 ++++ .../ncomp/openstack/core/OpenStackRequest.java | 71 + .../openstack/core/OpenstackRequestDelete.java | 97 + .../ncomp/openstack/core/OpenstackRequestPoll.java | 38 + .../ncomp/openstack/core/SecurityRule.java | 155 + .../ncomp/openstack/core/SecurityRuleProtocol.java | 283 ++ .../ncomp/openstack/core/VirtualMachineType.java | 354 ++ .../ncomp/openstack/core/impl/CoreFactoryImpl.java | 200 + .../ncomp/openstack/core/impl/CorePackageImpl.java | 519 ++ .../openstack/core/impl/OpenStackRequestImpl.java | 184 + .../core/impl/OpenstackRequestDeleteImpl.java | 237 + .../core/impl/OpenstackRequestPollImpl.java | 60 + .../openstack/core/impl/SecurityRuleImpl.java | 348 ++ .../core/impl/VirtualMachineTypeImpl.java | 760 +++ .../openstack/core/util/CoreAdapterFactory.java | 233 + .../ncomp/openstack/core/util/CoreSwitch.java | 236 + .../openstack/impl/OpenStackControllerImpl.java | 269 ++ .../ncomp/openstack/impl/OpenstackFactoryImpl.java | 116 + .../ncomp/openstack/impl/OpenstackPackageImpl.java | 243 + .../ncomp/openstack/location/Hypervisor.java | 530 ++ .../openstack/location/HypervisorCpuInfo.java | 171 + .../openstack/location/HypervisorCpuTopology.java | 125 + .../openstack/location/HypervisorService.java | 98 + .../ncomp/openstack/location/LocationFactory.java | 117 + .../ncomp/openstack/location/LocationPackage.java | 2747 +++++++++++ .../openstack/location/OpenStackLocation.java | 404 ++ .../ncomp/openstack/location/OpenStackProject.java | 497 ++ .../ncomp/openstack/location/OpenStackUser.java | 72 + .../ncomp/openstack/location/OpenStackVersion.java | 370 ++ .../location/impl/HypervisorCpuInfoImpl.java | 416 ++ .../location/impl/HypervisorCpuTopologyImpl.java | 292 ++ .../openstack/location/impl/HypervisorImpl.java | 1143 +++++ .../location/impl/HypervisorServiceImpl.java | 238 + .../location/impl/LocationFactoryImpl.java | 233 + .../location/impl/LocationPackageImpl.java | 1155 +++++ .../location/impl/OpenStackLocationImpl.java | 1375 ++++++ .../location/impl/OpenStackProjectImpl.java | 1227 +++++ .../openstack/location/impl/OpenStackUserImpl.java | 185 + .../location/util/LocationAdapterFactory.java | 347 ++ .../openstack/location/util/LocationSwitch.java | 348 ++ .../ncomp/openstack/neutron/AllocationPool.java | 98 + .../ncomp/openstack/neutron/BindingProfile.java | 39 + .../ncomp/openstack/neutron/BindingVifDetail.java | 98 + .../openstack/neutron/CreateNetworkRequest.java | 208 + .../ncomp/openstack/neutron/CreatePortRequest.java | 226 + .../openstack/neutron/CreateRouterRequest.java | 187 + .../openstack/neutron/CreateSubnetRequest.java | 240 + .../ncomp/openstack/neutron/ExternalGateway.java | 98 + .../openecomp/ncomp/openstack/neutron/FixedIp.java | 98 + .../openecomp/ncomp/openstack/neutron/Network.java | 331 ++ .../ncomp/openstack/neutron/NeutronFactory.java | 198 + .../ncomp/openstack/neutron/NeutronFloatingIp.java | 286 ++ .../ncomp/openstack/neutron/NeutronObject.java | 39 + .../ncomp/openstack/neutron/NeutronPackage.java | 4335 +++++++++++++++++ .../ncomp/openstack/neutron/NeutronRequest.java | 39 + .../openstack/neutron/NeutronSecurityGroup.java | 169 + .../openstack/neutron/NeutronSecurityRule.java | 313 ++ .../ncomp/openstack/neutron/NeutronService.java | 111 + .../openecomp/ncomp/openstack/neutron/Port.java | 517 ++ .../openecomp/ncomp/openstack/neutron/Router.java | 205 + .../openecomp/ncomp/openstack/neutron/Subnet.java | 365 ++ .../openstack/neutron/impl/AllocationPoolImpl.java | 238 + .../openstack/neutron/impl/BindingProfileImpl.java | 62 + .../neutron/impl/BindingVifDetailImpl.java | 238 + .../neutron/impl/CreateNetworkRequestImpl.java | 453 ++ .../neutron/impl/CreatePortRequestImpl.java | 506 ++ .../neutron/impl/CreateRouterRequestImpl.java | 421 ++ .../neutron/impl/CreateSubnetRequestImpl.java | 549 +++ .../neutron/impl/ExternalGatewayImpl.java | 238 + .../ncomp/openstack/neutron/impl/FixedIpImpl.java | 238 + .../ncomp/openstack/neutron/impl/NetworkImpl.java | 712 +++ .../openstack/neutron/impl/NeutronFactoryImpl.java | 281 ++ .../neutron/impl/NeutronFloatingIpImpl.java | 615 +++ .../openstack/neutron/impl/NeutronObjectImpl.java | 62 + .../openstack/neutron/impl/NeutronPackageImpl.java | 1962 ++++++++ .../openstack/neutron/impl/NeutronRequestImpl.java | 62 + .../neutron/impl/NeutronSecurityGroupImpl.java | 404 ++ .../neutron/impl/NeutronSecurityRuleImpl.java | 669 +++ .../openstack/neutron/impl/NeutronServiceImpl.java | 204 + .../ncomp/openstack/neutron/impl/PortImpl.java | 1146 +++++ .../ncomp/openstack/neutron/impl/RouterImpl.java | 480 ++ .../ncomp/openstack/neutron/impl/SubnetImpl.java | 801 ++++ .../neutron/util/NeutronAdapterFactory.java | 485 ++ .../openstack/neutron/util/NeutronSwitch.java | 542 +++ .../openstack/util/OpenstackAdapterFactory.java | 141 + .../ncomp/openstack/util/OpenstackSwitch.java | 131 + .../src/main/xcore/ceilometer.xcore | 130 + ncomp-openstack-model/src/main/xcore/compute.xcore | 250 + ncomp-openstack-model/src/main/xcore/core.xcore | 70 + .../src/main/xcore/location.xcore | 149 + ncomp-openstack-model/src/main/xcore/neutron.xcore | 214 + .../src/main/xcore/openstack.xcore | 40 + 196 files changed, 73217 insertions(+) create mode 100644 ncomp-openstack-model/.classpath create mode 100644 ncomp-openstack-model/.gitignore create mode 100644 ncomp-openstack-model/.project create mode 100644 ncomp-openstack-model/.settings/org.eclipse.core.resources.prefs create mode 100644 ncomp-openstack-model/.settings/org.eclipse.jdt.core.prefs create mode 100644 ncomp-openstack-model/.settings/org.eclipse.m2e.core.prefs create mode 100644 ncomp-openstack-model/LICENSE.txt create mode 100644 ncomp-openstack-model/META-INF/MANIFEST.MF create mode 100644 ncomp-openstack-model/build.properties create mode 100644 ncomp-openstack-model/plugin.properties create mode 100644 ncomp-openstack-model/plugin.xml create mode 100644 ncomp-openstack-model/pom.xml create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenStackController.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenstackFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenstackPackage.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerAlarm.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerFilter.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerMeter.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerOrderedBy.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerPackage.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerProject.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerQuery.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerRequest.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerResource.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerSample.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerService.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarm.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarmRule.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CreateAlarmRequest.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/SampleRequest.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerAlarmImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerFactoryImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerFilterImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerMeterImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerOrderedByImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerPackageImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerProjectImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerQueryImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerRequestImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerResourceImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerSampleImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerServiceImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerThresholdAlarmImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerThresholdAlarmRuleImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CreateAlarmRequestImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/SampleRequestImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerAdapterFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerSwitch.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Address.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Addresses.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputePackage.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeService.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Fault.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Flavor.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/FloatingIp.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Image.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/KeyPair.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Link.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Metadata.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestFlavor.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestKeyPair.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestNewServer.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestPoll.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestSecurityGroup.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestServerAction.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Personality.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Reference.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityGroup.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRange.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRule.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Server.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Volume.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/VolumeAttachment.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressesImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeFactoryImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputePackageImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FlavorImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FloatingIpImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ImageImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/KeyPairImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/LinkImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/MetadataImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestFlavorImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestKeyPairImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestNewServerImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestPollImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestServerActionImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/PersonalityImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ReferenceImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityGroupImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRangeImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRuleImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ServerImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeAttachmentImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeAdapterFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeSwitch.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CoreFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CorePackage.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenStackRequest.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestDelete.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestPoll.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRule.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRuleProtocol.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/VirtualMachineType.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/CoreFactoryImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/CorePackageImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenStackRequestImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenstackRequestDeleteImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenstackRequestPollImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/SecurityRuleImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/VirtualMachineTypeImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreAdapterFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreSwitch.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenStackControllerImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenstackFactoryImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenstackPackageImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/Hypervisor.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuInfo.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuTopology.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorService.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationPackage.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackLocation.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackProject.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackUser.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackVersion.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorCpuInfoImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorCpuTopologyImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorServiceImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/LocationFactoryImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/LocationPackageImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackLocationImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackProjectImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackUserImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationAdapterFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationSwitch.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/AllocationPool.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingProfile.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingVifDetail.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateNetworkRequest.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreatePortRequest.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateRouterRequest.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateSubnetRequest.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/ExternalGateway.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/FixedIp.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Network.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFloatingIp.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronObject.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronPackage.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronRequest.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityGroup.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityRule.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronService.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Port.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Router.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Subnet.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingProfileImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateNetworkRequestImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreatePortRequestImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateRouterRequestImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateSubnetRequestImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/ExternalGatewayImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/FixedIpImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NetworkImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFactoryImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFloatingIpImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronObjectImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityRuleImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronServiceImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/RouterImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/SubnetImpl.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/util/NeutronAdapterFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/util/NeutronSwitch.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/util/OpenstackAdapterFactory.java create mode 100644 ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/util/OpenstackSwitch.java create mode 100644 ncomp-openstack-model/src/main/xcore/ceilometer.xcore create mode 100644 ncomp-openstack-model/src/main/xcore/compute.xcore create mode 100644 ncomp-openstack-model/src/main/xcore/core.xcore create mode 100644 ncomp-openstack-model/src/main/xcore/location.xcore create mode 100644 ncomp-openstack-model/src/main/xcore/neutron.xcore create mode 100644 ncomp-openstack-model/src/main/xcore/openstack.xcore (limited to 'ncomp-openstack-model') diff --git a/ncomp-openstack-model/.classpath b/ncomp-openstack-model/.classpath new file mode 100644 index 0000000..04150e2 --- /dev/null +++ b/ncomp-openstack-model/.classpath @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ncomp-openstack-model/.gitignore b/ncomp-openstack-model/.gitignore new file mode 100644 index 0000000..09e3bc9 --- /dev/null +++ b/ncomp-openstack-model/.gitignore @@ -0,0 +1,2 @@ +/bin/ +/target/ diff --git a/ncomp-openstack-model/.project b/ncomp-openstack-model/.project new file mode 100644 index 0000000..63f1f30 --- /dev/null +++ b/ncomp-openstack-model/.project @@ -0,0 +1,40 @@ + + + ncomp-openstack-model + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + org.eclipse.xtext.ui.shared.xtextNature + + diff --git a/ncomp-openstack-model/.settings/org.eclipse.core.resources.prefs b/ncomp-openstack-model/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..1f99b20 --- /dev/null +++ b/ncomp-openstack-model/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +encoding//src/main/xcore=UTF-8 +encoding//src/main/xcore-gen=UTF-8 +encoding//src/test/java=UTF-8 +encoding/=UTF-8 diff --git a/ncomp-openstack-model/.settings/org.eclipse.jdt.core.prefs b/ncomp-openstack-model/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..443e085 --- /dev/null +++ b/ncomp-openstack-model/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/ncomp-openstack-model/.settings/org.eclipse.m2e.core.prefs b/ncomp-openstack-model/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/ncomp-openstack-model/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/ncomp-openstack-model/LICENSE.txt b/ncomp-openstack-model/LICENSE.txt new file mode 100644 index 0000000..30471b5 --- /dev/null +++ b/ncomp-openstack-model/LICENSE.txt @@ -0,0 +1,22 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +ECOMP and OpenECOMP are trademarks and service marks of AT&T Intellectual Property. diff --git a/ncomp-openstack-model/META-INF/MANIFEST.MF b/ncomp-openstack-model/META-INF/MANIFEST.MF new file mode 100644 index 0000000..3919f9b --- /dev/null +++ b/ncomp-openstack-model/META-INF/MANIFEST.MF @@ -0,0 +1,37 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: ncomp-openstack-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: org.openecomp.ncomp.openstack.core, + org.openecomp.ncomp.openstack.core.impl, + org.openecomp.ncomp.openstack.core.util, + org.openecomp.ncomp.openstack.neutron, + org.openecomp.ncomp.openstack.neutron.impl, + org.openecomp.ncomp.openstack.neutron.util, + org.openecomp.ncomp.openstack.compute, + org.openecomp.ncomp.openstack.compute.impl, + org.openecomp.ncomp.openstack.compute.util, + org.openecomp.ncomp.openstack.location, + org.openecomp.ncomp.openstack.location.impl, + org.openecomp.ncomp.openstack.location.util, + org.openecomp.ncomp.openstack, + org.openecomp.ncomp.openstack.impl, + org.openecomp.ncomp.openstack.util, + org.openecomp.ncomp.openstack.ceilometer, + org.openecomp.ncomp.openstack.ceilometer.impl, + org.openecomp.ncomp.openstack.ceilometer.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + ncomp-openstack-model;visibility:=reexport, + ncomp-utils-java;bundle-version="0.1.0", + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-model;visibility:=reexport, + ncomp-sirius-manager-server;bundle-version="0.1.0" +Bundle-ActivationPolicy: lazy diff --git a/ncomp-openstack-model/build.properties b/ncomp-openstack-model/build.properties new file mode 100644 index 0000000..600e4ec --- /dev/null +++ b/ncomp-openstack-model/build.properties @@ -0,0 +1,12 @@ +# + +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/main/xcore-gen/,\ + src/main/xcore/ +output.. = bin/,\ + target/classes/ diff --git a/ncomp-openstack-model/plugin.properties b/ncomp-openstack-model/plugin.properties new file mode 100644 index 0000000..43a9a9f --- /dev/null +++ b/ncomp-openstack-model/plugin.properties @@ -0,0 +1,4 @@ +# + +pluginName = Core Model +providerName = www.example.org diff --git a/ncomp-openstack-model/plugin.xml b/ncomp-openstack-model/plugin.xml new file mode 100644 index 0000000..5ae0c3d --- /dev/null +++ b/ncomp-openstack-model/plugin.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ncomp-openstack-model/pom.xml b/ncomp-openstack-model/pom.xml new file mode 100644 index 0000000..54ccf21 --- /dev/null +++ b/ncomp-openstack-model/pom.xml @@ -0,0 +1,18 @@ + + 4.0.0 + org.openecomp.ncomp.openstack + ncomp-openstack-model + + org.openecomp.ncomp.maven + ncomp-maven-xcore + 0.1.0-SNAPSHOT + ../../dcae-org.openecomp.ncomp.maven/ncomp-maven-xcore + + + + org.openecomp.ncomp.sirius.manager + ncomp-sirius-manager-server + ${project.version} + + + diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenStackController.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenStackController.java new file mode 100644 index 0000000..3c57edd --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenStackController.java @@ -0,0 +1,108 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; +import org.openecomp.ncomp.openstack.location.OpenStackLocation; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.json.JSONObject; + +/** + * + * A representation of the model object 'Open Stack Controller'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.OpenStackController#getLocations Locations}
  • + *
  • {@link org.openecomp.ncomp.openstack.OpenStackController#getVmTypes Vm Types}
  • + *
  • {@link org.openecomp.ncomp.openstack.OpenStackController#getUsers Users}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.OpenstackPackage#getOpenStackController() + * @model + * @generated + */ +public interface OpenStackController extends EObject { + /** + * Returns the value of the 'Locations' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.location.OpenStackLocation}. + * + *

+ * If the meaning of the 'Locations' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Locations' containment reference list. + * @see org.openecomp.ncomp.openstack.OpenstackPackage#getOpenStackController_Locations() + * @model containment="true" + * @generated + */ + EList getLocations(); + + /** + * Returns the value of the 'Vm Types' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.core.VirtualMachineType}. + * + *

+ * If the meaning of the 'Vm Types' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vm Types' containment reference list. + * @see org.openecomp.ncomp.openstack.OpenstackPackage#getOpenStackController_VmTypes() + * @model containment="true" + * @generated + */ + EList getVmTypes(); + + /** + * Returns the value of the 'Users' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.core.User}. + * + *

+ * If the meaning of the 'Users' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Users' containment reference list. + * @see org.openecomp.ncomp.openstack.OpenstackPackage#getOpenStackController_Users() + * @model containment="true" + * @generated + */ + EList getUsers(); + + /** + * + * + * @model cxDataType="org.openecomp.ncomp.core.RemoteContext" cxUnique="false" locUnique="false" + * @generated + */ + void uploadOpenstackConfiguration(JSONObject cx, OpenStackLocation loc); + +} // OpenStackController diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenstackFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenstackFactory.java new file mode 100644 index 0000000..1ee3d6d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenstackFactory.java @@ -0,0 +1,63 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.openstack.OpenstackPackage + * @generated + */ +public interface OpenstackFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + OpenstackFactory eINSTANCE = org.openecomp.ncomp.openstack.impl.OpenstackFactoryImpl.init(); + + /** + * Returns a new object of class 'Open Stack Controller'. + * + * + * @return a new object of class 'Open Stack Controller'. + * @generated + */ + OpenStackController createOpenStackController(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + OpenstackPackage getOpenstackPackage(); + +} //OpenstackFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenstackPackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenstackPackage.java new file mode 100644 index 0000000..4d08c00 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/OpenstackPackage.java @@ -0,0 +1,266 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.openecomp.ncomp.openstack.OpenstackFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-openstack-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp'" + * @generated + */ +public interface OpenstackPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "openstack"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.openstack"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "openstack"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + OpenstackPackage eINSTANCE = org.openecomp.ncomp.openstack.impl.OpenstackPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.impl.OpenStackControllerImpl Open Stack Controller}' class. + * + * + * @see org.openecomp.ncomp.openstack.impl.OpenStackControllerImpl + * @see org.openecomp.ncomp.openstack.impl.OpenstackPackageImpl#getOpenStackController() + * @generated + */ + int OPEN_STACK_CONTROLLER = 0; + + /** + * The feature id for the 'Locations' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_CONTROLLER__LOCATIONS = 0; + + /** + * The feature id for the 'Vm Types' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_CONTROLLER__VM_TYPES = 1; + + /** + * The feature id for the 'Users' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_CONTROLLER__USERS = 2; + + /** + * The number of structural features of the 'Open Stack Controller' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_CONTROLLER_FEATURE_COUNT = 3; + + /** + * The operation id for the 'Upload Openstack Configuration' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_CONTROLLER___UPLOAD_OPENSTACK_CONFIGURATION__JSONOBJECT_OPENSTACKLOCATION = 0; + + /** + * The number of operations of the 'Open Stack Controller' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_CONTROLLER_OPERATION_COUNT = 1; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.OpenStackController Open Stack Controller}'. + * + * + * @return the meta object for class 'Open Stack Controller'. + * @see org.openecomp.ncomp.openstack.OpenStackController + * @generated + */ + EClass getOpenStackController(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.OpenStackController#getLocations Locations}'. + * + * + * @return the meta object for the containment reference list 'Locations'. + * @see org.openecomp.ncomp.openstack.OpenStackController#getLocations() + * @see #getOpenStackController() + * @generated + */ + EReference getOpenStackController_Locations(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.OpenStackController#getVmTypes Vm Types}'. + * + * + * @return the meta object for the containment reference list 'Vm Types'. + * @see org.openecomp.ncomp.openstack.OpenStackController#getVmTypes() + * @see #getOpenStackController() + * @generated + */ + EReference getOpenStackController_VmTypes(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.OpenStackController#getUsers Users}'. + * + * + * @return the meta object for the containment reference list 'Users'. + * @see org.openecomp.ncomp.openstack.OpenStackController#getUsers() + * @see #getOpenStackController() + * @generated + */ + EReference getOpenStackController_Users(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.OpenStackController#uploadOpenstackConfiguration(org.json.JSONObject, org.openecomp.ncomp.openstack.location.OpenStackLocation) Upload Openstack Configuration}' operation. + * + * + * @return the meta object for the 'Upload Openstack Configuration' operation. + * @see org.openecomp.ncomp.openstack.OpenStackController#uploadOpenstackConfiguration(org.json.JSONObject, org.openecomp.ncomp.openstack.location.OpenStackLocation) + * @generated + */ + EOperation getOpenStackController__UploadOpenstackConfiguration__JSONObject_OpenStackLocation(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + OpenstackFactory getOpenstackFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.impl.OpenStackControllerImpl Open Stack Controller}' class. + * + * + * @see org.openecomp.ncomp.openstack.impl.OpenStackControllerImpl + * @see org.openecomp.ncomp.openstack.impl.OpenstackPackageImpl#getOpenStackController() + * @generated + */ + EClass OPEN_STACK_CONTROLLER = eINSTANCE.getOpenStackController(); + + /** + * The meta object literal for the 'Locations' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_CONTROLLER__LOCATIONS = eINSTANCE.getOpenStackController_Locations(); + + /** + * The meta object literal for the 'Vm Types' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_CONTROLLER__VM_TYPES = eINSTANCE.getOpenStackController_VmTypes(); + + /** + * The meta object literal for the 'Users' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_CONTROLLER__USERS = eINSTANCE.getOpenStackController_Users(); + + /** + * The meta object literal for the 'Upload Openstack Configuration' operation. + * + * + * @generated + */ + EOperation OPEN_STACK_CONTROLLER___UPLOAD_OPENSTACK_CONFIGURATION__JSONOBJECT_OPENSTACKLOCATION = eINSTANCE.getOpenStackController__UploadOpenstackConfiguration__JSONObject_OpenStackLocation(); + + } + +} //OpenstackPackage diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerAlarm.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerAlarm.java new file mode 100644 index 0000000..87b9c11 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerAlarm.java @@ -0,0 +1,330 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.openecomp.ncomp.core.NamedEntity; +import java.util.Date; +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Alarm'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getTimestamp Timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getEnabled Enabled}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState State}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState_timestamp State timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getDescription Description}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getAlarm_actions Alarm actions}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getOk_actions Ok actions}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getInsufficient_data_actions Insufficient data actions}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getRepeat_actions Repeat actions}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getTime_constraints Time constraints}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm() + * @model abstract="true" + * @generated + */ +public interface CeilometerAlarm extends NamedEntity { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *

+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Timestamp' attribute. + * + *

+ * If the meaning of the 'Timestamp' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Timestamp' attribute. + * @see #setTimestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Timestamp() + * @model unique="false" + * @generated + */ + Date getTimestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getTimestamp Timestamp}' attribute. + * + * + * @param value the new value of the 'Timestamp' attribute. + * @see #getTimestamp() + * @generated + */ + void setTimestamp(Date value); + + /** + * Returns the value of the 'Enabled' attribute. + * + *

+ * If the meaning of the 'Enabled' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Enabled' attribute. + * @see #setEnabled(Boolean) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Enabled() + * @model unique="false" + * @generated + */ + Boolean getEnabled(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getEnabled Enabled}' attribute. + * + * + * @param value the new value of the 'Enabled' attribute. + * @see #getEnabled() + * @generated + */ + void setEnabled(Boolean value); + + /** + * Returns the value of the 'State' attribute. + * + *

+ * If the meaning of the 'State' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'State' attribute. + * @see #setState(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_State() + * @model unique="false" + * @generated + */ + String getState(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState State}' attribute. + * + * + * @param value the new value of the 'State' attribute. + * @see #getState() + * @generated + */ + void setState(String value); + + /** + * Returns the value of the 'State timestamp' attribute. + * + *

+ * If the meaning of the 'State timestamp' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'State timestamp' attribute. + * @see #setState_timestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_State_timestamp() + * @model unique="false" + * @generated + */ + Date getState_timestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState_timestamp State timestamp}' attribute. + * + * + * @param value the new value of the 'State timestamp' attribute. + * @see #getState_timestamp() + * @generated + */ + void setState_timestamp(Date value); + + /** + * Returns the value of the 'Description' attribute. + * + *

+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Alarm actions' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Alarm actions' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Alarm actions' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Alarm_actions() + * @model unique="false" + * @generated + */ + EList getAlarm_actions(); + + /** + * Returns the value of the 'Ok actions' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Ok actions' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ok actions' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Ok_actions() + * @model unique="false" + * @generated + */ + EList getOk_actions(); + + /** + * Returns the value of the 'Insufficient data actions' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Insufficient data actions' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Insufficient data actions' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Insufficient_data_actions() + * @model unique="false" + * @generated + */ + EList getInsufficient_data_actions(); + + /** + * Returns the value of the 'Repeat actions' attribute. + * + *

+ * If the meaning of the 'Repeat actions' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Repeat actions' attribute. + * @see #setRepeat_actions(Boolean) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Repeat_actions() + * @model unique="false" + * @generated + */ + Boolean getRepeat_actions(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getRepeat_actions Repeat actions}' attribute. + * + * + * @param value the new value of the 'Repeat actions' attribute. + * @see #getRepeat_actions() + * @generated + */ + void setRepeat_actions(Boolean value); + + /** + * Returns the value of the 'Time constraints' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Time constraints' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Time constraints' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Time_constraints() + * @model unique="false" + * @generated + */ + EList getTime_constraints(); + +} // CeilometerAlarm diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerFactory.java new file mode 100644 index 0000000..e06bbcb --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerFactory.java @@ -0,0 +1,144 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage + * @generated + */ +public interface CeilometerFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + CeilometerFactory eINSTANCE = org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerFactoryImpl.init(); + + /** + * Returns a new object of class 'Threshold Alarm'. + * + * + * @return a new object of class 'Threshold Alarm'. + * @generated + */ + CeilometerThresholdAlarm createCeilometerThresholdAlarm(); + + /** + * Returns a new object of class 'Threshold Alarm Rule'. + * + * + * @return a new object of class 'Threshold Alarm Rule'. + * @generated + */ + CeilometerThresholdAlarmRule createCeilometerThresholdAlarmRule(); + + /** + * Returns a new object of class 'Resource'. + * + * + * @return a new object of class 'Resource'. + * @generated + */ + CeilometerResource createCeilometerResource(); + + /** + * Returns a new object of class 'Meter'. + * + * + * @return a new object of class 'Meter'. + * @generated + */ + CeilometerMeter createCeilometerMeter(); + + /** + * Returns a new object of class 'Query'. + * + * + * @return a new object of class 'Query'. + * @generated + */ + CeilometerQuery createCeilometerQuery(); + + /** + * Returns a new object of class 'Filter'. + * + * + * @return a new object of class 'Filter'. + * @generated + */ + CeilometerFilter createCeilometerFilter(); + + /** + * Returns a new object of class 'Ordered By'. + * + * + * @return a new object of class 'Ordered By'. + * @generated + */ + CeilometerOrderedBy createCeilometerOrderedBy(); + + /** + * Returns a new object of class 'Create Alarm Request'. + * + * + * @return a new object of class 'Create Alarm Request'. + * @generated + */ + CreateAlarmRequest createCreateAlarmRequest(); + + /** + * Returns a new object of class 'Sample Request'. + * + * + * @return a new object of class 'Sample Request'. + * @generated + */ + SampleRequest createSampleRequest(); + + /** + * Returns a new object of class 'Sample'. + * + * + * @return a new object of class 'Sample'. + * @generated + */ + CeilometerSample createCeilometerSample(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + CeilometerPackage getCeilometerPackage(); + +} //CeilometerFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerFilter.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerFilter.java new file mode 100644 index 0000000..9086e37 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerFilter.java @@ -0,0 +1,144 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Filter'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getOperation Operation}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getValue Value}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getField Field}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getFilters Filters}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerFilter() + * @model + * @generated + */ +public interface CeilometerFilter extends EObject { + /** + * Returns the value of the 'Operation' attribute. + * + *

+ * If the meaning of the 'Operation' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Operation' attribute. + * @see #setOperation(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerFilter_Operation() + * @model unique="false" + * @generated + */ + String getOperation(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getOperation Operation}' attribute. + * + * + * @param value the new value of the 'Operation' attribute. + * @see #getOperation() + * @generated + */ + void setOperation(String value); + + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerFilter_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + + /** + * Returns the value of the 'Field' attribute. + * + *

+ * If the meaning of the 'Field' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Field' attribute. + * @see #setField(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerFilter_Field() + * @model unique="false" + * @generated + */ + String getField(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getField Field}' attribute. + * + * + * @param value the new value of the 'Field' attribute. + * @see #getField() + * @generated + */ + void setField(String value); + + /** + * Returns the value of the 'Filters' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter}. + * + *

+ * If the meaning of the 'Filters' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Filters' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerFilter_Filters() + * @model containment="true" + * @generated + */ + EList getFilters(); + +} // CeilometerFilter diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerMeter.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerMeter.java new file mode 100644 index 0000000..d083a75 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerMeter.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Meter'. + * + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerMeter() + * @model + * @generated + */ +public interface CeilometerMeter extends EObject { +} // CeilometerMeter diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerOrderedBy.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerOrderedBy.java new file mode 100644 index 0000000..c0ed74a --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerOrderedBy.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Ordered By'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getField Field}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getDirection Direction}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerOrderedBy() + * @model + * @generated + */ +public interface CeilometerOrderedBy extends EObject { + /** + * Returns the value of the 'Field' attribute. + * + *

+ * If the meaning of the 'Field' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Field' attribute. + * @see #setField(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerOrderedBy_Field() + * @model unique="false" + * @generated + */ + String getField(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getField Field}' attribute. + * + * + * @param value the new value of the 'Field' attribute. + * @see #getField() + * @generated + */ + void setField(String value); + + /** + * Returns the value of the 'Direction' attribute. + * + *

+ * If the meaning of the 'Direction' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Direction' attribute. + * @see #setDirection(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerOrderedBy_Direction() + * @model unique="false" + * @generated + */ + String getDirection(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getDirection Direction}' attribute. + * + * + * @param value the new value of the 'Direction' attribute. + * @see #getDirection() + * @generated + */ + void setDirection(String value); + +} // CeilometerOrderedBy diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerPackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerPackage.java new file mode 100644 index 0000000..f6f33e5 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerPackage.java @@ -0,0 +1,2557 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.openecomp.ncomp.openstack.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-openstack-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.openstack'" + * annotation="http://www.eclipse.org/emf/2011/Xcore openstack='http://openecomp.org/sirius/openstack'" + * @generated + */ +public interface CeilometerPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "ceilometer"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.openstack.ceilometer"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "ceilometer"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + CeilometerPackage eINSTANCE = org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerServiceImpl Service}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerServiceImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerService() + * @generated + */ + int CEILOMETER_SERVICE = 0; + + /** + * The feature id for the 'Ceilometer Available Capabilites' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES = 0; + + /** + * The feature id for the 'Ceilometer Unavailable Capabilites' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES = 1; + + /** + * The number of structural features of the 'Service' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SERVICE_FEATURE_COUNT = 2; + + /** + * The operation id for the 'Create Alarm' operation. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SERVICE___CREATE_ALARM__CREATEALARMREQUEST = 0; + + /** + * The operation id for the 'Delete Alarm' operation. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SERVICE___DELETE_ALARM__STRING_STRING = 1; + + /** + * The operation id for the 'Create Alarm' operation. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SERVICE___CREATE_ALARM__SAMPLEREQUEST = 2; + + /** + * The number of operations of the 'Service' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SERVICE_OPERATION_COUNT = 3; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerProjectImpl Project}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerProjectImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerProject() + * @generated + */ + int CEILOMETER_PROJECT = 1; + + /** + * The feature id for the 'Alarms' containment reference list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_PROJECT__ALARMS = 0; + + /** + * The feature id for the 'Resources' containment reference list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_PROJECT__RESOURCES = 1; + + /** + * The feature id for the 'Meters' containment reference list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_PROJECT__METERS = 2; + + /** + * The number of structural features of the 'Project' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_PROJECT_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Project' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_PROJECT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl Alarm}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerAlarm() + * @generated + */ + int CEILOMETER_ALARM = 2; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__NAME = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__LAST_POLLED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__LAST_CHANGED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__CREATED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__ID = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'User id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__USER_ID = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Timestamp' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__TIMESTAMP = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Enabled' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__ENABLED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'State' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__STATE = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'State timestamp' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__STATE_TIMESTAMP = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__DESCRIPTION = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Alarm actions' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__ALARM_ACTIONS = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Ok actions' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__OK_ACTIONS = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Insufficient data actions' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Repeat actions' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__REPEAT_ACTIONS = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Time constraints' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM__TIME_CONSTRAINTS = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The number of structural features of the 'Alarm' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM_FEATURE_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 12; + + /** + * The number of operations of the 'Alarm' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ALARM_OPERATION_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmImpl Threshold Alarm}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerThresholdAlarm() + * @generated + */ + int CEILOMETER_THRESHOLD_ALARM = 3; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__NAME = CEILOMETER_ALARM__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__LAST_POLLED = CEILOMETER_ALARM__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__LAST_CHANGED = CEILOMETER_ALARM__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__CREATED = CEILOMETER_ALARM__CREATED; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__ID = CEILOMETER_ALARM__ID; + + /** + * The feature id for the 'User id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__USER_ID = CEILOMETER_ALARM__USER_ID; + + /** + * The feature id for the 'Timestamp' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__TIMESTAMP = CEILOMETER_ALARM__TIMESTAMP; + + /** + * The feature id for the 'Enabled' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__ENABLED = CEILOMETER_ALARM__ENABLED; + + /** + * The feature id for the 'State' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__STATE = CEILOMETER_ALARM__STATE; + + /** + * The feature id for the 'State timestamp' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__STATE_TIMESTAMP = CEILOMETER_ALARM__STATE_TIMESTAMP; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__DESCRIPTION = CEILOMETER_ALARM__DESCRIPTION; + + /** + * The feature id for the 'Alarm actions' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__ALARM_ACTIONS = CEILOMETER_ALARM__ALARM_ACTIONS; + + /** + * The feature id for the 'Ok actions' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__OK_ACTIONS = CEILOMETER_ALARM__OK_ACTIONS; + + /** + * The feature id for the 'Insufficient data actions' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__INSUFFICIENT_DATA_ACTIONS = CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS; + + /** + * The feature id for the 'Repeat actions' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__REPEAT_ACTIONS = CEILOMETER_ALARM__REPEAT_ACTIONS; + + /** + * The feature id for the 'Time constraints' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__TIME_CONSTRAINTS = CEILOMETER_ALARM__TIME_CONSTRAINTS; + + /** + * The feature id for the 'Threshold rule' containment reference. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE = CEILOMETER_ALARM_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Threshold Alarm' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_FEATURE_COUNT = CEILOMETER_ALARM_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Threshold Alarm' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_OPERATION_COUNT = CEILOMETER_ALARM_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl Threshold Alarm Rule}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerThresholdAlarmRule() + * @generated + */ + int CEILOMETER_THRESHOLD_ALARM_RULE = 4; + + /** + * The feature id for the 'Meter name' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE__METER_NAME = 0; + + /** + * The feature id for the 'Evaluation periods' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE__EVALUATION_PERIODS = 1; + + /** + * The feature id for the 'Period' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE__PERIOD = 2; + + /** + * The feature id for the 'Statistic' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE__STATISTIC = 3; + + /** + * The feature id for the 'Threshold' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE__THRESHOLD = 4; + + /** + * The feature id for the 'Query' attribute list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE__QUERY = 5; + + /** + * The feature id for the 'Comparison operator' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE__COMPARISON_OPERATOR = 6; + + /** + * The feature id for the 'Exclude outliers' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE__EXCLUDE_OUTLIERS = 7; + + /** + * The number of structural features of the 'Threshold Alarm Rule' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE_FEATURE_COUNT = 8; + + /** + * The number of operations of the 'Threshold Alarm Rule' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_THRESHOLD_ALARM_RULE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl Resource}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerResource() + * @generated + */ + int CEILOMETER_RESOURCE = 5; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_RESOURCE__ID = 0; + + /** + * The feature id for the 'User id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_RESOURCE__USER_ID = 1; + + /** + * The feature id for the 'Project id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_RESOURCE__PROJECT_ID = 2; + + /** + * The feature id for the 'First sample timestamp' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_RESOURCE__FIRST_SAMPLE_TIMESTAMP = 3; + + /** + * The feature id for the 'Last sample timestamp' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_RESOURCE__LAST_SAMPLE_TIMESTAMP = 4; + + /** + * The feature id for the 'Links' containment reference list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_RESOURCE__LINKS = 5; + + /** + * The feature id for the 'Metadata' containment reference. + * + * + * @generated + * @ordered + */ + int CEILOMETER_RESOURCE__METADATA = 6; + + /** + * The number of structural features of the 'Resource' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_RESOURCE_FEATURE_COUNT = 7; + + /** + * The number of operations of the 'Resource' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_RESOURCE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerMeterImpl Meter}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerMeterImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerMeter() + * @generated + */ + int CEILOMETER_METER = 6; + + /** + * The number of structural features of the 'Meter' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_METER_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Meter' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_METER_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerQueryImpl Query}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerQueryImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerQuery() + * @generated + */ + int CEILOMETER_QUERY = 7; + + /** + * The feature id for the 'Filter' containment reference list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_QUERY__FILTER = 0; + + /** + * The feature id for the 'Orderby' containment reference list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_QUERY__ORDERBY = 1; + + /** + * The feature id for the 'Limit' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_QUERY__LIMIT = 2; + + /** + * The number of structural features of the 'Query' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_QUERY_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Query' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_QUERY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerFilterImpl Filter}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerFilterImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerFilter() + * @generated + */ + int CEILOMETER_FILTER = 8; + + /** + * The feature id for the 'Operation' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_FILTER__OPERATION = 0; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_FILTER__VALUE = 1; + + /** + * The feature id for the 'Field' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_FILTER__FIELD = 2; + + /** + * The feature id for the 'Filters' containment reference list. + * + * + * @generated + * @ordered + */ + int CEILOMETER_FILTER__FILTERS = 3; + + /** + * The number of structural features of the 'Filter' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_FILTER_FEATURE_COUNT = 4; + + /** + * The number of operations of the 'Filter' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_FILTER_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerOrderedByImpl Ordered By}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerOrderedByImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerOrderedBy() + * @generated + */ + int CEILOMETER_ORDERED_BY = 9; + + /** + * The feature id for the 'Field' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ORDERED_BY__FIELD = 0; + + /** + * The feature id for the 'Direction' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ORDERED_BY__DIRECTION = 1; + + /** + * The number of structural features of the 'Ordered By' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ORDERED_BY_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Ordered By' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_ORDERED_BY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerRequestImpl Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerRequestImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerRequest() + * @generated + */ + int CEILOMETER_REQUEST = 10; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_REQUEST__PROJECT_NAME = CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The number of structural features of the 'Request' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_REQUEST_FEATURE_COUNT = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of operations of the 'Request' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_REQUEST_OPERATION_COUNT = CorePackage.OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CreateAlarmRequestImpl Create Alarm Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CreateAlarmRequestImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCreateAlarmRequest() + * @generated + */ + int CREATE_ALARM_REQUEST = 11; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_ALARM_REQUEST__PROJECT_NAME = CEILOMETER_REQUEST__PROJECT_NAME; + + /** + * The number of structural features of the 'Create Alarm Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_ALARM_REQUEST_FEATURE_COUNT = CEILOMETER_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of operations of the 'Create Alarm Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_ALARM_REQUEST_OPERATION_COUNT = CEILOMETER_REQUEST_OPERATION_COUNT + 0; + + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.SampleRequestImpl Sample Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.SampleRequestImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getSampleRequest() + * @generated + */ + int SAMPLE_REQUEST = 12; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int SAMPLE_REQUEST__PROJECT_NAME = CEILOMETER_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Query' containment reference. + * + * + * @generated + * @ordered + */ + int SAMPLE_REQUEST__QUERY = CEILOMETER_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Sample Request' class. + * + * + * @generated + * @ordered + */ + int SAMPLE_REQUEST_FEATURE_COUNT = CEILOMETER_REQUEST_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Sample Request' class. + * + * + * @generated + * @ordered + */ + int SAMPLE_REQUEST_OPERATION_COUNT = CEILOMETER_REQUEST_OPERATION_COUNT + 0; + + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl Sample}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerSample() + * @generated + */ + int CEILOMETER_SAMPLE = 13; + + /** + * The feature id for the 'Counter name' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__COUNTER_NAME = 0; + + /** + * The feature id for the 'User id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__USER_ID = 1; + + /** + * The feature id for the 'Resource id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__RESOURCE_ID = 2; + + /** + * The feature id for the 'Timestamp' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__TIMESTAMP = 3; + + /** + * The feature id for the 'Recorded at' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__RECORDED_AT = 4; + + /** + * The feature id for the 'Message id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__MESSAGE_ID = 5; + + /** + * The feature id for the 'Source' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__SOURCE = 6; + + /** + * The feature id for the 'Counter unit' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__COUNTER_UNIT = 7; + + /** + * The feature id for the 'Counter volume' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__COUNTER_VOLUME = 8; + + /** + * The feature id for the 'Project id' attribute. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE__PROJECT_ID = 9; + + /** + * The number of structural features of the 'Sample' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE_FEATURE_COUNT = 10; + + /** + * The number of operations of the 'Sample' class. + * + * + * @generated + * @ordered + */ + int CEILOMETER_SAMPLE_OPERATION_COUNT = 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService Service}'. + * + * + * @return the meta object for class 'Service'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService + * @generated + */ + EClass getCeilometerService(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService#getCeilometerAvailableCapabilites Ceilometer Available Capabilites}'. + * + * + * @return the meta object for the attribute list 'Ceilometer Available Capabilites'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService#getCeilometerAvailableCapabilites() + * @see #getCeilometerService() + * @generated + */ + EAttribute getCeilometerService_CeilometerAvailableCapabilites(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService#getCeilometerUnavailableCapabilites Ceilometer Unavailable Capabilites}'. + * + * + * @return the meta object for the attribute list 'Ceilometer Unavailable Capabilites'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService#getCeilometerUnavailableCapabilites() + * @see #getCeilometerService() + * @generated + */ + EAttribute getCeilometerService_CeilometerUnavailableCapabilites(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService#createAlarm(org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest) Create Alarm}' operation. + * + * + * @return the meta object for the 'Create Alarm' operation. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService#createAlarm(org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest) + * @generated + */ + EOperation getCeilometerService__CreateAlarm__CreateAlarmRequest(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService#deleteAlarm(java.lang.String, java.lang.String) Delete Alarm}' operation. + * + * + * @return the meta object for the 'Delete Alarm' operation. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService#deleteAlarm(java.lang.String, java.lang.String) + * @generated + */ + EOperation getCeilometerService__DeleteAlarm__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService#createAlarm(org.openecomp.ncomp.openstack.ceilometer.SampleRequest) Create Alarm}' operation. + * + * + * @return the meta object for the 'Create Alarm' operation. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService#createAlarm(org.openecomp.ncomp.openstack.ceilometer.SampleRequest) + * @generated + */ + EOperation getCeilometerService__CreateAlarm__SampleRequest(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject Project}'. + * + * + * @return the meta object for class 'Project'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerProject + * @generated + */ + EClass getCeilometerProject(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject#getAlarms Alarms}'. + * + * + * @return the meta object for the containment reference list 'Alarms'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerProject#getAlarms() + * @see #getCeilometerProject() + * @generated + */ + EReference getCeilometerProject_Alarms(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject#getResources Resources}'. + * + * + * @return the meta object for the containment reference list 'Resources'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerProject#getResources() + * @see #getCeilometerProject() + * @generated + */ + EReference getCeilometerProject_Resources(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject#getMeters Meters}'. + * + * + * @return the meta object for the containment reference list 'Meters'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerProject#getMeters() + * @see #getCeilometerProject() + * @generated + */ + EReference getCeilometerProject_Meters(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm Alarm}'. + * + * + * @return the meta object for class 'Alarm'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm + * @generated + */ + EClass getCeilometerAlarm(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getId() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getUser_id User id}'. + * + * + * @return the meta object for the attribute 'User id'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getUser_id() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_User_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getTimestamp Timestamp}'. + * + * + * @return the meta object for the attribute 'Timestamp'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getTimestamp() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_Timestamp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getEnabled Enabled}'. + * + * + * @return the meta object for the attribute 'Enabled'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getEnabled() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_Enabled(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState State}'. + * + * + * @return the meta object for the attribute 'State'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_State(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState_timestamp State timestamp}'. + * + * + * @return the meta object for the attribute 'State timestamp'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState_timestamp() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_State_timestamp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getDescription Description}'. + * + * + * @return the meta object for the attribute 'Description'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getDescription() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_Description(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getAlarm_actions Alarm actions}'. + * + * + * @return the meta object for the attribute list 'Alarm actions'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getAlarm_actions() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_Alarm_actions(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getOk_actions Ok actions}'. + * + * + * @return the meta object for the attribute list 'Ok actions'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getOk_actions() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_Ok_actions(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getInsufficient_data_actions Insufficient data actions}'. + * + * + * @return the meta object for the attribute list 'Insufficient data actions'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getInsufficient_data_actions() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_Insufficient_data_actions(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getRepeat_actions Repeat actions}'. + * + * + * @return the meta object for the attribute 'Repeat actions'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getRepeat_actions() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_Repeat_actions(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getTime_constraints Time constraints}'. + * + * + * @return the meta object for the attribute list 'Time constraints'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getTime_constraints() + * @see #getCeilometerAlarm() + * @generated + */ + EAttribute getCeilometerAlarm_Time_constraints(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm Threshold Alarm}'. + * + * + * @return the meta object for class 'Threshold Alarm'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm + * @generated + */ + EClass getCeilometerThresholdAlarm(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm#getThreshold_rule Threshold rule}'. + * + * + * @return the meta object for the containment reference 'Threshold rule'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm#getThreshold_rule() + * @see #getCeilometerThresholdAlarm() + * @generated + */ + EReference getCeilometerThresholdAlarm_Threshold_rule(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule Threshold Alarm Rule}'. + * + * + * @return the meta object for class 'Threshold Alarm Rule'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule + * @generated + */ + EClass getCeilometerThresholdAlarmRule(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getMeter_name Meter name}'. + * + * + * @return the meta object for the attribute 'Meter name'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getMeter_name() + * @see #getCeilometerThresholdAlarmRule() + * @generated + */ + EAttribute getCeilometerThresholdAlarmRule_Meter_name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getEvaluation_periods Evaluation periods}'. + * + * + * @return the meta object for the attribute 'Evaluation periods'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getEvaluation_periods() + * @see #getCeilometerThresholdAlarmRule() + * @generated + */ + EAttribute getCeilometerThresholdAlarmRule_Evaluation_periods(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getPeriod Period}'. + * + * + * @return the meta object for the attribute 'Period'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getPeriod() + * @see #getCeilometerThresholdAlarmRule() + * @generated + */ + EAttribute getCeilometerThresholdAlarmRule_Period(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getStatistic Statistic}'. + * + * + * @return the meta object for the attribute 'Statistic'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getStatistic() + * @see #getCeilometerThresholdAlarmRule() + * @generated + */ + EAttribute getCeilometerThresholdAlarmRule_Statistic(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getThreshold Threshold}'. + * + * + * @return the meta object for the attribute 'Threshold'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getThreshold() + * @see #getCeilometerThresholdAlarmRule() + * @generated + */ + EAttribute getCeilometerThresholdAlarmRule_Threshold(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getQuery Query}'. + * + * + * @return the meta object for the attribute list 'Query'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getQuery() + * @see #getCeilometerThresholdAlarmRule() + * @generated + */ + EAttribute getCeilometerThresholdAlarmRule_Query(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getComparison_operator Comparison operator}'. + * + * + * @return the meta object for the attribute 'Comparison operator'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getComparison_operator() + * @see #getCeilometerThresholdAlarmRule() + * @generated + */ + EAttribute getCeilometerThresholdAlarmRule_Comparison_operator(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getExclude_outliers Exclude outliers}'. + * + * + * @return the meta object for the attribute 'Exclude outliers'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getExclude_outliers() + * @see #getCeilometerThresholdAlarmRule() + * @generated + */ + EAttribute getCeilometerThresholdAlarmRule_Exclude_outliers(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource Resource}'. + * + * + * @return the meta object for class 'Resource'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource + * @generated + */ + EClass getCeilometerResource(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getId() + * @see #getCeilometerResource() + * @generated + */ + EAttribute getCeilometerResource_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getUser_id User id}'. + * + * + * @return the meta object for the attribute 'User id'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getUser_id() + * @see #getCeilometerResource() + * @generated + */ + EAttribute getCeilometerResource_User_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getProject_id Project id}'. + * + * + * @return the meta object for the attribute 'Project id'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getProject_id() + * @see #getCeilometerResource() + * @generated + */ + EAttribute getCeilometerResource_Project_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getFirst_sample_timestamp First sample timestamp}'. + * + * + * @return the meta object for the attribute 'First sample timestamp'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getFirst_sample_timestamp() + * @see #getCeilometerResource() + * @generated + */ + EAttribute getCeilometerResource_First_sample_timestamp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getLast_sample_timestamp Last sample timestamp}'. + * + * + * @return the meta object for the attribute 'Last sample timestamp'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getLast_sample_timestamp() + * @see #getCeilometerResource() + * @generated + */ + EAttribute getCeilometerResource_Last_sample_timestamp(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getLinks Links}'. + * + * + * @return the meta object for the containment reference list 'Links'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getLinks() + * @see #getCeilometerResource() + * @generated + */ + EReference getCeilometerResource_Links(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getMetadata Metadata}'. + * + * + * @return the meta object for the containment reference 'Metadata'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getMetadata() + * @see #getCeilometerResource() + * @generated + */ + EReference getCeilometerResource_Metadata(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter Meter}'. + * + * + * @return the meta object for class 'Meter'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter + * @generated + */ + EClass getCeilometerMeter(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery Query}'. + * + * + * @return the meta object for class 'Query'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery + * @generated + */ + EClass getCeilometerQuery(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getFilter Filter}'. + * + * + * @return the meta object for the containment reference list 'Filter'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getFilter() + * @see #getCeilometerQuery() + * @generated + */ + EReference getCeilometerQuery_Filter(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getOrderby Orderby}'. + * + * + * @return the meta object for the containment reference list 'Orderby'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getOrderby() + * @see #getCeilometerQuery() + * @generated + */ + EReference getCeilometerQuery_Orderby(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getLimit Limit}'. + * + * + * @return the meta object for the attribute 'Limit'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getLimit() + * @see #getCeilometerQuery() + * @generated + */ + EAttribute getCeilometerQuery_Limit(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter Filter}'. + * + * + * @return the meta object for class 'Filter'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter + * @generated + */ + EClass getCeilometerFilter(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getOperation Operation}'. + * + * + * @return the meta object for the attribute 'Operation'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getOperation() + * @see #getCeilometerFilter() + * @generated + */ + EAttribute getCeilometerFilter_Operation(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getValue Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getValue() + * @see #getCeilometerFilter() + * @generated + */ + EAttribute getCeilometerFilter_Value(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getField Field}'. + * + * + * @return the meta object for the attribute 'Field'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getField() + * @see #getCeilometerFilter() + * @generated + */ + EAttribute getCeilometerFilter_Field(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getFilters Filters}'. + * + * + * @return the meta object for the containment reference list 'Filters'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getFilters() + * @see #getCeilometerFilter() + * @generated + */ + EReference getCeilometerFilter_Filters(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy Ordered By}'. + * + * + * @return the meta object for class 'Ordered By'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy + * @generated + */ + EClass getCeilometerOrderedBy(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getField Field}'. + * + * + * @return the meta object for the attribute 'Field'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getField() + * @see #getCeilometerOrderedBy() + * @generated + */ + EAttribute getCeilometerOrderedBy_Field(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getDirection Direction}'. + * + * + * @return the meta object for the attribute 'Direction'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getDirection() + * @see #getCeilometerOrderedBy() + * @generated + */ + EAttribute getCeilometerOrderedBy_Direction(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerRequest Request}'. + * + * + * @return the meta object for class 'Request'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerRequest + * @generated + */ + EClass getCeilometerRequest(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest Create Alarm Request}'. + * + * + * @return the meta object for class 'Create Alarm Request'. + * @see org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest + * @generated + */ + EClass getCreateAlarmRequest(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.SampleRequest Sample Request}'. + * + * + * @return the meta object for class 'Sample Request'. + * @see org.openecomp.ncomp.openstack.ceilometer.SampleRequest + * @generated + */ + EClass getSampleRequest(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.ceilometer.SampleRequest#getQuery Query}'. + * + * + * @return the meta object for the containment reference 'Query'. + * @see org.openecomp.ncomp.openstack.ceilometer.SampleRequest#getQuery() + * @see #getSampleRequest() + * @generated + */ + EReference getSampleRequest_Query(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample Sample}'. + * + * + * @return the meta object for class 'Sample'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample + * @generated + */ + EClass getCeilometerSample(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_name Counter name}'. + * + * + * @return the meta object for the attribute 'Counter name'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_name() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_Counter_name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getUser_id User id}'. + * + * + * @return the meta object for the attribute 'User id'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getUser_id() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_User_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getResource_id Resource id}'. + * + * + * @return the meta object for the attribute 'Resource id'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getResource_id() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_Resource_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getTimestamp Timestamp}'. + * + * + * @return the meta object for the attribute 'Timestamp'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getTimestamp() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_Timestamp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getRecorded_at Recorded at}'. + * + * + * @return the meta object for the attribute 'Recorded at'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getRecorded_at() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_Recorded_at(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getMessage_id Message id}'. + * + * + * @return the meta object for the attribute 'Message id'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getMessage_id() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_Message_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getSource Source}'. + * + * + * @return the meta object for the attribute 'Source'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getSource() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_Source(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_unit Counter unit}'. + * + * + * @return the meta object for the attribute 'Counter unit'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_unit() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_Counter_unit(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_volume Counter volume}'. + * + * + * @return the meta object for the attribute 'Counter volume'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_volume() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_Counter_volume(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getProject_id Project id}'. + * + * + * @return the meta object for the attribute 'Project id'. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getProject_id() + * @see #getCeilometerSample() + * @generated + */ + EAttribute getCeilometerSample_Project_id(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + CeilometerFactory getCeilometerFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerServiceImpl Service}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerServiceImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerService() + * @generated + */ + EClass CEILOMETER_SERVICE = eINSTANCE.getCeilometerService(); + + /** + * The meta object literal for the 'Ceilometer Available Capabilites' attribute list feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES = eINSTANCE.getCeilometerService_CeilometerAvailableCapabilites(); + + /** + * The meta object literal for the 'Ceilometer Unavailable Capabilites' attribute list feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES = eINSTANCE.getCeilometerService_CeilometerUnavailableCapabilites(); + + /** + * The meta object literal for the 'Create Alarm' operation. + * + * + * @generated + */ + EOperation CEILOMETER_SERVICE___CREATE_ALARM__CREATEALARMREQUEST = eINSTANCE.getCeilometerService__CreateAlarm__CreateAlarmRequest(); + + /** + * The meta object literal for the 'Delete Alarm' operation. + * + * + * @generated + */ + EOperation CEILOMETER_SERVICE___DELETE_ALARM__STRING_STRING = eINSTANCE.getCeilometerService__DeleteAlarm__String_String(); + + /** + * The meta object literal for the 'Create Alarm' operation. + * + * + * @generated + */ + EOperation CEILOMETER_SERVICE___CREATE_ALARM__SAMPLEREQUEST = eINSTANCE.getCeilometerService__CreateAlarm__SampleRequest(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerProjectImpl Project}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerProjectImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerProject() + * @generated + */ + EClass CEILOMETER_PROJECT = eINSTANCE.getCeilometerProject(); + + /** + * The meta object literal for the 'Alarms' containment reference list feature. + * + * + * @generated + */ + EReference CEILOMETER_PROJECT__ALARMS = eINSTANCE.getCeilometerProject_Alarms(); + + /** + * The meta object literal for the 'Resources' containment reference list feature. + * + * + * @generated + */ + EReference CEILOMETER_PROJECT__RESOURCES = eINSTANCE.getCeilometerProject_Resources(); + + /** + * The meta object literal for the 'Meters' containment reference list feature. + * + * + * @generated + */ + EReference CEILOMETER_PROJECT__METERS = eINSTANCE.getCeilometerProject_Meters(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl Alarm}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerAlarm() + * @generated + */ + EClass CEILOMETER_ALARM = eINSTANCE.getCeilometerAlarm(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__ID = eINSTANCE.getCeilometerAlarm_Id(); + + /** + * The meta object literal for the 'User id' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__USER_ID = eINSTANCE.getCeilometerAlarm_User_id(); + + /** + * The meta object literal for the 'Timestamp' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__TIMESTAMP = eINSTANCE.getCeilometerAlarm_Timestamp(); + + /** + * The meta object literal for the 'Enabled' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__ENABLED = eINSTANCE.getCeilometerAlarm_Enabled(); + + /** + * The meta object literal for the 'State' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__STATE = eINSTANCE.getCeilometerAlarm_State(); + + /** + * The meta object literal for the 'State timestamp' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__STATE_TIMESTAMP = eINSTANCE.getCeilometerAlarm_State_timestamp(); + + /** + * The meta object literal for the 'Description' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__DESCRIPTION = eINSTANCE.getCeilometerAlarm_Description(); + + /** + * The meta object literal for the 'Alarm actions' attribute list feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__ALARM_ACTIONS = eINSTANCE.getCeilometerAlarm_Alarm_actions(); + + /** + * The meta object literal for the 'Ok actions' attribute list feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__OK_ACTIONS = eINSTANCE.getCeilometerAlarm_Ok_actions(); + + /** + * The meta object literal for the 'Insufficient data actions' attribute list feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS = eINSTANCE.getCeilometerAlarm_Insufficient_data_actions(); + + /** + * The meta object literal for the 'Repeat actions' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__REPEAT_ACTIONS = eINSTANCE.getCeilometerAlarm_Repeat_actions(); + + /** + * The meta object literal for the 'Time constraints' attribute list feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ALARM__TIME_CONSTRAINTS = eINSTANCE.getCeilometerAlarm_Time_constraints(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmImpl Threshold Alarm}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerThresholdAlarm() + * @generated + */ + EClass CEILOMETER_THRESHOLD_ALARM = eINSTANCE.getCeilometerThresholdAlarm(); + + /** + * The meta object literal for the 'Threshold rule' containment reference feature. + * + * + * @generated + */ + EReference CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE = eINSTANCE.getCeilometerThresholdAlarm_Threshold_rule(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl Threshold Alarm Rule}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerThresholdAlarmRule() + * @generated + */ + EClass CEILOMETER_THRESHOLD_ALARM_RULE = eINSTANCE.getCeilometerThresholdAlarmRule(); + + /** + * The meta object literal for the 'Meter name' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_THRESHOLD_ALARM_RULE__METER_NAME = eINSTANCE.getCeilometerThresholdAlarmRule_Meter_name(); + + /** + * The meta object literal for the 'Evaluation periods' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_THRESHOLD_ALARM_RULE__EVALUATION_PERIODS = eINSTANCE.getCeilometerThresholdAlarmRule_Evaluation_periods(); + + /** + * The meta object literal for the 'Period' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_THRESHOLD_ALARM_RULE__PERIOD = eINSTANCE.getCeilometerThresholdAlarmRule_Period(); + + /** + * The meta object literal for the 'Statistic' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_THRESHOLD_ALARM_RULE__STATISTIC = eINSTANCE.getCeilometerThresholdAlarmRule_Statistic(); + + /** + * The meta object literal for the 'Threshold' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_THRESHOLD_ALARM_RULE__THRESHOLD = eINSTANCE.getCeilometerThresholdAlarmRule_Threshold(); + + /** + * The meta object literal for the 'Query' attribute list feature. + * + * + * @generated + */ + EAttribute CEILOMETER_THRESHOLD_ALARM_RULE__QUERY = eINSTANCE.getCeilometerThresholdAlarmRule_Query(); + + /** + * The meta object literal for the 'Comparison operator' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_THRESHOLD_ALARM_RULE__COMPARISON_OPERATOR = eINSTANCE.getCeilometerThresholdAlarmRule_Comparison_operator(); + + /** + * The meta object literal for the 'Exclude outliers' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_THRESHOLD_ALARM_RULE__EXCLUDE_OUTLIERS = eINSTANCE.getCeilometerThresholdAlarmRule_Exclude_outliers(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl Resource}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerResource() + * @generated + */ + EClass CEILOMETER_RESOURCE = eINSTANCE.getCeilometerResource(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_RESOURCE__ID = eINSTANCE.getCeilometerResource_Id(); + + /** + * The meta object literal for the 'User id' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_RESOURCE__USER_ID = eINSTANCE.getCeilometerResource_User_id(); + + /** + * The meta object literal for the 'Project id' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_RESOURCE__PROJECT_ID = eINSTANCE.getCeilometerResource_Project_id(); + + /** + * The meta object literal for the 'First sample timestamp' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_RESOURCE__FIRST_SAMPLE_TIMESTAMP = eINSTANCE.getCeilometerResource_First_sample_timestamp(); + + /** + * The meta object literal for the 'Last sample timestamp' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_RESOURCE__LAST_SAMPLE_TIMESTAMP = eINSTANCE.getCeilometerResource_Last_sample_timestamp(); + + /** + * The meta object literal for the 'Links' containment reference list feature. + * + * + * @generated + */ + EReference CEILOMETER_RESOURCE__LINKS = eINSTANCE.getCeilometerResource_Links(); + + /** + * The meta object literal for the 'Metadata' containment reference feature. + * + * + * @generated + */ + EReference CEILOMETER_RESOURCE__METADATA = eINSTANCE.getCeilometerResource_Metadata(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerMeterImpl Meter}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerMeterImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerMeter() + * @generated + */ + EClass CEILOMETER_METER = eINSTANCE.getCeilometerMeter(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerQueryImpl Query}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerQueryImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerQuery() + * @generated + */ + EClass CEILOMETER_QUERY = eINSTANCE.getCeilometerQuery(); + + /** + * The meta object literal for the 'Filter' containment reference list feature. + * + * + * @generated + */ + EReference CEILOMETER_QUERY__FILTER = eINSTANCE.getCeilometerQuery_Filter(); + + /** + * The meta object literal for the 'Orderby' containment reference list feature. + * + * + * @generated + */ + EReference CEILOMETER_QUERY__ORDERBY = eINSTANCE.getCeilometerQuery_Orderby(); + + /** + * The meta object literal for the 'Limit' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_QUERY__LIMIT = eINSTANCE.getCeilometerQuery_Limit(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerFilterImpl Filter}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerFilterImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerFilter() + * @generated + */ + EClass CEILOMETER_FILTER = eINSTANCE.getCeilometerFilter(); + + /** + * The meta object literal for the 'Operation' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_FILTER__OPERATION = eINSTANCE.getCeilometerFilter_Operation(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_FILTER__VALUE = eINSTANCE.getCeilometerFilter_Value(); + + /** + * The meta object literal for the 'Field' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_FILTER__FIELD = eINSTANCE.getCeilometerFilter_Field(); + + /** + * The meta object literal for the 'Filters' containment reference list feature. + * + * + * @generated + */ + EReference CEILOMETER_FILTER__FILTERS = eINSTANCE.getCeilometerFilter_Filters(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerOrderedByImpl Ordered By}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerOrderedByImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerOrderedBy() + * @generated + */ + EClass CEILOMETER_ORDERED_BY = eINSTANCE.getCeilometerOrderedBy(); + + /** + * The meta object literal for the 'Field' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ORDERED_BY__FIELD = eINSTANCE.getCeilometerOrderedBy_Field(); + + /** + * The meta object literal for the 'Direction' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_ORDERED_BY__DIRECTION = eINSTANCE.getCeilometerOrderedBy_Direction(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerRequestImpl Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerRequestImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerRequest() + * @generated + */ + EClass CEILOMETER_REQUEST = eINSTANCE.getCeilometerRequest(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CreateAlarmRequestImpl Create Alarm Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CreateAlarmRequestImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCreateAlarmRequest() + * @generated + */ + EClass CREATE_ALARM_REQUEST = eINSTANCE.getCreateAlarmRequest(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.SampleRequestImpl Sample Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.SampleRequestImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getSampleRequest() + * @generated + */ + EClass SAMPLE_REQUEST = eINSTANCE.getSampleRequest(); + + /** + * The meta object literal for the 'Query' containment reference feature. + * + * + * @generated + */ + EReference SAMPLE_REQUEST__QUERY = eINSTANCE.getSampleRequest_Query(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl Sample}' class. + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl + * @see org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerPackageImpl#getCeilometerSample() + * @generated + */ + EClass CEILOMETER_SAMPLE = eINSTANCE.getCeilometerSample(); + + /** + * The meta object literal for the 'Counter name' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__COUNTER_NAME = eINSTANCE.getCeilometerSample_Counter_name(); + + /** + * The meta object literal for the 'User id' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__USER_ID = eINSTANCE.getCeilometerSample_User_id(); + + /** + * The meta object literal for the 'Resource id' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__RESOURCE_ID = eINSTANCE.getCeilometerSample_Resource_id(); + + /** + * The meta object literal for the 'Timestamp' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__TIMESTAMP = eINSTANCE.getCeilometerSample_Timestamp(); + + /** + * The meta object literal for the 'Recorded at' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__RECORDED_AT = eINSTANCE.getCeilometerSample_Recorded_at(); + + /** + * The meta object literal for the 'Message id' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__MESSAGE_ID = eINSTANCE.getCeilometerSample_Message_id(); + + /** + * The meta object literal for the 'Source' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__SOURCE = eINSTANCE.getCeilometerSample_Source(); + + /** + * The meta object literal for the 'Counter unit' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__COUNTER_UNIT = eINSTANCE.getCeilometerSample_Counter_unit(); + + /** + * The meta object literal for the 'Counter volume' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__COUNTER_VOLUME = eINSTANCE.getCeilometerSample_Counter_volume(); + + /** + * The meta object literal for the 'Project id' attribute feature. + * + * + * @generated + */ + EAttribute CEILOMETER_SAMPLE__PROJECT_ID = eINSTANCE.getCeilometerSample_Project_id(); + + } + +} //CeilometerPackage diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerProject.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerProject.java new file mode 100644 index 0000000..caa451e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerProject.java @@ -0,0 +1,97 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Project'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject#getAlarms Alarms}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject#getResources Resources}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject#getMeters Meters}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerProject() + * @model abstract="true" + * @generated + */ +public interface CeilometerProject extends EObject { + /** + * Returns the value of the 'Alarms' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm}. + * + *

+ * If the meaning of the 'Alarms' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Alarms' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerProject_Alarms() + * @model containment="true" + * @generated + */ + EList getAlarms(); + + /** + * Returns the value of the 'Resources' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource}. + * + *

+ * If the meaning of the 'Resources' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Resources' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerProject_Resources() + * @model containment="true" + * @generated + */ + EList getResources(); + + /** + * Returns the value of the 'Meters' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter}. + * + *

+ * If the meaning of the 'Meters' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Meters' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerProject_Meters() + * @model containment="true" + * @generated + */ + EList getMeters(); + +} // CeilometerProject diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerQuery.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerQuery.java new file mode 100644 index 0000000..0cc5b71 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerQuery.java @@ -0,0 +1,107 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Query'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getFilter Filter}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getOrderby Orderby}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getLimit Limit}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerQuery() + * @model + * @generated + */ +public interface CeilometerQuery extends EObject { + /** + * Returns the value of the 'Filter' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter}. + * + *

+ * If the meaning of the 'Filter' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Filter' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerQuery_Filter() + * @model containment="true" + * @generated + */ + EList getFilter(); + + /** + * Returns the value of the 'Orderby' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy}. + * + *

+ * If the meaning of the 'Orderby' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Orderby' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerQuery_Orderby() + * @model containment="true" + * @generated + */ + EList getOrderby(); + + /** + * Returns the value of the 'Limit' attribute. + * + *

+ * If the meaning of the 'Limit' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Limit' attribute. + * @see #setLimit(Long) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerQuery_Limit() + * @model unique="false" + * @generated + */ + Long getLimit(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getLimit Limit}' attribute. + * + * + * @param value the new value of the 'Limit' attribute. + * @see #getLimit() + * @generated + */ + void setLimit(Long value); + +} // CeilometerQuery diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerRequest.java new file mode 100644 index 0000000..a36c8e5 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerRequest.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +/** + * + * A representation of the model object 'Request'. + * + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerRequest() + * @model abstract="true" + * @generated + */ +public interface CeilometerRequest extends OpenStackRequest { +} // CeilometerRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerResource.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerResource.java new file mode 100644 index 0000000..fe0e704 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerResource.java @@ -0,0 +1,227 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import java.util.Date; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Resource'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getProject_id Project id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getFirst_sample_timestamp First sample timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getLast_sample_timestamp Last sample timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getLinks Links}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource() + * @model + * @generated + */ +public interface CeilometerResource extends EObject { + + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *

+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Project id' attribute. + * + *

+ * If the meaning of the 'Project id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Project id' attribute. + * @see #setProject_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Project_id() + * @model unique="false" + * @generated + */ + String getProject_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getProject_id Project id}' attribute. + * + * + * @param value the new value of the 'Project id' attribute. + * @see #getProject_id() + * @generated + */ + void setProject_id(String value); + + /** + * Returns the value of the 'First sample timestamp' attribute. + * + *

+ * If the meaning of the 'First sample timestamp' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'First sample timestamp' attribute. + * @see #setFirst_sample_timestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_First_sample_timestamp() + * @model unique="false" + * @generated + */ + Date getFirst_sample_timestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getFirst_sample_timestamp First sample timestamp}' attribute. + * + * + * @param value the new value of the 'First sample timestamp' attribute. + * @see #getFirst_sample_timestamp() + * @generated + */ + void setFirst_sample_timestamp(Date value); + + /** + * Returns the value of the 'Last sample timestamp' attribute. + * + *

+ * If the meaning of the 'Last sample timestamp' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Last sample timestamp' attribute. + * @see #setLast_sample_timestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Last_sample_timestamp() + * @model unique="false" + * @generated + */ + Date getLast_sample_timestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getLast_sample_timestamp Last sample timestamp}' attribute. + * + * + * @param value the new value of the 'Last sample timestamp' attribute. + * @see #getLast_sample_timestamp() + * @generated + */ + void setLast_sample_timestamp(Date value); + + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Link}. + * + *

+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + + /** + * Returns the value of the 'Metadata' containment reference. + * + *

+ * If the meaning of the 'Metadata' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Metadata' containment reference. + * @see #setMetadata(Metadata) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Metadata() + * @model containment="true" + * @generated + */ + Metadata getMetadata(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getMetadata Metadata}' containment reference. + * + * + * @param value the new value of the 'Metadata' containment reference. + * @see #getMetadata() + * @generated + */ + void setMetadata(Metadata value); +} // CeilometerResource diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerSample.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerSample.java new file mode 100644 index 0000000..c0abee2 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerSample.java @@ -0,0 +1,316 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import java.util.Date; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Sample'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_name Counter name}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getResource_id Resource id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getTimestamp Timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getRecorded_at Recorded at}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getMessage_id Message id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getSource Source}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_unit Counter unit}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_volume Counter volume}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getProject_id Project id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample() + * @model + * @generated + */ +public interface CeilometerSample extends EObject { + /** + * Returns the value of the 'Counter name' attribute. + * + *

+ * If the meaning of the 'Counter name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Counter name' attribute. + * @see #setCounter_name(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Counter_name() + * @model unique="false" + * @generated + */ + String getCounter_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_name Counter name}' attribute. + * + * + * @param value the new value of the 'Counter name' attribute. + * @see #getCounter_name() + * @generated + */ + void setCounter_name(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *

+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Resource id' attribute. + * + *

+ * If the meaning of the 'Resource id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Resource id' attribute. + * @see #setResource_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Resource_id() + * @model unique="false" + * @generated + */ + String getResource_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getResource_id Resource id}' attribute. + * + * + * @param value the new value of the 'Resource id' attribute. + * @see #getResource_id() + * @generated + */ + void setResource_id(String value); + + /** + * Returns the value of the 'Timestamp' attribute. + * + *

+ * If the meaning of the 'Timestamp' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Timestamp' attribute. + * @see #setTimestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Timestamp() + * @model unique="false" + * @generated + */ + Date getTimestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getTimestamp Timestamp}' attribute. + * + * + * @param value the new value of the 'Timestamp' attribute. + * @see #getTimestamp() + * @generated + */ + void setTimestamp(Date value); + + /** + * Returns the value of the 'Recorded at' attribute. + * + *

+ * If the meaning of the 'Recorded at' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Recorded at' attribute. + * @see #setRecorded_at(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Recorded_at() + * @model unique="false" + * @generated + */ + Date getRecorded_at(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getRecorded_at Recorded at}' attribute. + * + * + * @param value the new value of the 'Recorded at' attribute. + * @see #getRecorded_at() + * @generated + */ + void setRecorded_at(Date value); + + /** + * Returns the value of the 'Message id' attribute. + * + *

+ * If the meaning of the 'Message id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Message id' attribute. + * @see #setMessage_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Message_id() + * @model unique="false" + * @generated + */ + String getMessage_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getMessage_id Message id}' attribute. + * + * + * @param value the new value of the 'Message id' attribute. + * @see #getMessage_id() + * @generated + */ + void setMessage_id(String value); + + /** + * Returns the value of the 'Source' attribute. + * + *

+ * If the meaning of the 'Source' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Source' attribute. + * @see #setSource(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Source() + * @model unique="false" + * @generated + */ + String getSource(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getSource Source}' attribute. + * + * + * @param value the new value of the 'Source' attribute. + * @see #getSource() + * @generated + */ + void setSource(String value); + + /** + * Returns the value of the 'Counter unit' attribute. + * + *

+ * If the meaning of the 'Counter unit' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Counter unit' attribute. + * @see #setCounter_unit(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Counter_unit() + * @model unique="false" + * @generated + */ + String getCounter_unit(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_unit Counter unit}' attribute. + * + * + * @param value the new value of the 'Counter unit' attribute. + * @see #getCounter_unit() + * @generated + */ + void setCounter_unit(String value); + + /** + * Returns the value of the 'Counter volume' attribute. + * + *

+ * If the meaning of the 'Counter volume' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Counter volume' attribute. + * @see #setCounter_volume(double) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Counter_volume() + * @model unique="false" + * @generated + */ + double getCounter_volume(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_volume Counter volume}' attribute. + * + * + * @param value the new value of the 'Counter volume' attribute. + * @see #getCounter_volume() + * @generated + */ + void setCounter_volume(double value); + + /** + * Returns the value of the 'Project id' attribute. + * + *

+ * If the meaning of the 'Project id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Project id' attribute. + * @see #setProject_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Project_id() + * @model unique="false" + * @generated + */ + String getProject_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getProject_id Project id}' attribute. + * + * + * @param value the new value of the 'Project id' attribute. + * @see #getProject_id() + * @generated + */ + void setProject_id(String value); + +} // CeilometerSample diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerService.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerService.java new file mode 100644 index 0000000..4133b4b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerService.java @@ -0,0 +1,103 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Service'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService#getCeilometerAvailableCapabilites Ceilometer Available Capabilites}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService#getCeilometerUnavailableCapabilites Ceilometer Unavailable Capabilites}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerService() + * @model abstract="true" + * @generated + */ +public interface CeilometerService extends EObject { + /** + * Returns the value of the 'Ceilometer Available Capabilites' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Ceilometer Available Capabilites' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ceilometer Available Capabilites' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerService_CeilometerAvailableCapabilites() + * @model unique="false" + * @generated + */ + EList getCeilometerAvailableCapabilites(); + + /** + * Returns the value of the 'Ceilometer Unavailable Capabilites' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Ceilometer Unavailable Capabilites' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ceilometer Unavailable Capabilites' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerService_CeilometerUnavailableCapabilites() + * @model unique="false" + * @generated + */ + EList getCeilometerUnavailableCapabilites(); + + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + CeilometerAlarm createAlarm(CreateAlarmRequest request); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteAlarm(String projectName, String name); + + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + EList createAlarm(SampleRequest request); + +} // CeilometerService diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarm.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarm.java new file mode 100644 index 0000000..983c0b3 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarm.java @@ -0,0 +1,70 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + + +/** + * + * A representation of the model object 'Threshold Alarm'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm#getThreshold_rule Threshold rule}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarm() + * @model + * @generated + */ +public interface CeilometerThresholdAlarm extends CeilometerAlarm { + + /** + * Returns the value of the 'Threshold rule' containment reference. + * + *

+ * If the meaning of the 'Threshold rule' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Threshold rule' containment reference. + * @see #setThreshold_rule(CeilometerThresholdAlarmRule) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarm_Threshold_rule() + * @model containment="true" + * @generated + */ + CeilometerThresholdAlarmRule getThreshold_rule(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm#getThreshold_rule Threshold rule}' containment reference. + * + * + * @param value the new value of the 'Threshold rule' containment reference. + * @see #getThreshold_rule() + * @generated + */ + void setThreshold_rule(CeilometerThresholdAlarmRule value); +} // CeilometerThresholdAlarm diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarmRule.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarmRule.java new file mode 100644 index 0000000..4a50de6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarmRule.java @@ -0,0 +1,252 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Threshold Alarm Rule'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getMeter_name Meter name}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getEvaluation_periods Evaluation periods}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getPeriod Period}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getStatistic Statistic}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getThreshold Threshold}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getQuery Query}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getComparison_operator Comparison operator}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getExclude_outliers Exclude outliers}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule() + * @model + * @generated + */ +public interface CeilometerThresholdAlarmRule extends EObject { + /** + * Returns the value of the 'Meter name' attribute. + * + *

+ * If the meaning of the 'Meter name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Meter name' attribute. + * @see #setMeter_name(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Meter_name() + * @model unique="false" + * @generated + */ + String getMeter_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getMeter_name Meter name}' attribute. + * + * + * @param value the new value of the 'Meter name' attribute. + * @see #getMeter_name() + * @generated + */ + void setMeter_name(String value); + + /** + * Returns the value of the 'Evaluation periods' attribute. + * + *

+ * If the meaning of the 'Evaluation periods' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Evaluation periods' attribute. + * @see #setEvaluation_periods(Long) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Evaluation_periods() + * @model unique="false" + * @generated + */ + Long getEvaluation_periods(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getEvaluation_periods Evaluation periods}' attribute. + * + * + * @param value the new value of the 'Evaluation periods' attribute. + * @see #getEvaluation_periods() + * @generated + */ + void setEvaluation_periods(Long value); + + /** + * Returns the value of the 'Period' attribute. + * + *

+ * If the meaning of the 'Period' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Period' attribute. + * @see #setPeriod(Long) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Period() + * @model unique="false" + * @generated + */ + Long getPeriod(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getPeriod Period}' attribute. + * + * + * @param value the new value of the 'Period' attribute. + * @see #getPeriod() + * @generated + */ + void setPeriod(Long value); + + /** + * Returns the value of the 'Statistic' attribute. + * + *

+ * If the meaning of the 'Statistic' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Statistic' attribute. + * @see #setStatistic(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Statistic() + * @model unique="false" + * @generated + */ + String getStatistic(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getStatistic Statistic}' attribute. + * + * + * @param value the new value of the 'Statistic' attribute. + * @see #getStatistic() + * @generated + */ + void setStatistic(String value); + + /** + * Returns the value of the 'Threshold' attribute. + * + *

+ * If the meaning of the 'Threshold' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Threshold' attribute. + * @see #setThreshold(double) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Threshold() + * @model unique="false" + * @generated + */ + double getThreshold(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getThreshold Threshold}' attribute. + * + * + * @param value the new value of the 'Threshold' attribute. + * @see #getThreshold() + * @generated + */ + void setThreshold(double value); + + /** + * Returns the value of the 'Query' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Query' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Query' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Query() + * @model unique="false" + * @generated + */ + EList getQuery(); + + /** + * Returns the value of the 'Comparison operator' attribute. + * + *

+ * If the meaning of the 'Comparison operator' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Comparison operator' attribute. + * @see #setComparison_operator(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Comparison_operator() + * @model unique="false" + * @generated + */ + String getComparison_operator(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getComparison_operator Comparison operator}' attribute. + * + * + * @param value the new value of the 'Comparison operator' attribute. + * @see #getComparison_operator() + * @generated + */ + void setComparison_operator(String value); + + /** + * Returns the value of the 'Exclude outliers' attribute. + * + *

+ * If the meaning of the 'Exclude outliers' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Exclude outliers' attribute. + * @see #setExclude_outliers(Boolean) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Exclude_outliers() + * @model unique="false" + * @generated + */ + Boolean getExclude_outliers(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getExclude_outliers Exclude outliers}' attribute. + * + * + * @param value the new value of the 'Exclude outliers' attribute. + * @see #getExclude_outliers() + * @generated + */ + void setExclude_outliers(Boolean value); + +} // CeilometerThresholdAlarmRule diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CreateAlarmRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CreateAlarmRequest.java new file mode 100644 index 0000000..44e11b7 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CreateAlarmRequest.java @@ -0,0 +1,38 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + + +/** + * + * A representation of the model object 'Create Alarm Request'. + * + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCreateAlarmRequest() + * @model + * @generated + */ +public interface CreateAlarmRequest extends CeilometerRequest { +} // CreateAlarmRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/SampleRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/SampleRequest.java new file mode 100644 index 0000000..47640b7 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/SampleRequest.java @@ -0,0 +1,70 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + + +/** + * + * A representation of the model object 'Sample Request'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.SampleRequest#getQuery Query}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getSampleRequest() + * @model + * @generated + */ +public interface SampleRequest extends CeilometerRequest { + /** + * Returns the value of the 'Query' containment reference. + * + *

+ * If the meaning of the 'Query' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Query' containment reference. + * @see #setQuery(CeilometerQuery) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getSampleRequest_Query() + * @model containment="true" + * @generated + */ + CeilometerQuery getQuery(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.SampleRequest#getQuery Query}' containment reference. + * + * + * @param value the new value of the 'Query' containment reference. + * @see #getQuery() + * @generated + */ + void setQuery(CeilometerQuery value); + +} // SampleRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerAlarmImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerAlarmImpl.java new file mode 100644 index 0000000..9e989b2 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerAlarmImpl.java @@ -0,0 +1,708 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import java.util.Collection; +import java.util.Date; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Alarm'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getTimestamp Timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getEnabled Enabled}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getState State}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getState_timestamp State timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getDescription Description}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getAlarm_actions Alarm actions}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getOk_actions Ok actions}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getInsufficient_data_actions Insufficient data actions}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getRepeat_actions Repeat actions}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerAlarmImpl#getTime_constraints Time constraints}
  • + *
+ *

+ * + * @generated + */ +public abstract class CeilometerAlarmImpl extends NamedEntityImpl implements CeilometerAlarm { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected static final String USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected String user_id = USER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getTimestamp() Timestamp}' attribute. + * + * + * @see #getTimestamp() + * @generated + * @ordered + */ + protected static final Date TIMESTAMP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTimestamp() Timestamp}' attribute. + * + * + * @see #getTimestamp() + * @generated + * @ordered + */ + protected Date timestamp = TIMESTAMP_EDEFAULT; + + /** + * The default value of the '{@link #getEnabled() Enabled}' attribute. + * + * + * @see #getEnabled() + * @generated + * @ordered + */ + protected static final Boolean ENABLED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnabled() Enabled}' attribute. + * + * + * @see #getEnabled() + * @generated + * @ordered + */ + protected Boolean enabled = ENABLED_EDEFAULT; + + /** + * The default value of the '{@link #getState() State}' attribute. + * + * + * @see #getState() + * @generated + * @ordered + */ + protected static final String STATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getState() State}' attribute. + * + * + * @see #getState() + * @generated + * @ordered + */ + protected String state = STATE_EDEFAULT; + + /** + * The default value of the '{@link #getState_timestamp() State timestamp}' attribute. + * + * + * @see #getState_timestamp() + * @generated + * @ordered + */ + protected static final Date STATE_TIMESTAMP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getState_timestamp() State timestamp}' attribute. + * + * + * @see #getState_timestamp() + * @generated + * @ordered + */ + protected Date state_timestamp = STATE_TIMESTAMP_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getAlarm_actions() Alarm actions}' attribute list. + * + * + * @see #getAlarm_actions() + * @generated + * @ordered + */ + protected EList alarm_actions; + + /** + * The cached value of the '{@link #getOk_actions() Ok actions}' attribute list. + * + * + * @see #getOk_actions() + * @generated + * @ordered + */ + protected EList ok_actions; + + /** + * The cached value of the '{@link #getInsufficient_data_actions() Insufficient data actions}' attribute list. + * + * + * @see #getInsufficient_data_actions() + * @generated + * @ordered + */ + protected EList insufficient_data_actions; + + /** + * The default value of the '{@link #getRepeat_actions() Repeat actions}' attribute. + * + * + * @see #getRepeat_actions() + * @generated + * @ordered + */ + protected static final Boolean REPEAT_ACTIONS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRepeat_actions() Repeat actions}' attribute. + * + * + * @see #getRepeat_actions() + * @generated + * @ordered + */ + protected Boolean repeat_actions = REPEAT_ACTIONS_EDEFAULT; + + /** + * The cached value of the '{@link #getTime_constraints() Time constraints}' attribute list. + * + * + * @see #getTime_constraints() + * @generated + * @ordered + */ + protected EList time_constraints; + + /** + * + * + * @generated + */ + protected CeilometerAlarmImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_ALARM; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ALARM__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getUser_id() { + return user_id; + } + + /** + * + * + * @generated + */ + public void setUser_id(String newUser_id) { + String oldUser_id = user_id; + user_id = newUser_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ALARM__USER_ID, oldUser_id, user_id)); + } + + /** + * + * + * @generated + */ + public Date getTimestamp() { + return timestamp; + } + + /** + * + * + * @generated + */ + public void setTimestamp(Date newTimestamp) { + Date oldTimestamp = timestamp; + timestamp = newTimestamp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ALARM__TIMESTAMP, oldTimestamp, timestamp)); + } + + /** + * + * + * @generated + */ + public Boolean getEnabled() { + return enabled; + } + + /** + * + * + * @generated + */ + public void setEnabled(Boolean newEnabled) { + Boolean oldEnabled = enabled; + enabled = newEnabled; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ALARM__ENABLED, oldEnabled, enabled)); + } + + /** + * + * + * @generated + */ + public String getState() { + return state; + } + + /** + * + * + * @generated + */ + public void setState(String newState) { + String oldState = state; + state = newState; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ALARM__STATE, oldState, state)); + } + + /** + * + * + * @generated + */ + public Date getState_timestamp() { + return state_timestamp; + } + + /** + * + * + * @generated + */ + public void setState_timestamp(Date newState_timestamp) { + Date oldState_timestamp = state_timestamp; + state_timestamp = newState_timestamp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ALARM__STATE_TIMESTAMP, oldState_timestamp, state_timestamp)); + } + + /** + * + * + * @generated + */ + public String getDescription() { + return description; + } + + /** + * + * + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ALARM__DESCRIPTION, oldDescription, description)); + } + + /** + * + * + * @generated + */ + public EList getAlarm_actions() { + if (alarm_actions == null) { + alarm_actions = new EDataTypeEList(String.class, this, CeilometerPackage.CEILOMETER_ALARM__ALARM_ACTIONS); + } + return alarm_actions; + } + + /** + * + * + * @generated + */ + public EList getOk_actions() { + if (ok_actions == null) { + ok_actions = new EDataTypeEList(String.class, this, CeilometerPackage.CEILOMETER_ALARM__OK_ACTIONS); + } + return ok_actions; + } + + /** + * + * + * @generated + */ + public EList getInsufficient_data_actions() { + if (insufficient_data_actions == null) { + insufficient_data_actions = new EDataTypeEList(String.class, this, CeilometerPackage.CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS); + } + return insufficient_data_actions; + } + + /** + * + * + * @generated + */ + public Boolean getRepeat_actions() { + return repeat_actions; + } + + /** + * + * + * @generated + */ + public void setRepeat_actions(Boolean newRepeat_actions) { + Boolean oldRepeat_actions = repeat_actions; + repeat_actions = newRepeat_actions; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ALARM__REPEAT_ACTIONS, oldRepeat_actions, repeat_actions)); + } + + /** + * + * + * @generated + */ + public EList getTime_constraints() { + if (time_constraints == null) { + time_constraints = new EDataTypeEList(String.class, this, CeilometerPackage.CEILOMETER_ALARM__TIME_CONSTRAINTS); + } + return time_constraints; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_ALARM__ID: + return getId(); + case CeilometerPackage.CEILOMETER_ALARM__USER_ID: + return getUser_id(); + case CeilometerPackage.CEILOMETER_ALARM__TIMESTAMP: + return getTimestamp(); + case CeilometerPackage.CEILOMETER_ALARM__ENABLED: + return getEnabled(); + case CeilometerPackage.CEILOMETER_ALARM__STATE: + return getState(); + case CeilometerPackage.CEILOMETER_ALARM__STATE_TIMESTAMP: + return getState_timestamp(); + case CeilometerPackage.CEILOMETER_ALARM__DESCRIPTION: + return getDescription(); + case CeilometerPackage.CEILOMETER_ALARM__ALARM_ACTIONS: + return getAlarm_actions(); + case CeilometerPackage.CEILOMETER_ALARM__OK_ACTIONS: + return getOk_actions(); + case CeilometerPackage.CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS: + return getInsufficient_data_actions(); + case CeilometerPackage.CEILOMETER_ALARM__REPEAT_ACTIONS: + return getRepeat_actions(); + case CeilometerPackage.CEILOMETER_ALARM__TIME_CONSTRAINTS: + return getTime_constraints(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_ALARM__ID: + setId((String)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__USER_ID: + setUser_id((String)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__TIMESTAMP: + setTimestamp((Date)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__ENABLED: + setEnabled((Boolean)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__STATE: + setState((String)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__STATE_TIMESTAMP: + setState_timestamp((Date)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__DESCRIPTION: + setDescription((String)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__ALARM_ACTIONS: + getAlarm_actions().clear(); + getAlarm_actions().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__OK_ACTIONS: + getOk_actions().clear(); + getOk_actions().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS: + getInsufficient_data_actions().clear(); + getInsufficient_data_actions().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__REPEAT_ACTIONS: + setRepeat_actions((Boolean)newValue); + return; + case CeilometerPackage.CEILOMETER_ALARM__TIME_CONSTRAINTS: + getTime_constraints().clear(); + getTime_constraints().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_ALARM__ID: + setId(ID_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_ALARM__USER_ID: + setUser_id(USER_ID_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_ALARM__TIMESTAMP: + setTimestamp(TIMESTAMP_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_ALARM__ENABLED: + setEnabled(ENABLED_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_ALARM__STATE: + setState(STATE_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_ALARM__STATE_TIMESTAMP: + setState_timestamp(STATE_TIMESTAMP_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_ALARM__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_ALARM__ALARM_ACTIONS: + getAlarm_actions().clear(); + return; + case CeilometerPackage.CEILOMETER_ALARM__OK_ACTIONS: + getOk_actions().clear(); + return; + case CeilometerPackage.CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS: + getInsufficient_data_actions().clear(); + return; + case CeilometerPackage.CEILOMETER_ALARM__REPEAT_ACTIONS: + setRepeat_actions(REPEAT_ACTIONS_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_ALARM__TIME_CONSTRAINTS: + getTime_constraints().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_ALARM__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case CeilometerPackage.CEILOMETER_ALARM__USER_ID: + return USER_ID_EDEFAULT == null ? user_id != null : !USER_ID_EDEFAULT.equals(user_id); + case CeilometerPackage.CEILOMETER_ALARM__TIMESTAMP: + return TIMESTAMP_EDEFAULT == null ? timestamp != null : !TIMESTAMP_EDEFAULT.equals(timestamp); + case CeilometerPackage.CEILOMETER_ALARM__ENABLED: + return ENABLED_EDEFAULT == null ? enabled != null : !ENABLED_EDEFAULT.equals(enabled); + case CeilometerPackage.CEILOMETER_ALARM__STATE: + return STATE_EDEFAULT == null ? state != null : !STATE_EDEFAULT.equals(state); + case CeilometerPackage.CEILOMETER_ALARM__STATE_TIMESTAMP: + return STATE_TIMESTAMP_EDEFAULT == null ? state_timestamp != null : !STATE_TIMESTAMP_EDEFAULT.equals(state_timestamp); + case CeilometerPackage.CEILOMETER_ALARM__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case CeilometerPackage.CEILOMETER_ALARM__ALARM_ACTIONS: + return alarm_actions != null && !alarm_actions.isEmpty(); + case CeilometerPackage.CEILOMETER_ALARM__OK_ACTIONS: + return ok_actions != null && !ok_actions.isEmpty(); + case CeilometerPackage.CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS: + return insufficient_data_actions != null && !insufficient_data_actions.isEmpty(); + case CeilometerPackage.CEILOMETER_ALARM__REPEAT_ACTIONS: + return REPEAT_ACTIONS_EDEFAULT == null ? repeat_actions != null : !REPEAT_ACTIONS_EDEFAULT.equals(repeat_actions); + case CeilometerPackage.CEILOMETER_ALARM__TIME_CONSTRAINTS: + return time_constraints != null && !time_constraints.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", user_id: "); + result.append(user_id); + result.append(", timestamp: "); + result.append(timestamp); + result.append(", enabled: "); + result.append(enabled); + result.append(", state: "); + result.append(state); + result.append(", state_timestamp: "); + result.append(state_timestamp); + result.append(", description: "); + result.append(description); + result.append(", alarm_actions: "); + result.append(alarm_actions); + result.append(", ok_actions: "); + result.append(ok_actions); + result.append(", insufficient_data_actions: "); + result.append(insufficient_data_actions); + result.append(", repeat_actions: "); + result.append(repeat_actions); + result.append(", time_constraints: "); + result.append(time_constraints); + result.append(')'); + return result.toString(); + } + +} //CeilometerAlarmImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerFactoryImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerFactoryImpl.java new file mode 100644 index 0000000..6c23d9b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerFactoryImpl.java @@ -0,0 +1,215 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class CeilometerFactoryImpl extends EFactoryImpl implements CeilometerFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static CeilometerFactory init() { + try { + CeilometerFactory theCeilometerFactory = (CeilometerFactory)EPackage.Registry.INSTANCE.getEFactory(CeilometerPackage.eNS_URI); + if (theCeilometerFactory != null) { + return theCeilometerFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new CeilometerFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public CeilometerFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM: return createCeilometerThresholdAlarm(); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE: return createCeilometerThresholdAlarmRule(); + case CeilometerPackage.CEILOMETER_RESOURCE: return createCeilometerResource(); + case CeilometerPackage.CEILOMETER_METER: return createCeilometerMeter(); + case CeilometerPackage.CEILOMETER_QUERY: return createCeilometerQuery(); + case CeilometerPackage.CEILOMETER_FILTER: return createCeilometerFilter(); + case CeilometerPackage.CEILOMETER_ORDERED_BY: return createCeilometerOrderedBy(); + case CeilometerPackage.CREATE_ALARM_REQUEST: return createCreateAlarmRequest(); + case CeilometerPackage.SAMPLE_REQUEST: return createSampleRequest(); + case CeilometerPackage.CEILOMETER_SAMPLE: return createCeilometerSample(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public CeilometerThresholdAlarm createCeilometerThresholdAlarm() { + CeilometerThresholdAlarmImpl ceilometerThresholdAlarm = new CeilometerThresholdAlarmImpl(); + return ceilometerThresholdAlarm; + } + + /** + * + * + * @generated + */ + public CeilometerThresholdAlarmRule createCeilometerThresholdAlarmRule() { + CeilometerThresholdAlarmRuleImpl ceilometerThresholdAlarmRule = new CeilometerThresholdAlarmRuleImpl(); + return ceilometerThresholdAlarmRule; + } + + /** + * + * + * @generated + */ + public CeilometerResource createCeilometerResource() { + CeilometerResourceImpl ceilometerResource = new CeilometerResourceImpl(); + return ceilometerResource; + } + + /** + * + * + * @generated + */ + public CeilometerMeter createCeilometerMeter() { + CeilometerMeterImpl ceilometerMeter = new CeilometerMeterImpl(); + return ceilometerMeter; + } + + /** + * + * + * @generated + */ + public CeilometerQuery createCeilometerQuery() { + CeilometerQueryImpl ceilometerQuery = new CeilometerQueryImpl(); + return ceilometerQuery; + } + + /** + * + * + * @generated + */ + public CeilometerFilter createCeilometerFilter() { + CeilometerFilterImpl ceilometerFilter = new CeilometerFilterImpl(); + return ceilometerFilter; + } + + /** + * + * + * @generated + */ + public CeilometerOrderedBy createCeilometerOrderedBy() { + CeilometerOrderedByImpl ceilometerOrderedBy = new CeilometerOrderedByImpl(); + return ceilometerOrderedBy; + } + + /** + * + * + * @generated + */ + public CreateAlarmRequest createCreateAlarmRequest() { + CreateAlarmRequestImpl createAlarmRequest = new CreateAlarmRequestImpl(); + return createAlarmRequest; + } + + /** + * + * + * @generated + */ + public SampleRequest createSampleRequest() { + SampleRequestImpl sampleRequest = new SampleRequestImpl(); + return sampleRequest; + } + + /** + * + * + * @generated + */ + public CeilometerSample createCeilometerSample() { + CeilometerSampleImpl ceilometerSample = new CeilometerSampleImpl(); + return ceilometerSample; + } + + /** + * + * + * @generated + */ + public CeilometerPackage getCeilometerPackage() { + return (CeilometerPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static CeilometerPackage getPackage() { + return CeilometerPackage.eINSTANCE; + } + +} //CeilometerFactoryImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerFilterImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerFilterImpl.java new file mode 100644 index 0000000..e57e93e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerFilterImpl.java @@ -0,0 +1,350 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Filter'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerFilterImpl#getOperation Operation}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerFilterImpl#getValue Value}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerFilterImpl#getField Field}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerFilterImpl#getFilters Filters}
  • + *
+ *

+ * + * @generated + */ +public class CeilometerFilterImpl extends MinimalEObjectImpl.Container implements CeilometerFilter { + /** + * The default value of the '{@link #getOperation() Operation}' attribute. + * + * + * @see #getOperation() + * @generated + * @ordered + */ + protected static final String OPERATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOperation() Operation}' attribute. + * + * + * @see #getOperation() + * @generated + * @ordered + */ + protected String operation = OPERATION_EDEFAULT; + + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getField() Field}' attribute. + * + * + * @see #getField() + * @generated + * @ordered + */ + protected static final String FIELD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getField() Field}' attribute. + * + * + * @see #getField() + * @generated + * @ordered + */ + protected String field = FIELD_EDEFAULT; + + /** + * The cached value of the '{@link #getFilters() Filters}' containment reference list. + * + * + * @see #getFilters() + * @generated + * @ordered + */ + protected EList filters; + + /** + * + * + * @generated + */ + protected CeilometerFilterImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_FILTER; + } + + /** + * + * + * @generated + */ + public String getOperation() { + return operation; + } + + /** + * + * + * @generated + */ + public void setOperation(String newOperation) { + String oldOperation = operation; + operation = newOperation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_FILTER__OPERATION, oldOperation, operation)); + } + + /** + * + * + * @generated + */ + public String getValue() { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_FILTER__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + public String getField() { + return field; + } + + /** + * + * + * @generated + */ + public void setField(String newField) { + String oldField = field; + field = newField; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_FILTER__FIELD, oldField, field)); + } + + /** + * + * + * @generated + */ + public EList getFilters() { + if (filters == null) { + filters = new EObjectContainmentEList(CeilometerFilter.class, this, CeilometerPackage.CEILOMETER_FILTER__FILTERS); + } + return filters; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_FILTER__FILTERS: + return ((InternalEList)getFilters()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_FILTER__OPERATION: + return getOperation(); + case CeilometerPackage.CEILOMETER_FILTER__VALUE: + return getValue(); + case CeilometerPackage.CEILOMETER_FILTER__FIELD: + return getField(); + case CeilometerPackage.CEILOMETER_FILTER__FILTERS: + return getFilters(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_FILTER__OPERATION: + setOperation((String)newValue); + return; + case CeilometerPackage.CEILOMETER_FILTER__VALUE: + setValue((String)newValue); + return; + case CeilometerPackage.CEILOMETER_FILTER__FIELD: + setField((String)newValue); + return; + case CeilometerPackage.CEILOMETER_FILTER__FILTERS: + getFilters().clear(); + getFilters().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_FILTER__OPERATION: + setOperation(OPERATION_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_FILTER__VALUE: + setValue(VALUE_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_FILTER__FIELD: + setField(FIELD_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_FILTER__FILTERS: + getFilters().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_FILTER__OPERATION: + return OPERATION_EDEFAULT == null ? operation != null : !OPERATION_EDEFAULT.equals(operation); + case CeilometerPackage.CEILOMETER_FILTER__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + case CeilometerPackage.CEILOMETER_FILTER__FIELD: + return FIELD_EDEFAULT == null ? field != null : !FIELD_EDEFAULT.equals(field); + case CeilometerPackage.CEILOMETER_FILTER__FILTERS: + return filters != null && !filters.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (operation: "); + result.append(operation); + result.append(", value: "); + result.append(value); + result.append(", field: "); + result.append(field); + result.append(')'); + return result.toString(); + } + +} //CeilometerFilterImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerMeterImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerMeterImpl.java new file mode 100644 index 0000000..242ab27 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerMeterImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Meter'. + * + *

+ *

+ * + * @generated + */ +public class CeilometerMeterImpl extends MinimalEObjectImpl.Container implements CeilometerMeter { + /** + * + * + * @generated + */ + protected CeilometerMeterImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_METER; + } + +} //CeilometerMeterImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerOrderedByImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerOrderedByImpl.java new file mode 100644 index 0000000..fd4f9c4 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerOrderedByImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Ordered By'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerOrderedByImpl#getField Field}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerOrderedByImpl#getDirection Direction}
  • + *
+ *

+ * + * @generated + */ +public class CeilometerOrderedByImpl extends MinimalEObjectImpl.Container implements CeilometerOrderedBy { + /** + * The default value of the '{@link #getField() Field}' attribute. + * + * + * @see #getField() + * @generated + * @ordered + */ + protected static final String FIELD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getField() Field}' attribute. + * + * + * @see #getField() + * @generated + * @ordered + */ + protected String field = FIELD_EDEFAULT; + + /** + * The default value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected static final String DIRECTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected String direction = DIRECTION_EDEFAULT; + + /** + * + * + * @generated + */ + protected CeilometerOrderedByImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_ORDERED_BY; + } + + /** + * + * + * @generated + */ + public String getField() { + return field; + } + + /** + * + * + * @generated + */ + public void setField(String newField) { + String oldField = field; + field = newField; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ORDERED_BY__FIELD, oldField, field)); + } + + /** + * + * + * @generated + */ + public String getDirection() { + return direction; + } + + /** + * + * + * @generated + */ + public void setDirection(String newDirection) { + String oldDirection = direction; + direction = newDirection; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_ORDERED_BY__DIRECTION, oldDirection, direction)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_ORDERED_BY__FIELD: + return getField(); + case CeilometerPackage.CEILOMETER_ORDERED_BY__DIRECTION: + return getDirection(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_ORDERED_BY__FIELD: + setField((String)newValue); + return; + case CeilometerPackage.CEILOMETER_ORDERED_BY__DIRECTION: + setDirection((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_ORDERED_BY__FIELD: + setField(FIELD_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_ORDERED_BY__DIRECTION: + setDirection(DIRECTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_ORDERED_BY__FIELD: + return FIELD_EDEFAULT == null ? field != null : !FIELD_EDEFAULT.equals(field); + case CeilometerPackage.CEILOMETER_ORDERED_BY__DIRECTION: + return DIRECTION_EDEFAULT == null ? direction != null : !DIRECTION_EDEFAULT.equals(direction); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (field: "); + result.append(field); + result.append(", direction: "); + result.append(direction); + result.append(')'); + return result.toString(); + } + +} //CeilometerOrderedByImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerPackageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerPackageImpl.java new file mode 100644 index 0000000..99ae3c4 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerPackageImpl.java @@ -0,0 +1,1123 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerFactory; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerProject; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerRequest; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerResource; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerSample; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerService; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule; +import org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest; + +import org.openecomp.ncomp.openstack.ceilometer.SampleRequest; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class CeilometerPackageImpl extends EPackageImpl implements CeilometerPackage { + /** + * + * + * @generated + */ + private EClass ceilometerServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerProjectEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerAlarmEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerThresholdAlarmEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerThresholdAlarmRuleEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerResourceEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerMeterEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerQueryEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerFilterEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerOrderedByEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass createAlarmRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass sampleRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass ceilometerSampleEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#eNS_URI + * @see #init() + * @generated + */ + private CeilometerPackageImpl() { + super(eNS_URI, CeilometerFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link CeilometerPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CeilometerPackage init() { + if (isInited) return (CeilometerPackage)EPackage.Registry.INSTANCE.getEPackage(CeilometerPackage.eNS_URI); + + // Obtain or create and register package + CeilometerPackageImpl theCeilometerPackage = (CeilometerPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CeilometerPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CeilometerPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ComputePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCeilometerPackage.createPackageContents(); + + // Initialize created meta-data + theCeilometerPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCeilometerPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CeilometerPackage.eNS_URI, theCeilometerPackage); + return theCeilometerPackage; + } + + /** + * + * + * @generated + */ + public EClass getCeilometerService() { + return ceilometerServiceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerService_CeilometerAvailableCapabilites() { + return (EAttribute)ceilometerServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerService_CeilometerUnavailableCapabilites() { + return (EAttribute)ceilometerServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getCeilometerService__CreateAlarm__CreateAlarmRequest() { + return ceilometerServiceEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getCeilometerService__DeleteAlarm__String_String() { + return ceilometerServiceEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getCeilometerService__CreateAlarm__SampleRequest() { + return ceilometerServiceEClass.getEOperations().get(2); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerProject() { + return ceilometerProjectEClass; + } + + /** + * + * + * @generated + */ + public EReference getCeilometerProject_Alarms() { + return (EReference)ceilometerProjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerProject_Resources() { + return (EReference)ceilometerProjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerProject_Meters() { + return (EReference)ceilometerProjectEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerAlarm() { + return ceilometerAlarmEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Id() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_User_id() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Timestamp() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Enabled() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_State() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_State_timestamp() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Description() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Alarm_actions() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Ok_actions() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Insufficient_data_actions() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Repeat_actions() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Time_constraints() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerThresholdAlarm() { + return ceilometerThresholdAlarmEClass; + } + + /** + * + * + * @generated + */ + public EReference getCeilometerThresholdAlarm_Threshold_rule() { + return (EReference)ceilometerThresholdAlarmEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerThresholdAlarmRule() { + return ceilometerThresholdAlarmRuleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Meter_name() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Evaluation_periods() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Period() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Statistic() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Threshold() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Query() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Comparison_operator() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Exclude_outliers() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerResource() { + return ceilometerResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_Id() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_User_id() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_Project_id() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_First_sample_timestamp() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_Last_sample_timestamp() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerResource_Links() { + return (EReference)ceilometerResourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerResource_Metadata() { + return (EReference)ceilometerResourceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerMeter() { + return ceilometerMeterEClass; + } + + /** + * + * + * @generated + */ + public EClass getCeilometerQuery() { + return ceilometerQueryEClass; + } + + /** + * + * + * @generated + */ + public EReference getCeilometerQuery_Filter() { + return (EReference)ceilometerQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerQuery_Orderby() { + return (EReference)ceilometerQueryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerQuery_Limit() { + return (EAttribute)ceilometerQueryEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerFilter() { + return ceilometerFilterEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerFilter_Operation() { + return (EAttribute)ceilometerFilterEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerFilter_Value() { + return (EAttribute)ceilometerFilterEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerFilter_Field() { + return (EAttribute)ceilometerFilterEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerFilter_Filters() { + return (EReference)ceilometerFilterEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerOrderedBy() { + return ceilometerOrderedByEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerOrderedBy_Field() { + return (EAttribute)ceilometerOrderedByEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerOrderedBy_Direction() { + return (EAttribute)ceilometerOrderedByEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerRequest() { + return ceilometerRequestEClass; + } + + /** + * + * + * @generated + */ + public EClass getCreateAlarmRequest() { + return createAlarmRequestEClass; + } + + /** + * + * + * @generated + */ + public EClass getSampleRequest() { + return sampleRequestEClass; + } + + /** + * + * + * @generated + */ + public EReference getSampleRequest_Query() { + return (EReference)sampleRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerSample() { + return ceilometerSampleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Counter_name() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_User_id() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Resource_id() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Timestamp() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Recorded_at() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Message_id() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Source() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Counter_unit() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Counter_volume() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Project_id() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public CeilometerFactory getCeilometerFactory() { + return (CeilometerFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + ceilometerServiceEClass = createEClass(CEILOMETER_SERVICE); + createEAttribute(ceilometerServiceEClass, CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES); + createEAttribute(ceilometerServiceEClass, CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES); + createEOperation(ceilometerServiceEClass, CEILOMETER_SERVICE___CREATE_ALARM__CREATEALARMREQUEST); + createEOperation(ceilometerServiceEClass, CEILOMETER_SERVICE___DELETE_ALARM__STRING_STRING); + createEOperation(ceilometerServiceEClass, CEILOMETER_SERVICE___CREATE_ALARM__SAMPLEREQUEST); + + ceilometerProjectEClass = createEClass(CEILOMETER_PROJECT); + createEReference(ceilometerProjectEClass, CEILOMETER_PROJECT__ALARMS); + createEReference(ceilometerProjectEClass, CEILOMETER_PROJECT__RESOURCES); + createEReference(ceilometerProjectEClass, CEILOMETER_PROJECT__METERS); + + ceilometerAlarmEClass = createEClass(CEILOMETER_ALARM); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__ID); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__USER_ID); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__TIMESTAMP); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__ENABLED); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__STATE); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__STATE_TIMESTAMP); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__DESCRIPTION); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__ALARM_ACTIONS); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__OK_ACTIONS); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__REPEAT_ACTIONS); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__TIME_CONSTRAINTS); + + ceilometerThresholdAlarmEClass = createEClass(CEILOMETER_THRESHOLD_ALARM); + createEReference(ceilometerThresholdAlarmEClass, CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE); + + ceilometerThresholdAlarmRuleEClass = createEClass(CEILOMETER_THRESHOLD_ALARM_RULE); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__METER_NAME); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__EVALUATION_PERIODS); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__PERIOD); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__STATISTIC); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__THRESHOLD); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__QUERY); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__COMPARISON_OPERATOR); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__EXCLUDE_OUTLIERS); + + ceilometerResourceEClass = createEClass(CEILOMETER_RESOURCE); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__ID); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__USER_ID); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__PROJECT_ID); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__FIRST_SAMPLE_TIMESTAMP); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__LAST_SAMPLE_TIMESTAMP); + createEReference(ceilometerResourceEClass, CEILOMETER_RESOURCE__LINKS); + createEReference(ceilometerResourceEClass, CEILOMETER_RESOURCE__METADATA); + + ceilometerMeterEClass = createEClass(CEILOMETER_METER); + + ceilometerQueryEClass = createEClass(CEILOMETER_QUERY); + createEReference(ceilometerQueryEClass, CEILOMETER_QUERY__FILTER); + createEReference(ceilometerQueryEClass, CEILOMETER_QUERY__ORDERBY); + createEAttribute(ceilometerQueryEClass, CEILOMETER_QUERY__LIMIT); + + ceilometerFilterEClass = createEClass(CEILOMETER_FILTER); + createEAttribute(ceilometerFilterEClass, CEILOMETER_FILTER__OPERATION); + createEAttribute(ceilometerFilterEClass, CEILOMETER_FILTER__VALUE); + createEAttribute(ceilometerFilterEClass, CEILOMETER_FILTER__FIELD); + createEReference(ceilometerFilterEClass, CEILOMETER_FILTER__FILTERS); + + ceilometerOrderedByEClass = createEClass(CEILOMETER_ORDERED_BY); + createEAttribute(ceilometerOrderedByEClass, CEILOMETER_ORDERED_BY__FIELD); + createEAttribute(ceilometerOrderedByEClass, CEILOMETER_ORDERED_BY__DIRECTION); + + ceilometerRequestEClass = createEClass(CEILOMETER_REQUEST); + + createAlarmRequestEClass = createEClass(CREATE_ALARM_REQUEST); + + sampleRequestEClass = createEClass(SAMPLE_REQUEST); + createEReference(sampleRequestEClass, SAMPLE_REQUEST__QUERY); + + ceilometerSampleEClass = createEClass(CEILOMETER_SAMPLE); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__COUNTER_NAME); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__USER_ID); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__RESOURCE_ID); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__TIMESTAMP); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__RECORDED_AT); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__MESSAGE_ID); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__SOURCE); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__COUNTER_UNIT); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__COUNTER_VOLUME); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__PROJECT_ID); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + ComputePackage theComputePackage = (ComputePackage)EPackage.Registry.INSTANCE.getEPackage(ComputePackage.eNS_URI); + CorePackage theCorePackage_1 = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + ceilometerAlarmEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + ceilometerThresholdAlarmEClass.getESuperTypes().add(this.getCeilometerAlarm()); + ceilometerRequestEClass.getESuperTypes().add(theCorePackage_1.getOpenStackRequest()); + createAlarmRequestEClass.getESuperTypes().add(this.getCeilometerRequest()); + sampleRequestEClass.getESuperTypes().add(this.getCeilometerRequest()); + + // Initialize classes, features, and operations; add parameters + initEClass(ceilometerServiceEClass, CeilometerService.class, "CeilometerService", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerService_CeilometerAvailableCapabilites(), theEcorePackage.getEString(), "ceilometerAvailableCapabilites", null, 0, -1, CeilometerService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerService_CeilometerUnavailableCapabilites(), theEcorePackage.getEString(), "ceilometerUnavailableCapabilites", null, 0, -1, CeilometerService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + EOperation op = initEOperation(getCeilometerService__CreateAlarm__CreateAlarmRequest(), this.getCeilometerAlarm(), "createAlarm", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreateAlarmRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getCeilometerService__DeleteAlarm__String_String(), null, "deleteAlarm", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getCeilometerService__CreateAlarm__SampleRequest(), this.getCeilometerSample(), "createAlarm", 0, -1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getSampleRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(ceilometerProjectEClass, CeilometerProject.class, "CeilometerProject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCeilometerProject_Alarms(), this.getCeilometerAlarm(), null, "alarms", null, 0, -1, CeilometerProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerProject_Resources(), this.getCeilometerResource(), null, "resources", null, 0, -1, CeilometerProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerProject_Meters(), this.getCeilometerMeter(), null, "meters", null, 0, -1, CeilometerProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerAlarmEClass, CeilometerAlarm.class, "CeilometerAlarm", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerAlarm_Id(), theEcorePackage.getEString(), "id", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Timestamp(), theEcorePackage.getEDate(), "timestamp", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Enabled(), theEcorePackage.getEBooleanObject(), "enabled", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_State(), theEcorePackage.getEString(), "state", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_State_timestamp(), theEcorePackage.getEDate(), "state_timestamp", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Description(), theEcorePackage.getEString(), "description", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Alarm_actions(), theEcorePackage.getEString(), "alarm_actions", null, 0, -1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Ok_actions(), theEcorePackage.getEString(), "ok_actions", null, 0, -1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Insufficient_data_actions(), theEcorePackage.getEString(), "insufficient_data_actions", null, 0, -1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Repeat_actions(), theEcorePackage.getEBooleanObject(), "repeat_actions", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Time_constraints(), theEcorePackage.getEString(), "time_constraints", null, 0, -1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerThresholdAlarmEClass, CeilometerThresholdAlarm.class, "CeilometerThresholdAlarm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCeilometerThresholdAlarm_Threshold_rule(), this.getCeilometerThresholdAlarmRule(), null, "threshold_rule", null, 0, 1, CeilometerThresholdAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerThresholdAlarmRuleEClass, CeilometerThresholdAlarmRule.class, "CeilometerThresholdAlarmRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerThresholdAlarmRule_Meter_name(), theEcorePackage.getEString(), "meter_name", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Evaluation_periods(), theEcorePackage.getELongObject(), "evaluation_periods", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Period(), theEcorePackage.getELongObject(), "period", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Statistic(), theEcorePackage.getEString(), "statistic", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Threshold(), theEcorePackage.getEDouble(), "threshold", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Query(), theEcorePackage.getEString(), "query", null, 0, -1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Comparison_operator(), theEcorePackage.getEString(), "comparison_operator", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Exclude_outliers(), theEcorePackage.getEBooleanObject(), "exclude_outliers", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerResourceEClass, CeilometerResource.class, "CeilometerResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerResource_Id(), theEcorePackage.getEString(), "id", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerResource_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerResource_Project_id(), theEcorePackage.getEString(), "project_id", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerResource_First_sample_timestamp(), theEcorePackage.getEDate(), "first_sample_timestamp", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerResource_Last_sample_timestamp(), theEcorePackage.getEDate(), "last_sample_timestamp", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerResource_Links(), theComputePackage.getLink(), null, "links", null, 0, -1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerResource_Metadata(), theComputePackage.getMetadata(), null, "metadata", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerMeterEClass, CeilometerMeter.class, "CeilometerMeter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(ceilometerQueryEClass, CeilometerQuery.class, "CeilometerQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCeilometerQuery_Filter(), this.getCeilometerFilter(), null, "filter", null, 0, -1, CeilometerQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerQuery_Orderby(), this.getCeilometerOrderedBy(), null, "orderby", null, 0, -1, CeilometerQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerQuery_Limit(), theEcorePackage.getELongObject(), "limit", null, 0, 1, CeilometerQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerFilterEClass, CeilometerFilter.class, "CeilometerFilter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerFilter_Operation(), theEcorePackage.getEString(), "operation", null, 0, 1, CeilometerFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerFilter_Value(), theEcorePackage.getEString(), "value", null, 0, 1, CeilometerFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerFilter_Field(), theEcorePackage.getEString(), "field", null, 0, 1, CeilometerFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerFilter_Filters(), this.getCeilometerFilter(), null, "filters", null, 0, -1, CeilometerFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerOrderedByEClass, CeilometerOrderedBy.class, "CeilometerOrderedBy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerOrderedBy_Field(), theEcorePackage.getEString(), "field", null, 0, 1, CeilometerOrderedBy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerOrderedBy_Direction(), theEcorePackage.getEString(), "direction", null, 0, 1, CeilometerOrderedBy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerRequestEClass, CeilometerRequest.class, "CeilometerRequest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(createAlarmRequestEClass, CreateAlarmRequest.class, "CreateAlarmRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(sampleRequestEClass, SampleRequest.class, "SampleRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSampleRequest_Query(), this.getCeilometerQuery(), null, "query", null, 0, 1, SampleRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerSampleEClass, CeilometerSample.class, "CeilometerSample", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerSample_Counter_name(), theEcorePackage.getEString(), "counter_name", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Resource_id(), theEcorePackage.getEString(), "resource_id", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Timestamp(), theEcorePackage.getEDate(), "timestamp", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Recorded_at(), theEcorePackage.getEDate(), "recorded_at", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Message_id(), theEcorePackage.getEString(), "message_id", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Source(), theEcorePackage.getEString(), "source", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Counter_unit(), theEcorePackage.getEString(), "counter_unit", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Counter_volume(), theEcorePackage.getEDouble(), "counter_volume", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Project_id(), theEcorePackage.getEString(), "project_id", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "openstack", "http://openecomp.org/sirius/openstack" + }); + } + +} //CeilometerPackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerProjectImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerProjectImpl.java new file mode 100644 index 0000000..5c1c6c0 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerProjectImpl.java @@ -0,0 +1,246 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerProject; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerResource; +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Project'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerProjectImpl#getAlarms Alarms}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerProjectImpl#getResources Resources}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerProjectImpl#getMeters Meters}
  • + *
+ *

+ * + * @generated + */ +public abstract class CeilometerProjectImpl extends MinimalEObjectImpl.Container implements CeilometerProject { + /** + * The cached value of the '{@link #getAlarms() Alarms}' containment reference list. + * + * + * @see #getAlarms() + * @generated + * @ordered + */ + protected EList alarms; + + /** + * The cached value of the '{@link #getResources() Resources}' containment reference list. + * + * + * @see #getResources() + * @generated + * @ordered + */ + protected EList resources; + /** + * The cached value of the '{@link #getMeters() Meters}' containment reference list. + * + * + * @see #getMeters() + * @generated + * @ordered + */ + protected EList meters; + + /** + * + * + * @generated + */ + protected CeilometerProjectImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_PROJECT; + } + + /** + * + * + * @generated + */ + public EList getAlarms() { + if (alarms == null) { + alarms = new EObjectContainmentEList(CeilometerAlarm.class, this, CeilometerPackage.CEILOMETER_PROJECT__ALARMS); + } + return alarms; + } + + /** + * + * + * @generated + */ + public EList getResources() { + if (resources == null) { + resources = new EObjectContainmentEList(CeilometerResource.class, this, CeilometerPackage.CEILOMETER_PROJECT__RESOURCES); + } + return resources; + } + + /** + * + * + * @generated + */ + public EList getMeters() { + if (meters == null) { + meters = new EObjectContainmentEList(CeilometerMeter.class, this, CeilometerPackage.CEILOMETER_PROJECT__METERS); + } + return meters; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_PROJECT__ALARMS: + return ((InternalEList)getAlarms()).basicRemove(otherEnd, msgs); + case CeilometerPackage.CEILOMETER_PROJECT__RESOURCES: + return ((InternalEList)getResources()).basicRemove(otherEnd, msgs); + case CeilometerPackage.CEILOMETER_PROJECT__METERS: + return ((InternalEList)getMeters()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_PROJECT__ALARMS: + return getAlarms(); + case CeilometerPackage.CEILOMETER_PROJECT__RESOURCES: + return getResources(); + case CeilometerPackage.CEILOMETER_PROJECT__METERS: + return getMeters(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_PROJECT__ALARMS: + getAlarms().clear(); + getAlarms().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_PROJECT__RESOURCES: + getResources().clear(); + getResources().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_PROJECT__METERS: + getMeters().clear(); + getMeters().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_PROJECT__ALARMS: + getAlarms().clear(); + return; + case CeilometerPackage.CEILOMETER_PROJECT__RESOURCES: + getResources().clear(); + return; + case CeilometerPackage.CEILOMETER_PROJECT__METERS: + getMeters().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_PROJECT__ALARMS: + return alarms != null && !alarms.isEmpty(); + case CeilometerPackage.CEILOMETER_PROJECT__RESOURCES: + return resources != null && !resources.isEmpty(); + case CeilometerPackage.CEILOMETER_PROJECT__METERS: + return meters != null && !meters.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //CeilometerProjectImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerQueryImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerQueryImpl.java new file mode 100644 index 0000000..cd26d2a --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerQueryImpl.java @@ -0,0 +1,280 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Query'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerQueryImpl#getFilter Filter}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerQueryImpl#getOrderby Orderby}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerQueryImpl#getLimit Limit}
  • + *
+ *

+ * + * @generated + */ +public class CeilometerQueryImpl extends MinimalEObjectImpl.Container implements CeilometerQuery { + /** + * The cached value of the '{@link #getFilter() Filter}' containment reference list. + * + * + * @see #getFilter() + * @generated + * @ordered + */ + protected EList filter; + + /** + * The cached value of the '{@link #getOrderby() Orderby}' containment reference list. + * + * + * @see #getOrderby() + * @generated + * @ordered + */ + protected EList orderby; + + /** + * The default value of the '{@link #getLimit() Limit}' attribute. + * + * + * @see #getLimit() + * @generated + * @ordered + */ + protected static final Long LIMIT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLimit() Limit}' attribute. + * + * + * @see #getLimit() + * @generated + * @ordered + */ + protected Long limit = LIMIT_EDEFAULT; + + /** + * + * + * @generated + */ + protected CeilometerQueryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_QUERY; + } + + /** + * + * + * @generated + */ + public EList getFilter() { + if (filter == null) { + filter = new EObjectContainmentEList(CeilometerFilter.class, this, CeilometerPackage.CEILOMETER_QUERY__FILTER); + } + return filter; + } + + /** + * + * + * @generated + */ + public EList getOrderby() { + if (orderby == null) { + orderby = new EObjectContainmentEList(CeilometerOrderedBy.class, this, CeilometerPackage.CEILOMETER_QUERY__ORDERBY); + } + return orderby; + } + + /** + * + * + * @generated + */ + public Long getLimit() { + return limit; + } + + /** + * + * + * @generated + */ + public void setLimit(Long newLimit) { + Long oldLimit = limit; + limit = newLimit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_QUERY__LIMIT, oldLimit, limit)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_QUERY__FILTER: + return ((InternalEList)getFilter()).basicRemove(otherEnd, msgs); + case CeilometerPackage.CEILOMETER_QUERY__ORDERBY: + return ((InternalEList)getOrderby()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_QUERY__FILTER: + return getFilter(); + case CeilometerPackage.CEILOMETER_QUERY__ORDERBY: + return getOrderby(); + case CeilometerPackage.CEILOMETER_QUERY__LIMIT: + return getLimit(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_QUERY__FILTER: + getFilter().clear(); + getFilter().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_QUERY__ORDERBY: + getOrderby().clear(); + getOrderby().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_QUERY__LIMIT: + setLimit((Long)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_QUERY__FILTER: + getFilter().clear(); + return; + case CeilometerPackage.CEILOMETER_QUERY__ORDERBY: + getOrderby().clear(); + return; + case CeilometerPackage.CEILOMETER_QUERY__LIMIT: + setLimit(LIMIT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_QUERY__FILTER: + return filter != null && !filter.isEmpty(); + case CeilometerPackage.CEILOMETER_QUERY__ORDERBY: + return orderby != null && !orderby.isEmpty(); + case CeilometerPackage.CEILOMETER_QUERY__LIMIT: + return LIMIT_EDEFAULT == null ? limit != null : !LIMIT_EDEFAULT.equals(limit); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (limit: "); + result.append(limit); + result.append(')'); + return result.toString(); + } + +} //CeilometerQueryImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerRequestImpl.java new file mode 100644 index 0000000..4dd5bdc --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerRequestImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerRequest; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Request'. + * + *

+ *

+ * + * @generated + */ +public abstract class CeilometerRequestImpl extends OpenStackRequestImpl implements CeilometerRequest { + /** + * + * + * @generated + */ + protected CeilometerRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_REQUEST; + } + +} //CeilometerRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerResourceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerResourceImpl.java new file mode 100644 index 0000000..044097e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerResourceImpl.java @@ -0,0 +1,513 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerResource; + +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import java.util.Collection; +import java.util.Date; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Resource'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl#getProject_id Project id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl#getFirst_sample_timestamp First sample timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl#getLast_sample_timestamp Last sample timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl#getLinks Links}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerResourceImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class CeilometerResourceImpl extends MinimalEObjectImpl.Container implements CeilometerResource { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + /** + * The default value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected static final String USER_ID_EDEFAULT = null; + /** + * The cached value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected String user_id = USER_ID_EDEFAULT; + /** + * The default value of the '{@link #getProject_id() Project id}' attribute. + * + * + * @see #getProject_id() + * @generated + * @ordered + */ + protected static final String PROJECT_ID_EDEFAULT = null; + /** + * The cached value of the '{@link #getProject_id() Project id}' attribute. + * + * + * @see #getProject_id() + * @generated + * @ordered + */ + protected String project_id = PROJECT_ID_EDEFAULT; + /** + * The default value of the '{@link #getFirst_sample_timestamp() First sample timestamp}' attribute. + * + * + * @see #getFirst_sample_timestamp() + * @generated + * @ordered + */ + protected static final Date FIRST_SAMPLE_TIMESTAMP_EDEFAULT = null; + /** + * The cached value of the '{@link #getFirst_sample_timestamp() First sample timestamp}' attribute. + * + * + * @see #getFirst_sample_timestamp() + * @generated + * @ordered + */ + protected Date first_sample_timestamp = FIRST_SAMPLE_TIMESTAMP_EDEFAULT; + /** + * The default value of the '{@link #getLast_sample_timestamp() Last sample timestamp}' attribute. + * + * + * @see #getLast_sample_timestamp() + * @generated + * @ordered + */ + protected static final Date LAST_SAMPLE_TIMESTAMP_EDEFAULT = null; + /** + * The cached value of the '{@link #getLast_sample_timestamp() Last sample timestamp}' attribute. + * + * + * @see #getLast_sample_timestamp() + * @generated + * @ordered + */ + protected Date last_sample_timestamp = LAST_SAMPLE_TIMESTAMP_EDEFAULT; + /** + * The cached value of the '{@link #getLinks() Links}' containment reference list. + * + * + * @see #getLinks() + * @generated + * @ordered + */ + protected EList links; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' containment reference. + * + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected Metadata metadata; + + /** + * + * + * @generated + */ + protected CeilometerResourceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_RESOURCE; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_RESOURCE__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getUser_id() { + return user_id; + } + + /** + * + * + * @generated + */ + public void setUser_id(String newUser_id) { + String oldUser_id = user_id; + user_id = newUser_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_RESOURCE__USER_ID, oldUser_id, user_id)); + } + + /** + * + * + * @generated + */ + public String getProject_id() { + return project_id; + } + + /** + * + * + * @generated + */ + public void setProject_id(String newProject_id) { + String oldProject_id = project_id; + project_id = newProject_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_RESOURCE__PROJECT_ID, oldProject_id, project_id)); + } + + /** + * + * + * @generated + */ + public Date getFirst_sample_timestamp() { + return first_sample_timestamp; + } + + /** + * + * + * @generated + */ + public void setFirst_sample_timestamp(Date newFirst_sample_timestamp) { + Date oldFirst_sample_timestamp = first_sample_timestamp; + first_sample_timestamp = newFirst_sample_timestamp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_RESOURCE__FIRST_SAMPLE_TIMESTAMP, oldFirst_sample_timestamp, first_sample_timestamp)); + } + + /** + * + * + * @generated + */ + public Date getLast_sample_timestamp() { + return last_sample_timestamp; + } + + /** + * + * + * @generated + */ + public void setLast_sample_timestamp(Date newLast_sample_timestamp) { + Date oldLast_sample_timestamp = last_sample_timestamp; + last_sample_timestamp = newLast_sample_timestamp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_RESOURCE__LAST_SAMPLE_TIMESTAMP, oldLast_sample_timestamp, last_sample_timestamp)); + } + + /** + * + * + * @generated + */ + public EList getLinks() { + if (links == null) { + links = new EObjectContainmentEList(Link.class, this, CeilometerPackage.CEILOMETER_RESOURCE__LINKS); + } + return links; + } + + /** + * + * + * @generated + */ + public Metadata getMetadata() { + return metadata; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetMetadata(Metadata newMetadata, NotificationChain msgs) { + Metadata oldMetadata = metadata; + metadata = newMetadata; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_RESOURCE__METADATA, oldMetadata, newMetadata); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setMetadata(Metadata newMetadata) { + if (newMetadata != metadata) { + NotificationChain msgs = null; + if (metadata != null) + msgs = ((InternalEObject)metadata).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CeilometerPackage.CEILOMETER_RESOURCE__METADATA, null, msgs); + if (newMetadata != null) + msgs = ((InternalEObject)newMetadata).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CeilometerPackage.CEILOMETER_RESOURCE__METADATA, null, msgs); + msgs = basicSetMetadata(newMetadata, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_RESOURCE__METADATA, newMetadata, newMetadata)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_RESOURCE__LINKS: + return ((InternalEList)getLinks()).basicRemove(otherEnd, msgs); + case CeilometerPackage.CEILOMETER_RESOURCE__METADATA: + return basicSetMetadata(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_RESOURCE__ID: + return getId(); + case CeilometerPackage.CEILOMETER_RESOURCE__USER_ID: + return getUser_id(); + case CeilometerPackage.CEILOMETER_RESOURCE__PROJECT_ID: + return getProject_id(); + case CeilometerPackage.CEILOMETER_RESOURCE__FIRST_SAMPLE_TIMESTAMP: + return getFirst_sample_timestamp(); + case CeilometerPackage.CEILOMETER_RESOURCE__LAST_SAMPLE_TIMESTAMP: + return getLast_sample_timestamp(); + case CeilometerPackage.CEILOMETER_RESOURCE__LINKS: + return getLinks(); + case CeilometerPackage.CEILOMETER_RESOURCE__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_RESOURCE__ID: + setId((String)newValue); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__USER_ID: + setUser_id((String)newValue); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__PROJECT_ID: + setProject_id((String)newValue); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__FIRST_SAMPLE_TIMESTAMP: + setFirst_sample_timestamp((Date)newValue); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__LAST_SAMPLE_TIMESTAMP: + setLast_sample_timestamp((Date)newValue); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__LINKS: + getLinks().clear(); + getLinks().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__METADATA: + setMetadata((Metadata)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_RESOURCE__ID: + setId(ID_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__USER_ID: + setUser_id(USER_ID_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__PROJECT_ID: + setProject_id(PROJECT_ID_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__FIRST_SAMPLE_TIMESTAMP: + setFirst_sample_timestamp(FIRST_SAMPLE_TIMESTAMP_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__LAST_SAMPLE_TIMESTAMP: + setLast_sample_timestamp(LAST_SAMPLE_TIMESTAMP_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__LINKS: + getLinks().clear(); + return; + case CeilometerPackage.CEILOMETER_RESOURCE__METADATA: + setMetadata((Metadata)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_RESOURCE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case CeilometerPackage.CEILOMETER_RESOURCE__USER_ID: + return USER_ID_EDEFAULT == null ? user_id != null : !USER_ID_EDEFAULT.equals(user_id); + case CeilometerPackage.CEILOMETER_RESOURCE__PROJECT_ID: + return PROJECT_ID_EDEFAULT == null ? project_id != null : !PROJECT_ID_EDEFAULT.equals(project_id); + case CeilometerPackage.CEILOMETER_RESOURCE__FIRST_SAMPLE_TIMESTAMP: + return FIRST_SAMPLE_TIMESTAMP_EDEFAULT == null ? first_sample_timestamp != null : !FIRST_SAMPLE_TIMESTAMP_EDEFAULT.equals(first_sample_timestamp); + case CeilometerPackage.CEILOMETER_RESOURCE__LAST_SAMPLE_TIMESTAMP: + return LAST_SAMPLE_TIMESTAMP_EDEFAULT == null ? last_sample_timestamp != null : !LAST_SAMPLE_TIMESTAMP_EDEFAULT.equals(last_sample_timestamp); + case CeilometerPackage.CEILOMETER_RESOURCE__LINKS: + return links != null && !links.isEmpty(); + case CeilometerPackage.CEILOMETER_RESOURCE__METADATA: + return metadata != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", user_id: "); + result.append(user_id); + result.append(", project_id: "); + result.append(project_id); + result.append(", first_sample_timestamp: "); + result.append(first_sample_timestamp); + result.append(", last_sample_timestamp: "); + result.append(last_sample_timestamp); + result.append(')'); + return result.toString(); + } + +} //CeilometerResourceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerSampleImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerSampleImpl.java new file mode 100644 index 0000000..d78ae86 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerSampleImpl.java @@ -0,0 +1,672 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerSample; + +import java.util.Date; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Sample'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getCounter_name Counter name}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getResource_id Resource id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getTimestamp Timestamp}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getRecorded_at Recorded at}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getMessage_id Message id}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getSource Source}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getCounter_unit Counter unit}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getCounter_volume Counter volume}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerSampleImpl#getProject_id Project id}
  • + *
+ *

+ * + * @generated + */ +public class CeilometerSampleImpl extends MinimalEObjectImpl.Container implements CeilometerSample { + /** + * The default value of the '{@link #getCounter_name() Counter name}' attribute. + * + * + * @see #getCounter_name() + * @generated + * @ordered + */ + protected static final String COUNTER_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCounter_name() Counter name}' attribute. + * + * + * @see #getCounter_name() + * @generated + * @ordered + */ + protected String counter_name = COUNTER_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected static final String USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected String user_id = USER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getResource_id() Resource id}' attribute. + * + * + * @see #getResource_id() + * @generated + * @ordered + */ + protected static final String RESOURCE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getResource_id() Resource id}' attribute. + * + * + * @see #getResource_id() + * @generated + * @ordered + */ + protected String resource_id = RESOURCE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getTimestamp() Timestamp}' attribute. + * + * + * @see #getTimestamp() + * @generated + * @ordered + */ + protected static final Date TIMESTAMP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTimestamp() Timestamp}' attribute. + * + * + * @see #getTimestamp() + * @generated + * @ordered + */ + protected Date timestamp = TIMESTAMP_EDEFAULT; + + /** + * The default value of the '{@link #getRecorded_at() Recorded at}' attribute. + * + * + * @see #getRecorded_at() + * @generated + * @ordered + */ + protected static final Date RECORDED_AT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRecorded_at() Recorded at}' attribute. + * + * + * @see #getRecorded_at() + * @generated + * @ordered + */ + protected Date recorded_at = RECORDED_AT_EDEFAULT; + + /** + * The default value of the '{@link #getMessage_id() Message id}' attribute. + * + * + * @see #getMessage_id() + * @generated + * @ordered + */ + protected static final String MESSAGE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMessage_id() Message id}' attribute. + * + * + * @see #getMessage_id() + * @generated + * @ordered + */ + protected String message_id = MESSAGE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getSource() Source}' attribute. + * + * + * @see #getSource() + * @generated + * @ordered + */ + protected static final String SOURCE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSource() Source}' attribute. + * + * + * @see #getSource() + * @generated + * @ordered + */ + protected String source = SOURCE_EDEFAULT; + + /** + * The default value of the '{@link #getCounter_unit() Counter unit}' attribute. + * + * + * @see #getCounter_unit() + * @generated + * @ordered + */ + protected static final String COUNTER_UNIT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCounter_unit() Counter unit}' attribute. + * + * + * @see #getCounter_unit() + * @generated + * @ordered + */ + protected String counter_unit = COUNTER_UNIT_EDEFAULT; + + /** + * The default value of the '{@link #getCounter_volume() Counter volume}' attribute. + * + * + * @see #getCounter_volume() + * @generated + * @ordered + */ + protected static final double COUNTER_VOLUME_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getCounter_volume() Counter volume}' attribute. + * + * + * @see #getCounter_volume() + * @generated + * @ordered + */ + protected double counter_volume = COUNTER_VOLUME_EDEFAULT; + + /** + * The default value of the '{@link #getProject_id() Project id}' attribute. + * + * + * @see #getProject_id() + * @generated + * @ordered + */ + protected static final String PROJECT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProject_id() Project id}' attribute. + * + * + * @see #getProject_id() + * @generated + * @ordered + */ + protected String project_id = PROJECT_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected CeilometerSampleImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_SAMPLE; + } + + /** + * + * + * @generated + */ + public String getCounter_name() { + return counter_name; + } + + /** + * + * + * @generated + */ + public void setCounter_name(String newCounter_name) { + String oldCounter_name = counter_name; + counter_name = newCounter_name; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_NAME, oldCounter_name, counter_name)); + } + + /** + * + * + * @generated + */ + public String getUser_id() { + return user_id; + } + + /** + * + * + * @generated + */ + public void setUser_id(String newUser_id) { + String oldUser_id = user_id; + user_id = newUser_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__USER_ID, oldUser_id, user_id)); + } + + /** + * + * + * @generated + */ + public String getResource_id() { + return resource_id; + } + + /** + * + * + * @generated + */ + public void setResource_id(String newResource_id) { + String oldResource_id = resource_id; + resource_id = newResource_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__RESOURCE_ID, oldResource_id, resource_id)); + } + + /** + * + * + * @generated + */ + public Date getTimestamp() { + return timestamp; + } + + /** + * + * + * @generated + */ + public void setTimestamp(Date newTimestamp) { + Date oldTimestamp = timestamp; + timestamp = newTimestamp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__TIMESTAMP, oldTimestamp, timestamp)); + } + + /** + * + * + * @generated + */ + public Date getRecorded_at() { + return recorded_at; + } + + /** + * + * + * @generated + */ + public void setRecorded_at(Date newRecorded_at) { + Date oldRecorded_at = recorded_at; + recorded_at = newRecorded_at; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__RECORDED_AT, oldRecorded_at, recorded_at)); + } + + /** + * + * + * @generated + */ + public String getMessage_id() { + return message_id; + } + + /** + * + * + * @generated + */ + public void setMessage_id(String newMessage_id) { + String oldMessage_id = message_id; + message_id = newMessage_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__MESSAGE_ID, oldMessage_id, message_id)); + } + + /** + * + * + * @generated + */ + public String getSource() { + return source; + } + + /** + * + * + * @generated + */ + public void setSource(String newSource) { + String oldSource = source; + source = newSource; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__SOURCE, oldSource, source)); + } + + /** + * + * + * @generated + */ + public String getCounter_unit() { + return counter_unit; + } + + /** + * + * + * @generated + */ + public void setCounter_unit(String newCounter_unit) { + String oldCounter_unit = counter_unit; + counter_unit = newCounter_unit; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_UNIT, oldCounter_unit, counter_unit)); + } + + /** + * + * + * @generated + */ + public double getCounter_volume() { + return counter_volume; + } + + /** + * + * + * @generated + */ + public void setCounter_volume(double newCounter_volume) { + double oldCounter_volume = counter_volume; + counter_volume = newCounter_volume; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_VOLUME, oldCounter_volume, counter_volume)); + } + + /** + * + * + * @generated + */ + public String getProject_id() { + return project_id; + } + + /** + * + * + * @generated + */ + public void setProject_id(String newProject_id) { + String oldProject_id = project_id; + project_id = newProject_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_SAMPLE__PROJECT_ID, oldProject_id, project_id)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_NAME: + return getCounter_name(); + case CeilometerPackage.CEILOMETER_SAMPLE__USER_ID: + return getUser_id(); + case CeilometerPackage.CEILOMETER_SAMPLE__RESOURCE_ID: + return getResource_id(); + case CeilometerPackage.CEILOMETER_SAMPLE__TIMESTAMP: + return getTimestamp(); + case CeilometerPackage.CEILOMETER_SAMPLE__RECORDED_AT: + return getRecorded_at(); + case CeilometerPackage.CEILOMETER_SAMPLE__MESSAGE_ID: + return getMessage_id(); + case CeilometerPackage.CEILOMETER_SAMPLE__SOURCE: + return getSource(); + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_UNIT: + return getCounter_unit(); + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_VOLUME: + return getCounter_volume(); + case CeilometerPackage.CEILOMETER_SAMPLE__PROJECT_ID: + return getProject_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_NAME: + setCounter_name((String)newValue); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__USER_ID: + setUser_id((String)newValue); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__RESOURCE_ID: + setResource_id((String)newValue); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__TIMESTAMP: + setTimestamp((Date)newValue); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__RECORDED_AT: + setRecorded_at((Date)newValue); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__MESSAGE_ID: + setMessage_id((String)newValue); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__SOURCE: + setSource((String)newValue); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_UNIT: + setCounter_unit((String)newValue); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_VOLUME: + setCounter_volume((Double)newValue); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__PROJECT_ID: + setProject_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_NAME: + setCounter_name(COUNTER_NAME_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__USER_ID: + setUser_id(USER_ID_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__RESOURCE_ID: + setResource_id(RESOURCE_ID_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__TIMESTAMP: + setTimestamp(TIMESTAMP_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__RECORDED_AT: + setRecorded_at(RECORDED_AT_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__MESSAGE_ID: + setMessage_id(MESSAGE_ID_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__SOURCE: + setSource(SOURCE_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_UNIT: + setCounter_unit(COUNTER_UNIT_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_VOLUME: + setCounter_volume(COUNTER_VOLUME_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_SAMPLE__PROJECT_ID: + setProject_id(PROJECT_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_NAME: + return COUNTER_NAME_EDEFAULT == null ? counter_name != null : !COUNTER_NAME_EDEFAULT.equals(counter_name); + case CeilometerPackage.CEILOMETER_SAMPLE__USER_ID: + return USER_ID_EDEFAULT == null ? user_id != null : !USER_ID_EDEFAULT.equals(user_id); + case CeilometerPackage.CEILOMETER_SAMPLE__RESOURCE_ID: + return RESOURCE_ID_EDEFAULT == null ? resource_id != null : !RESOURCE_ID_EDEFAULT.equals(resource_id); + case CeilometerPackage.CEILOMETER_SAMPLE__TIMESTAMP: + return TIMESTAMP_EDEFAULT == null ? timestamp != null : !TIMESTAMP_EDEFAULT.equals(timestamp); + case CeilometerPackage.CEILOMETER_SAMPLE__RECORDED_AT: + return RECORDED_AT_EDEFAULT == null ? recorded_at != null : !RECORDED_AT_EDEFAULT.equals(recorded_at); + case CeilometerPackage.CEILOMETER_SAMPLE__MESSAGE_ID: + return MESSAGE_ID_EDEFAULT == null ? message_id != null : !MESSAGE_ID_EDEFAULT.equals(message_id); + case CeilometerPackage.CEILOMETER_SAMPLE__SOURCE: + return SOURCE_EDEFAULT == null ? source != null : !SOURCE_EDEFAULT.equals(source); + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_UNIT: + return COUNTER_UNIT_EDEFAULT == null ? counter_unit != null : !COUNTER_UNIT_EDEFAULT.equals(counter_unit); + case CeilometerPackage.CEILOMETER_SAMPLE__COUNTER_VOLUME: + return counter_volume != COUNTER_VOLUME_EDEFAULT; + case CeilometerPackage.CEILOMETER_SAMPLE__PROJECT_ID: + return PROJECT_ID_EDEFAULT == null ? project_id != null : !PROJECT_ID_EDEFAULT.equals(project_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (counter_name: "); + result.append(counter_name); + result.append(", user_id: "); + result.append(user_id); + result.append(", resource_id: "); + result.append(resource_id); + result.append(", timestamp: "); + result.append(timestamp); + result.append(", recorded_at: "); + result.append(recorded_at); + result.append(", message_id: "); + result.append(message_id); + result.append(", source: "); + result.append(source); + result.append(", counter_unit: "); + result.append(counter_unit); + result.append(", counter_volume: "); + result.append(counter_volume); + result.append(", project_id: "); + result.append(project_id); + result.append(')'); + return result.toString(); + } + +} //CeilometerSampleImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerServiceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerServiceImpl.java new file mode 100644 index 0000000..2bbd7bc --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerServiceImpl.java @@ -0,0 +1,256 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerSample; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerService; +import org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest; +import org.openecomp.ncomp.openstack.ceilometer.SampleRequest; +import java.lang.reflect.InvocationTargetException; +import java.util.Collection; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Service'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerServiceImpl#getCeilometerAvailableCapabilites Ceilometer Available Capabilites}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerServiceImpl#getCeilometerUnavailableCapabilites Ceilometer Unavailable Capabilites}
  • + *
+ *

+ * + * @generated + */ +public abstract class CeilometerServiceImpl extends MinimalEObjectImpl.Container implements CeilometerService { + /** + * The cached value of the '{@link #getCeilometerAvailableCapabilites() Ceilometer Available Capabilites}' attribute list. + * + * + * @see #getCeilometerAvailableCapabilites() + * @generated + * @ordered + */ + protected EList ceilometerAvailableCapabilites; + /** + * The cached value of the '{@link #getCeilometerUnavailableCapabilites() Ceilometer Unavailable Capabilites}' attribute list. + * + * + * @see #getCeilometerUnavailableCapabilites() + * @generated + * @ordered + */ + protected EList ceilometerUnavailableCapabilites; + /** + * + * + * @generated + */ + protected CeilometerServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_SERVICE; + } + + /** + * + * + * @generated + */ + public EList getCeilometerAvailableCapabilites() { + if (ceilometerAvailableCapabilites == null) { + ceilometerAvailableCapabilites = new EDataTypeEList(String.class, this, CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES); + } + return ceilometerAvailableCapabilites; + } + + /** + * + * + * @generated + */ + public EList getCeilometerUnavailableCapabilites() { + if (ceilometerUnavailableCapabilites == null) { + ceilometerUnavailableCapabilites = new EDataTypeEList(String.class, this, CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES); + } + return ceilometerUnavailableCapabilites; + } + + /** + * + * + * @generated + */ + public CeilometerAlarm createAlarm(CreateAlarmRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteAlarm(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public EList createAlarm(SampleRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES: + return getCeilometerAvailableCapabilites(); + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES: + return getCeilometerUnavailableCapabilites(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES: + getCeilometerAvailableCapabilites().clear(); + getCeilometerAvailableCapabilites().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES: + getCeilometerUnavailableCapabilites().clear(); + getCeilometerUnavailableCapabilites().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES: + getCeilometerAvailableCapabilites().clear(); + return; + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES: + getCeilometerUnavailableCapabilites().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES: + return ceilometerAvailableCapabilites != null && !ceilometerAvailableCapabilites.isEmpty(); + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES: + return ceilometerUnavailableCapabilites != null && !ceilometerUnavailableCapabilites.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case CeilometerPackage.CEILOMETER_SERVICE___CREATE_ALARM__CREATEALARMREQUEST: + return createAlarm((CreateAlarmRequest)arguments.get(0)); + case CeilometerPackage.CEILOMETER_SERVICE___DELETE_ALARM__STRING_STRING: + deleteAlarm((String)arguments.get(0), (String)arguments.get(1)); + return null; + case CeilometerPackage.CEILOMETER_SERVICE___CREATE_ALARM__SAMPLEREQUEST: + return createAlarm((SampleRequest)arguments.get(0)); + } + return super.eInvoke(operationID, arguments); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (ceilometerAvailableCapabilites: "); + result.append(ceilometerAvailableCapabilites); + result.append(", ceilometerUnavailableCapabilites: "); + result.append(ceilometerUnavailableCapabilites); + result.append(')'); + return result.toString(); + } + +} //CeilometerServiceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerThresholdAlarmImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerThresholdAlarmImpl.java new file mode 100644 index 0000000..76b8b78 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerThresholdAlarmImpl.java @@ -0,0 +1,194 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Threshold Alarm'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmImpl#getThreshold_rule Threshold rule}
  • + *
+ *

+ * + * @generated + */ +public class CeilometerThresholdAlarmImpl extends CeilometerAlarmImpl implements CeilometerThresholdAlarm { + /** + * The cached value of the '{@link #getThreshold_rule() Threshold rule}' containment reference. + * + * + * @see #getThreshold_rule() + * @generated + * @ordered + */ + protected CeilometerThresholdAlarmRule threshold_rule; + + /** + * + * + * @generated + */ + protected CeilometerThresholdAlarmImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_THRESHOLD_ALARM; + } + + /** + * + * + * @generated + */ + public CeilometerThresholdAlarmRule getThreshold_rule() { + return threshold_rule; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetThreshold_rule(CeilometerThresholdAlarmRule newThreshold_rule, NotificationChain msgs) { + CeilometerThresholdAlarmRule oldThreshold_rule = threshold_rule; + threshold_rule = newThreshold_rule; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE, oldThreshold_rule, newThreshold_rule); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setThreshold_rule(CeilometerThresholdAlarmRule newThreshold_rule) { + if (newThreshold_rule != threshold_rule) { + NotificationChain msgs = null; + if (threshold_rule != null) + msgs = ((InternalEObject)threshold_rule).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CeilometerPackage.CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE, null, msgs); + if (newThreshold_rule != null) + msgs = ((InternalEObject)newThreshold_rule).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CeilometerPackage.CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE, null, msgs); + msgs = basicSetThreshold_rule(newThreshold_rule, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE, newThreshold_rule, newThreshold_rule)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE: + return basicSetThreshold_rule(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE: + return getThreshold_rule(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE: + setThreshold_rule((CeilometerThresholdAlarmRule)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE: + setThreshold_rule((CeilometerThresholdAlarmRule)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE: + return threshold_rule != null; + } + return super.eIsSet(featureID); + } + +} //CeilometerThresholdAlarmImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerThresholdAlarmRuleImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerThresholdAlarmRuleImpl.java new file mode 100644 index 0000000..f00512c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerThresholdAlarmRuleImpl.java @@ -0,0 +1,551 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Threshold Alarm Rule'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl#getMeter_name Meter name}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl#getEvaluation_periods Evaluation periods}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl#getPeriod Period}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl#getStatistic Statistic}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl#getThreshold Threshold}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl#getQuery Query}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl#getComparison_operator Comparison operator}
  • + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.CeilometerThresholdAlarmRuleImpl#getExclude_outliers Exclude outliers}
  • + *
+ *

+ * + * @generated + */ +public class CeilometerThresholdAlarmRuleImpl extends MinimalEObjectImpl.Container implements CeilometerThresholdAlarmRule { + /** + * The default value of the '{@link #getMeter_name() Meter name}' attribute. + * + * + * @see #getMeter_name() + * @generated + * @ordered + */ + protected static final String METER_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMeter_name() Meter name}' attribute. + * + * + * @see #getMeter_name() + * @generated + * @ordered + */ + protected String meter_name = METER_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getEvaluation_periods() Evaluation periods}' attribute. + * + * + * @see #getEvaluation_periods() + * @generated + * @ordered + */ + protected static final Long EVALUATION_PERIODS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEvaluation_periods() Evaluation periods}' attribute. + * + * + * @see #getEvaluation_periods() + * @generated + * @ordered + */ + protected Long evaluation_periods = EVALUATION_PERIODS_EDEFAULT; + + /** + * The default value of the '{@link #getPeriod() Period}' attribute. + * + * + * @see #getPeriod() + * @generated + * @ordered + */ + protected static final Long PERIOD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPeriod() Period}' attribute. + * + * + * @see #getPeriod() + * @generated + * @ordered + */ + protected Long period = PERIOD_EDEFAULT; + + /** + * The default value of the '{@link #getStatistic() Statistic}' attribute. + * + * + * @see #getStatistic() + * @generated + * @ordered + */ + protected static final String STATISTIC_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatistic() Statistic}' attribute. + * + * + * @see #getStatistic() + * @generated + * @ordered + */ + protected String statistic = STATISTIC_EDEFAULT; + + /** + * The default value of the '{@link #getThreshold() Threshold}' attribute. + * + * + * @see #getThreshold() + * @generated + * @ordered + */ + protected static final double THRESHOLD_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getThreshold() Threshold}' attribute. + * + * + * @see #getThreshold() + * @generated + * @ordered + */ + protected double threshold = THRESHOLD_EDEFAULT; + + /** + * The cached value of the '{@link #getQuery() Query}' attribute list. + * + * + * @see #getQuery() + * @generated + * @ordered + */ + protected EList query; + + /** + * The default value of the '{@link #getComparison_operator() Comparison operator}' attribute. + * + * + * @see #getComparison_operator() + * @generated + * @ordered + */ + protected static final String COMPARISON_OPERATOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComparison_operator() Comparison operator}' attribute. + * + * + * @see #getComparison_operator() + * @generated + * @ordered + */ + protected String comparison_operator = COMPARISON_OPERATOR_EDEFAULT; + + /** + * The default value of the '{@link #getExclude_outliers() Exclude outliers}' attribute. + * + * + * @see #getExclude_outliers() + * @generated + * @ordered + */ + protected static final Boolean EXCLUDE_OUTLIERS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getExclude_outliers() Exclude outliers}' attribute. + * + * + * @see #getExclude_outliers() + * @generated + * @ordered + */ + protected Boolean exclude_outliers = EXCLUDE_OUTLIERS_EDEFAULT; + + /** + * + * + * @generated + */ + protected CeilometerThresholdAlarmRuleImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_THRESHOLD_ALARM_RULE; + } + + /** + * + * + * @generated + */ + public String getMeter_name() { + return meter_name; + } + + /** + * + * + * @generated + */ + public void setMeter_name(String newMeter_name) { + String oldMeter_name = meter_name; + meter_name = newMeter_name; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__METER_NAME, oldMeter_name, meter_name)); + } + + /** + * + * + * @generated + */ + public Long getEvaluation_periods() { + return evaluation_periods; + } + + /** + * + * + * @generated + */ + public void setEvaluation_periods(Long newEvaluation_periods) { + Long oldEvaluation_periods = evaluation_periods; + evaluation_periods = newEvaluation_periods; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EVALUATION_PERIODS, oldEvaluation_periods, evaluation_periods)); + } + + /** + * + * + * @generated + */ + public Long getPeriod() { + return period; + } + + /** + * + * + * @generated + */ + public void setPeriod(Long newPeriod) { + Long oldPeriod = period; + period = newPeriod; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__PERIOD, oldPeriod, period)); + } + + /** + * + * + * @generated + */ + public String getStatistic() { + return statistic; + } + + /** + * + * + * @generated + */ + public void setStatistic(String newStatistic) { + String oldStatistic = statistic; + statistic = newStatistic; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__STATISTIC, oldStatistic, statistic)); + } + + /** + * + * + * @generated + */ + public double getThreshold() { + return threshold; + } + + /** + * + * + * @generated + */ + public void setThreshold(double newThreshold) { + double oldThreshold = threshold; + threshold = newThreshold; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__THRESHOLD, oldThreshold, threshold)); + } + + /** + * + * + * @generated + */ + public EList getQuery() { + if (query == null) { + query = new EDataTypeEList(String.class, this, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__QUERY); + } + return query; + } + + /** + * + * + * @generated + */ + public String getComparison_operator() { + return comparison_operator; + } + + /** + * + * + * @generated + */ + public void setComparison_operator(String newComparison_operator) { + String oldComparison_operator = comparison_operator; + comparison_operator = newComparison_operator; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__COMPARISON_OPERATOR, oldComparison_operator, comparison_operator)); + } + + /** + * + * + * @generated + */ + public Boolean getExclude_outliers() { + return exclude_outliers; + } + + /** + * + * + * @generated + */ + public void setExclude_outliers(Boolean newExclude_outliers) { + Boolean oldExclude_outliers = exclude_outliers; + exclude_outliers = newExclude_outliers; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EXCLUDE_OUTLIERS, oldExclude_outliers, exclude_outliers)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__METER_NAME: + return getMeter_name(); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EVALUATION_PERIODS: + return getEvaluation_periods(); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__PERIOD: + return getPeriod(); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__STATISTIC: + return getStatistic(); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__THRESHOLD: + return getThreshold(); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__QUERY: + return getQuery(); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__COMPARISON_OPERATOR: + return getComparison_operator(); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EXCLUDE_OUTLIERS: + return getExclude_outliers(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__METER_NAME: + setMeter_name((String)newValue); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EVALUATION_PERIODS: + setEvaluation_periods((Long)newValue); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__PERIOD: + setPeriod((Long)newValue); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__STATISTIC: + setStatistic((String)newValue); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__THRESHOLD: + setThreshold((Double)newValue); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__QUERY: + getQuery().clear(); + getQuery().addAll((Collection)newValue); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__COMPARISON_OPERATOR: + setComparison_operator((String)newValue); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EXCLUDE_OUTLIERS: + setExclude_outliers((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__METER_NAME: + setMeter_name(METER_NAME_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EVALUATION_PERIODS: + setEvaluation_periods(EVALUATION_PERIODS_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__PERIOD: + setPeriod(PERIOD_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__STATISTIC: + setStatistic(STATISTIC_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__THRESHOLD: + setThreshold(THRESHOLD_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__QUERY: + getQuery().clear(); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__COMPARISON_OPERATOR: + setComparison_operator(COMPARISON_OPERATOR_EDEFAULT); + return; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EXCLUDE_OUTLIERS: + setExclude_outliers(EXCLUDE_OUTLIERS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__METER_NAME: + return METER_NAME_EDEFAULT == null ? meter_name != null : !METER_NAME_EDEFAULT.equals(meter_name); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EVALUATION_PERIODS: + return EVALUATION_PERIODS_EDEFAULT == null ? evaluation_periods != null : !EVALUATION_PERIODS_EDEFAULT.equals(evaluation_periods); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__PERIOD: + return PERIOD_EDEFAULT == null ? period != null : !PERIOD_EDEFAULT.equals(period); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__STATISTIC: + return STATISTIC_EDEFAULT == null ? statistic != null : !STATISTIC_EDEFAULT.equals(statistic); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__THRESHOLD: + return threshold != THRESHOLD_EDEFAULT; + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__QUERY: + return query != null && !query.isEmpty(); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__COMPARISON_OPERATOR: + return COMPARISON_OPERATOR_EDEFAULT == null ? comparison_operator != null : !COMPARISON_OPERATOR_EDEFAULT.equals(comparison_operator); + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE__EXCLUDE_OUTLIERS: + return EXCLUDE_OUTLIERS_EDEFAULT == null ? exclude_outliers != null : !EXCLUDE_OUTLIERS_EDEFAULT.equals(exclude_outliers); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (meter_name: "); + result.append(meter_name); + result.append(", evaluation_periods: "); + result.append(evaluation_periods); + result.append(", period: "); + result.append(period); + result.append(", statistic: "); + result.append(statistic); + result.append(", threshold: "); + result.append(threshold); + result.append(", query: "); + result.append(query); + result.append(", comparison_operator: "); + result.append(comparison_operator); + result.append(", exclude_outliers: "); + result.append(exclude_outliers); + result.append(')'); + return result.toString(); + } + +} //CeilometerThresholdAlarmRuleImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CreateAlarmRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CreateAlarmRequestImpl.java new file mode 100644 index 0000000..baf0ede --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CreateAlarmRequestImpl.java @@ -0,0 +1,60 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Create Alarm Request'. + * + *

+ *

+ * + * @generated + */ +public class CreateAlarmRequestImpl extends CeilometerRequestImpl implements CreateAlarmRequest { + /** + * + * + * @generated + */ + protected CreateAlarmRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CREATE_ALARM_REQUEST; + } + +} //CreateAlarmRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/SampleRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/SampleRequestImpl.java new file mode 100644 index 0000000..f8b2209 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/SampleRequestImpl.java @@ -0,0 +1,196 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery; +import org.openecomp.ncomp.openstack.ceilometer.SampleRequest; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Sample Request'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.ceilometer.impl.SampleRequestImpl#getQuery Query}
  • + *
+ *

+ * + * @generated + */ +public class SampleRequestImpl extends CeilometerRequestImpl implements SampleRequest { + /** + * The cached value of the '{@link #getQuery() Query}' containment reference. + * + * + * @see #getQuery() + * @generated + * @ordered + */ + protected CeilometerQuery query; + + /** + * + * + * @generated + */ + protected SampleRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.SAMPLE_REQUEST; + } + + /** + * + * + * @generated + */ + public CeilometerQuery getQuery() { + return query; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetQuery(CeilometerQuery newQuery, NotificationChain msgs) { + CeilometerQuery oldQuery = query; + query = newQuery; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CeilometerPackage.SAMPLE_REQUEST__QUERY, oldQuery, newQuery); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setQuery(CeilometerQuery newQuery) { + if (newQuery != query) { + NotificationChain msgs = null; + if (query != null) + msgs = ((InternalEObject)query).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - CeilometerPackage.SAMPLE_REQUEST__QUERY, null, msgs); + if (newQuery != null) + msgs = ((InternalEObject)newQuery).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - CeilometerPackage.SAMPLE_REQUEST__QUERY, null, msgs); + msgs = basicSetQuery(newQuery, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CeilometerPackage.SAMPLE_REQUEST__QUERY, newQuery, newQuery)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CeilometerPackage.SAMPLE_REQUEST__QUERY: + return basicSetQuery(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CeilometerPackage.SAMPLE_REQUEST__QUERY: + return getQuery(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CeilometerPackage.SAMPLE_REQUEST__QUERY: + setQuery((CeilometerQuery)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CeilometerPackage.SAMPLE_REQUEST__QUERY: + setQuery((CeilometerQuery)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CeilometerPackage.SAMPLE_REQUEST__QUERY: + return query != null; + } + return super.eIsSet(featureID); + } + +} //SampleRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerAdapterFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerAdapterFactory.java new file mode 100644 index 0000000..8978596 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerAdapterFactory.java @@ -0,0 +1,414 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.util; + +import org.openecomp.ncomp.core.NamedEntity; +import org.openecomp.ncomp.openstack.ceilometer.*; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage + * @generated + */ +public class CeilometerAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static CeilometerPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public CeilometerAdapterFactory() { + if (modelPackage == null) { + modelPackage = CeilometerPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected CeilometerSwitch modelSwitch = + new CeilometerSwitch() { + @Override + public Adapter caseCeilometerService(CeilometerService object) { + return createCeilometerServiceAdapter(); + } + @Override + public Adapter caseCeilometerProject(CeilometerProject object) { + return createCeilometerProjectAdapter(); + } + @Override + public Adapter caseCeilometerAlarm(CeilometerAlarm object) { + return createCeilometerAlarmAdapter(); + } + @Override + public Adapter caseCeilometerThresholdAlarm(CeilometerThresholdAlarm object) { + return createCeilometerThresholdAlarmAdapter(); + } + @Override + public Adapter caseCeilometerThresholdAlarmRule(CeilometerThresholdAlarmRule object) { + return createCeilometerThresholdAlarmRuleAdapter(); + } + @Override + public Adapter caseCeilometerResource(CeilometerResource object) { + return createCeilometerResourceAdapter(); + } + @Override + public Adapter caseCeilometerMeter(CeilometerMeter object) { + return createCeilometerMeterAdapter(); + } + @Override + public Adapter caseCeilometerQuery(CeilometerQuery object) { + return createCeilometerQueryAdapter(); + } + @Override + public Adapter caseCeilometerFilter(CeilometerFilter object) { + return createCeilometerFilterAdapter(); + } + @Override + public Adapter caseCeilometerOrderedBy(CeilometerOrderedBy object) { + return createCeilometerOrderedByAdapter(); + } + @Override + public Adapter caseCeilometerRequest(CeilometerRequest object) { + return createCeilometerRequestAdapter(); + } + @Override + public Adapter caseCreateAlarmRequest(CreateAlarmRequest object) { + return createCreateAlarmRequestAdapter(); + } + @Override + public Adapter caseSampleRequest(SampleRequest object) { + return createSampleRequestAdapter(); + } + @Override + public Adapter caseCeilometerSample(CeilometerSample object) { + return createCeilometerSampleAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter caseOpenStackRequest(OpenStackRequest object) { + return createOpenStackRequestAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService Service}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService + * @generated + */ + public Adapter createCeilometerServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject Project}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerProject + * @generated + */ + public Adapter createCeilometerProjectAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm Alarm}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm + * @generated + */ + public Adapter createCeilometerAlarmAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm Threshold Alarm}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm + * @generated + */ + public Adapter createCeilometerThresholdAlarmAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule Threshold Alarm Rule}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule + * @generated + */ + public Adapter createCeilometerThresholdAlarmRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource Resource}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource + * @generated + */ + public Adapter createCeilometerResourceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter Meter}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter + * @generated + */ + public Adapter createCeilometerMeterAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery Query}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery + * @generated + */ + public Adapter createCeilometerQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter Filter}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter + * @generated + */ + public Adapter createCeilometerFilterAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy Ordered By}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy + * @generated + */ + public Adapter createCeilometerOrderedByAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerRequest Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerRequest + * @generated + */ + public Adapter createCeilometerRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest Create Alarm Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest + * @generated + */ + public Adapter createCreateAlarmRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.SampleRequest Sample Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.SampleRequest + * @generated + */ + public Adapter createSampleRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample Sample}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample + * @generated + */ + public Adapter createCeilometerSampleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest Open Stack Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.core.OpenStackRequest + * @generated + */ + public Adapter createOpenStackRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //CeilometerAdapterFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerSwitch.java new file mode 100644 index 0000000..6e3efb0 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerSwitch.java @@ -0,0 +1,445 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.util; + +import org.openecomp.ncomp.core.NamedEntity; +import org.openecomp.ncomp.openstack.ceilometer.*; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage + * @generated + */ +public class CeilometerSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static CeilometerPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public CeilometerSwitch() { + if (modelPackage == null) { + modelPackage = CeilometerPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case CeilometerPackage.CEILOMETER_SERVICE: { + CeilometerService ceilometerService = (CeilometerService)theEObject; + T result = caseCeilometerService(ceilometerService); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_PROJECT: { + CeilometerProject ceilometerProject = (CeilometerProject)theEObject; + T result = caseCeilometerProject(ceilometerProject); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_ALARM: { + CeilometerAlarm ceilometerAlarm = (CeilometerAlarm)theEObject; + T result = caseCeilometerAlarm(ceilometerAlarm); + if (result == null) result = caseNamedEntity(ceilometerAlarm); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM: { + CeilometerThresholdAlarm ceilometerThresholdAlarm = (CeilometerThresholdAlarm)theEObject; + T result = caseCeilometerThresholdAlarm(ceilometerThresholdAlarm); + if (result == null) result = caseCeilometerAlarm(ceilometerThresholdAlarm); + if (result == null) result = caseNamedEntity(ceilometerThresholdAlarm); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE: { + CeilometerThresholdAlarmRule ceilometerThresholdAlarmRule = (CeilometerThresholdAlarmRule)theEObject; + T result = caseCeilometerThresholdAlarmRule(ceilometerThresholdAlarmRule); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_RESOURCE: { + CeilometerResource ceilometerResource = (CeilometerResource)theEObject; + T result = caseCeilometerResource(ceilometerResource); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_METER: { + CeilometerMeter ceilometerMeter = (CeilometerMeter)theEObject; + T result = caseCeilometerMeter(ceilometerMeter); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_QUERY: { + CeilometerQuery ceilometerQuery = (CeilometerQuery)theEObject; + T result = caseCeilometerQuery(ceilometerQuery); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_FILTER: { + CeilometerFilter ceilometerFilter = (CeilometerFilter)theEObject; + T result = caseCeilometerFilter(ceilometerFilter); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_ORDERED_BY: { + CeilometerOrderedBy ceilometerOrderedBy = (CeilometerOrderedBy)theEObject; + T result = caseCeilometerOrderedBy(ceilometerOrderedBy); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_REQUEST: { + CeilometerRequest ceilometerRequest = (CeilometerRequest)theEObject; + T result = caseCeilometerRequest(ceilometerRequest); + if (result == null) result = caseOpenStackRequest(ceilometerRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CREATE_ALARM_REQUEST: { + CreateAlarmRequest createAlarmRequest = (CreateAlarmRequest)theEObject; + T result = caseCreateAlarmRequest(createAlarmRequest); + if (result == null) result = caseCeilometerRequest(createAlarmRequest); + if (result == null) result = caseOpenStackRequest(createAlarmRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.SAMPLE_REQUEST: { + SampleRequest sampleRequest = (SampleRequest)theEObject; + T result = caseSampleRequest(sampleRequest); + if (result == null) result = caseCeilometerRequest(sampleRequest); + if (result == null) result = caseOpenStackRequest(sampleRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CeilometerPackage.CEILOMETER_SAMPLE: { + CeilometerSample ceilometerSample = (CeilometerSample)theEObject; + T result = caseCeilometerSample(ceilometerSample); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerService(CeilometerService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Project'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Project'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerProject(CeilometerProject object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Alarm'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Alarm'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerAlarm(CeilometerAlarm object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Threshold Alarm'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Threshold Alarm'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerThresholdAlarm(CeilometerThresholdAlarm object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Threshold Alarm Rule'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Threshold Alarm Rule'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerThresholdAlarmRule(CeilometerThresholdAlarmRule object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Resource'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Resource'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerResource(CeilometerResource object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Meter'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Meter'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerMeter(CeilometerMeter object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Query'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Query'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerQuery(CeilometerQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Filter'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Filter'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerFilter(CeilometerFilter object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Ordered By'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Ordered By'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerOrderedBy(CeilometerOrderedBy object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerRequest(CeilometerRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Create Alarm Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Create Alarm Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCreateAlarmRequest(CreateAlarmRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sample Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Sample Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSampleRequest(SampleRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sample'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Sample'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerSample(CeilometerSample object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Named Entity'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Entity'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedEntity(NamedEntity object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Open Stack Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Open Stack Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenStackRequest(OpenStackRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //CeilometerSwitch diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Address.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Address.java new file mode 100644 index 0000000..4a40fd3 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Address.java @@ -0,0 +1,152 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Address'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Address#getVersion Version}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Address#getAddr Addr}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_MAC_mac_addr OS EXT IPS MAC mac addr}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_type OS EXT IPS type}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddress() + * @model + * @generated + */ +public interface Address extends EObject { + /** + * Returns the value of the 'Version' attribute. + * + *

+ * If the meaning of the 'Version' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Version' attribute. + * @see #setVersion(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddress_Version() + * @model unique="false" + * @generated + */ + int getVersion(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Address#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(int value); + + /** + * Returns the value of the 'Addr' attribute. + * + *

+ * If the meaning of the 'Addr' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Addr' attribute. + * @see #setAddr(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddress_Addr() + * @model unique="false" + * @generated + */ + String getAddr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Address#getAddr Addr}' attribute. + * + * + * @param value the new value of the 'Addr' attribute. + * @see #getAddr() + * @generated + */ + void setAddr(String value); + + /** + * Returns the value of the 'OS EXT IPS MAC mac addr' attribute. + * + *

+ * If the meaning of the 'OS EXT IPS MAC mac addr' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS EXT IPS MAC mac addr' attribute. + * @see #setOS_EXT_IPS_MAC_mac_addr(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddress_OS_EXT_IPS_MAC_mac_addr() + * @model unique="false" + * @generated + */ + String getOS_EXT_IPS_MAC_mac_addr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_MAC_mac_addr OS EXT IPS MAC mac addr}' attribute. + * + * + * @param value the new value of the 'OS EXT IPS MAC mac addr' attribute. + * @see #getOS_EXT_IPS_MAC_mac_addr() + * @generated + */ + void setOS_EXT_IPS_MAC_mac_addr(String value); + + /** + * Returns the value of the 'OS EXT IPS type' attribute. + * + *

+ * If the meaning of the 'OS EXT IPS type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS EXT IPS type' attribute. + * @see #setOS_EXT_IPS_type(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddress_OS_EXT_IPS_type() + * @model unique="false" + * @generated + */ + String getOS_EXT_IPS_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_type OS EXT IPS type}' attribute. + * + * + * @param value the new value of the 'OS EXT IPS type' attribute. + * @see #getOS_EXT_IPS_type() + * @generated + */ + void setOS_EXT_IPS_type(String value); + +} // Address diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Addresses.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Addresses.java new file mode 100644 index 0000000..62fffe8 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Addresses.java @@ -0,0 +1,90 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Addresses'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Addresses#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Addresses#getIps Ips}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddresses() + * @model + * @generated + */ +public interface Addresses extends EObject { + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddresses_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Addresses#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Ips' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Address}. + * + *

+ * If the meaning of the 'Ips' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ips' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddresses_Ips() + * @model containment="true" + * @generated + */ + EList
getIps(); + +} // Addresses diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeFactory.java new file mode 100644 index 0000000..259b104 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeFactory.java @@ -0,0 +1,261 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage + * @generated + */ +public interface ComputeFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + ComputeFactory eINSTANCE = org.openecomp.ncomp.openstack.compute.impl.ComputeFactoryImpl.init(); + + /** + * Returns a new object of class 'Openstack Request New Server'. + * + * + * @return a new object of class 'Openstack Request New Server'. + * @generated + */ + OpenstackRequestNewServer createOpenstackRequestNewServer(); + + /** + * Returns a new object of class 'Openstack Request Key Pair'. + * + * + * @return a new object of class 'Openstack Request Key Pair'. + * @generated + */ + OpenstackRequestKeyPair createOpenstackRequestKeyPair(); + + /** + * Returns a new object of class 'Openstack Request Flavor'. + * + * + * @return a new object of class 'Openstack Request Flavor'. + * @generated + */ + OpenstackRequestFlavor createOpenstackRequestFlavor(); + + /** + * Returns a new object of class 'Openstack Request Security Group'. + * + * + * @return a new object of class 'Openstack Request Security Group'. + * @generated + */ + OpenstackRequestSecurityGroup createOpenstackRequestSecurityGroup(); + + /** + * Returns a new object of class 'Openstack Request Server Action'. + * + * + * @return a new object of class 'Openstack Request Server Action'. + * @generated + */ + OpenstackRequestServerAction createOpenstackRequestServerAction(); + + /** + * Returns a new object of class 'Openstack Request Poll'. + * + * + * @return a new object of class 'Openstack Request Poll'. + * @generated + */ + OpenstackRequestPoll createOpenstackRequestPoll(); + + /** + * Returns a new object of class 'Server'. + * + * + * @return a new object of class 'Server'. + * @generated + */ + Server createServer(); + + /** + * Returns a new object of class 'Image'. + * + * + * @return a new object of class 'Image'. + * @generated + */ + Image createImage(); + + /** + * Returns a new object of class 'Flavor'. + * + * + * @return a new object of class 'Flavor'. + * @generated + */ + Flavor createFlavor(); + + /** + * Returns a new object of class 'Addresses'. + * + * + * @return a new object of class 'Addresses'. + * @generated + */ + Addresses createAddresses(); + + /** + * Returns a new object of class 'Address'. + * + * + * @return a new object of class 'Address'. + * @generated + */ + Address createAddress(); + + /** + * Returns a new object of class 'Link'. + * + * + * @return a new object of class 'Link'. + * @generated + */ + Link createLink(); + + /** + * Returns a new object of class 'Metadata'. + * + * + * @return a new object of class 'Metadata'. + * @generated + */ + Metadata createMetadata(); + + /** + * Returns a new object of class 'Fault'. + * + * + * @return a new object of class 'Fault'. + * @generated + */ + Fault createFault(); + + /** + * Returns a new object of class 'Personality'. + * + * + * @return a new object of class 'Personality'. + * @generated + */ + Personality createPersonality(); + + /** + * Returns a new object of class 'Reference'. + * + * + * @return a new object of class 'Reference'. + * @generated + */ + Reference createReference(); + + /** + * Returns a new object of class 'Volume'. + * + * + * @return a new object of class 'Volume'. + * @generated + */ + Volume createVolume(); + + /** + * Returns a new object of class 'Volume Attachment'. + * + * + * @return a new object of class 'Volume Attachment'. + * @generated + */ + VolumeAttachment createVolumeAttachment(); + + /** + * Returns a new object of class 'Floating Ip'. + * + * + * @return a new object of class 'Floating Ip'. + * @generated + */ + FloatingIp createFloatingIp(); + + /** + * Returns a new object of class 'Security Group'. + * + * + * @return a new object of class 'Security Group'. + * @generated + */ + SecurityGroup createSecurityGroup(); + + /** + * Returns a new object of class 'Security Rule'. + * + * + * @return a new object of class 'Security Rule'. + * @generated + */ + SecurityRule createSecurityRule(); + + /** + * Returns a new object of class 'Security Range'. + * + * + * @return a new object of class 'Security Range'. + * @generated + */ + SecurityRange createSecurityRange(); + + /** + * Returns a new object of class 'Key Pair'. + * + * + * @return a new object of class 'Key Pair'. + * @generated + */ + KeyPair createKeyPair(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + ComputePackage getComputePackage(); + +} //ComputeFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputePackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputePackage.java new file mode 100644 index 0000000..c6ca7c1 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputePackage.java @@ -0,0 +1,5045 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.openecomp.ncomp.openstack.compute.ComputeFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-openstack-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.openstack'" + * @generated + */ +public interface ComputePackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "compute"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.openstack.compute"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "compute"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + ComputePackage eINSTANCE = org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.ComputeServiceImpl Service}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.ComputeServiceImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getComputeService() + * @generated + */ + int COMPUTE_SERVICE = 0; + + /** + * The number of structural features of the 'Service' class. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE_FEATURE_COUNT = 0; + + /** + * The operation id for the 'Create Server' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER = 0; + + /** + * The operation id for the 'Delete Server' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___DELETE_SERVER__STRING_STRING = 1; + + /** + * The operation id for the 'Create Key Pair' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR = 2; + + /** + * The operation id for the 'Delete' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___DELETE__OPENSTACKREQUESTDELETE = 3; + + /** + * The operation id for the 'Create Flavor' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR = 4; + + /** + * The operation id for the 'Create Security Group' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP = 5; + + /** + * The operation id for the 'Server Action' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION = 6; + + /** + * The operation id for the 'Deploy Vm Type' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___DEPLOY_VM_TYPE__STRING_STRING = 7; + + /** + * The operation id for the 'Undeploy Vm Type' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___UNDEPLOY_VM_TYPE__STRING_STRING = 8; + + /** + * The operation id for the 'Deploy User' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___DEPLOY_USER__USER_STRING = 9; + + /** + * The operation id for the 'Undeploy User' operation. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE___UNDEPLOY_USER__USER_STRING = 10; + + /** + * The number of operations of the 'Service' class. + * + * + * @generated + * @ordered + */ + int COMPUTE_SERVICE_OPERATION_COUNT = 11; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl Openstack Request New Server}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestNewServer() + * @generated + */ + int OPENSTACK_REQUEST_NEW_SERVER = 1; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER__PROJECT_NAME = CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER__NAME = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Hypervisor' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 1; + + /** + * The feature id for the 'User' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER__USER = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Networks' attribute list. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER__NETWORKS = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Ports' attribute list. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER__PORTS = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 4; + + /** + * The feature id for the 'User data' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER__USER_DATA = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Floating Ip' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Vm Type' containment reference. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Openstack Request New Server' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER_FEATURE_COUNT = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 8; + + /** + * The number of operations of the 'Openstack Request New Server' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_NEW_SERVER_OPERATION_COUNT = CorePackage.OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestKeyPairImpl Openstack Request Key Pair}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestKeyPairImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestKeyPair() + * @generated + */ + int OPENSTACK_REQUEST_KEY_PAIR = 2; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_KEY_PAIR__PROJECT_NAME = CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'User' containment reference. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_KEY_PAIR__USER = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Openstack Request Key Pair' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_KEY_PAIR_FEATURE_COUNT = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Openstack Request Key Pair' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_KEY_PAIR_OPERATION_COUNT = CorePackage.OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestFlavorImpl Openstack Request Flavor}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestFlavorImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestFlavor() + * @generated + */ + int OPENSTACK_REQUEST_FLAVOR = 3; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_FLAVOR__PROJECT_NAME = CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Vm Type' containment reference. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_FLAVOR__VM_TYPE = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Openstack Request Flavor' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_FLAVOR_FEATURE_COUNT = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Openstack Request Flavor' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_FLAVOR_OPERATION_COUNT = CorePackage.OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestSecurityGroupImpl Openstack Request Security Group}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestSecurityGroupImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestSecurityGroup() + * @generated + */ + int OPENSTACK_REQUEST_SECURITY_GROUP = 4; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_SECURITY_GROUP__PROJECT_NAME = CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Vm Type' containment reference. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Openstack Request Security Group' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_SECURITY_GROUP_FEATURE_COUNT = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Openstack Request Security Group' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_SECURITY_GROUP_OPERATION_COUNT = CorePackage.OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestServerActionImpl Openstack Request Server Action}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestServerActionImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestServerAction() + * @generated + */ + int OPENSTACK_REQUEST_SERVER_ACTION = 5; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_SERVER_ACTION__PROJECT_NAME = CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_SERVER_ACTION__NAME = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Action' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_SERVER_ACTION__ACTION = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Openstack Request Server Action' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_SERVER_ACTION_FEATURE_COUNT = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Openstack Request Server Action' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_SERVER_ACTION_OPERATION_COUNT = CorePackage.OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestPollImpl Openstack Request Poll}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestPollImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestPoll() + * @generated + */ + int OPENSTACK_REQUEST_POLL = 6; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_POLL__PROJECT_NAME = CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The number of structural features of the 'Openstack Request Poll' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_POLL_FEATURE_COUNT = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of operations of the 'Openstack Request Poll' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_POLL_OPERATION_COUNT = CorePackage.OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl Server}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.ServerImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getServer() + * @generated + */ + int SERVER = 7; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__ID = 0; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__TENANT_ID = 1; + + /** + * The feature id for the 'User id' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__USER_ID = 2; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__NAME = 3; + + /** + * The feature id for the 'Updated' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__UPDATED = 4; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__CREATED = 5; + + /** + * The feature id for the 'Host Id' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__HOST_ID = 6; + + /** + * The feature id for the 'Access IPv4' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__ACCESS_IPV4 = 7; + + /** + * The feature id for the 'Access IPv6' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__ACCESS_IPV6 = 8; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__STATUS = 9; + + /** + * The feature id for the 'Config drive' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__CONFIG_DRIVE = 10; + + /** + * The feature id for the 'Key name' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__KEY_NAME = 11; + + /** + * The feature id for the 'Progress' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__PROGRESS = 12; + + /** + * The feature id for the 'OS DCF disk Config' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__OS_DCF_DISK_CONFIG = 13; + + /** + * The feature id for the 'OS EXT STS power state' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__OS_EXT_STS_POWER_STATE = 14; + + /** + * The feature id for the 'OS EXT STS vm state' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__OS_EXT_STS_VM_STATE = 15; + + /** + * The feature id for the 'OS EXT STS task state' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__OS_EXT_STS_TASK_STATE = 16; + + /** + * The feature id for the 'OS EXT SRV ATTR host' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__OS_EXT_SRV_ATTR_HOST = 17; + + /** + * The feature id for the 'OS EXT SRV ATTR instance name' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME = 18; + + /** + * The feature id for the 'OS EXT SRV ATTR hypervisor hostname' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME = 19; + + /** + * The feature id for the 'OS SRV USG launched at' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__OS_SRV_USG_LAUNCHED_AT = 20; + + /** + * The feature id for the 'OS SRV USG terminated at' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__OS_SRV_USG_TERMINATED_AT = 21; + + /** + * The feature id for the 'Image' containment reference. + * + * + * @generated + * @ordered + */ + int SERVER__IMAGE = 22; + + /** + * The feature id for the 'Flavor' containment reference. + * + * + * @generated + * @ordered + */ + int SERVER__FLAVOR = 23; + + /** + * The feature id for the 'Addresses' containment reference list. + * + * + * @generated + * @ordered + */ + int SERVER__ADDRESSES = 24; + + /** + * The feature id for the 'Security groups' containment reference list. + * + * + * @generated + * @ordered + */ + int SERVER__SECURITY_GROUPS = 25; + + /** + * The feature id for the 'Metadata' containment reference list. + * + * + * @generated + * @ordered + */ + int SERVER__METADATA = 26; + + /** + * The feature id for the 'Links' containment reference list. + * + * + * @generated + * @ordered + */ + int SERVER__LINKS = 27; + + /** + * The feature id for the 'Fault' containment reference. + * + * + * @generated + * @ordered + */ + int SERVER__FAULT = 28; + + /** + * The number of structural features of the 'Server' class. + * + * + * @generated + * @ordered + */ + int SERVER_FEATURE_COUNT = 29; + + /** + * The number of operations of the 'Server' class. + * + * + * @generated + * @ordered + */ + int SERVER_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl Image}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.ImageImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getImage() + * @generated + */ + int IMAGE = 8; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__ID = 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__NAME = 1; + + /** + * The feature id for the 'Updated' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__UPDATED = 2; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__CREATED = 3; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__TENANT_ID = 4; + + /** + * The feature id for the 'User id' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__USER_ID = 5; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__STATUS = 6; + + /** + * The feature id for the 'Progress' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__PROGRESS = 7; + + /** + * The feature id for the 'Min Disk' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__MIN_DISK = 8; + + /** + * The feature id for the 'Min Ram' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__MIN_RAM = 9; + + /** + * The feature id for the 'OS EXT IMG SIZE size' attribute. + * + * + * @generated + * @ordered + */ + int IMAGE__OS_EXT_IMG_SIZE_SIZE = 10; + + /** + * The feature id for the 'Server' containment reference. + * + * + * @generated + * @ordered + */ + int IMAGE__SERVER = 11; + + /** + * The feature id for the 'Links' containment reference list. + * + * + * @generated + * @ordered + */ + int IMAGE__LINKS = 12; + + /** + * The feature id for the 'Metadata' containment reference list. + * + * + * @generated + * @ordered + */ + int IMAGE__METADATA = 13; + + /** + * The number of structural features of the 'Image' class. + * + * + * @generated + * @ordered + */ + int IMAGE_FEATURE_COUNT = 14; + + /** + * The number of operations of the 'Image' class. + * + * + * @generated + * @ordered + */ + int IMAGE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl Flavor}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.FlavorImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getFlavor() + * @generated + */ + int FLAVOR = 9; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__ID = 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__NAME = 1; + + /** + * The feature id for the 'Ram' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__RAM = 2; + + /** + * The feature id for the 'Disk' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__DISK = 3; + + /** + * The feature id for the 'Vcpus' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__VCPUS = 4; + + /** + * The feature id for the 'Swap' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__SWAP = 5; + + /** + * The feature id for the 'Rxtx factor' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__RXTX_FACTOR = 6; + + /** + * The feature id for the 'OS FLV EXT DATA ephemeral' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL = 7; + + /** + * The feature id for the 'OS FLV DISABLED disabled' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__OS_FLV_DISABLED_DISABLED = 8; + + /** + * The feature id for the 'Os flavor access is public' attribute. + * + * + * @generated + * @ordered + */ + int FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC = 9; + + /** + * The feature id for the 'Links' containment reference list. + * + * + * @generated + * @ordered + */ + int FLAVOR__LINKS = 10; + + /** + * The number of structural features of the 'Flavor' class. + * + * + * @generated + * @ordered + */ + int FLAVOR_FEATURE_COUNT = 11; + + /** + * The number of operations of the 'Flavor' class. + * + * + * @generated + * @ordered + */ + int FLAVOR_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.AddressesImpl Addresses}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.AddressesImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getAddresses() + * @generated + */ + int ADDRESSES = 10; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int ADDRESSES__NAME = 0; + + /** + * The feature id for the 'Ips' containment reference list. + * + * + * @generated + * @ordered + */ + int ADDRESSES__IPS = 1; + + /** + * The number of structural features of the 'Addresses' class. + * + * + * @generated + * @ordered + */ + int ADDRESSES_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Addresses' class. + * + * + * @generated + * @ordered + */ + int ADDRESSES_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl Address}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.AddressImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getAddress() + * @generated + */ + int ADDRESS = 11; + + /** + * The feature id for the 'Version' attribute. + * + * + * @generated + * @ordered + */ + int ADDRESS__VERSION = 0; + + /** + * The feature id for the 'Addr' attribute. + * + * + * @generated + * @ordered + */ + int ADDRESS__ADDR = 1; + + /** + * The feature id for the 'OS EXT IPS MAC mac addr' attribute. + * + * + * @generated + * @ordered + */ + int ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR = 2; + + /** + * The feature id for the 'OS EXT IPS type' attribute. + * + * + * @generated + * @ordered + */ + int ADDRESS__OS_EXT_IPS_TYPE = 3; + + /** + * The number of structural features of the 'Address' class. + * + * + * @generated + * @ordered + */ + int ADDRESS_FEATURE_COUNT = 4; + + /** + * The number of operations of the 'Address' class. + * + * + * @generated + * @ordered + */ + int ADDRESS_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.LinkImpl Link}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.LinkImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getLink() + * @generated + */ + int LINK = 12; + + /** + * The feature id for the 'Rel' attribute. + * + * + * @generated + * @ordered + */ + int LINK__REL = 0; + + /** + * The feature id for the 'Href' attribute. + * + * + * @generated + * @ordered + */ + int LINK__HREF = 1; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int LINK__TYPE = 2; + + /** + * The number of structural features of the 'Link' class. + * + * + * @generated + * @ordered + */ + int LINK_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Link' class. + * + * + * @generated + * @ordered + */ + int LINK_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.MetadataImpl Metadata}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.MetadataImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getMetadata() + * @generated + */ + int METADATA = 13; + + /** + * The feature id for the 'Key' attribute. + * + * + * @generated + * @ordered + */ + int METADATA__KEY = 0; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + int METADATA__VALUE = 1; + + /** + * The number of structural features of the 'Metadata' class. + * + * + * @generated + * @ordered + */ + int METADATA_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Metadata' class. + * + * + * @generated + * @ordered + */ + int METADATA_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.FaultImpl Fault}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.FaultImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getFault() + * @generated + */ + int FAULT = 14; + + /** + * The feature id for the 'Message' attribute. + * + * + * @generated + * @ordered + */ + int FAULT__MESSAGE = 0; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int FAULT__CREATED = 1; + + /** + * The feature id for the 'Code' attribute. + * + * + * @generated + * @ordered + */ + int FAULT__CODE = 2; + + /** + * The number of structural features of the 'Fault' class. + * + * + * @generated + * @ordered + */ + int FAULT_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Fault' class. + * + * + * @generated + * @ordered + */ + int FAULT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.PersonalityImpl Personality}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.PersonalityImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getPersonality() + * @generated + */ + int PERSONALITY = 15; + + /** + * The feature id for the 'Path' attribute. + * + * + * @generated + * @ordered + */ + int PERSONALITY__PATH = 0; + + /** + * The feature id for the 'Contents' attribute. + * + * + * @generated + * @ordered + */ + int PERSONALITY__CONTENTS = 1; + + /** + * The number of structural features of the 'Personality' class. + * + * + * @generated + * @ordered + */ + int PERSONALITY_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Personality' class. + * + * + * @generated + * @ordered + */ + int PERSONALITY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.ReferenceImpl Reference}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.ReferenceImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getReference() + * @generated + */ + int REFERENCE = 16; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int REFERENCE__ID = 0; + + /** + * The feature id for the 'Links' containment reference list. + * + * + * @generated + * @ordered + */ + int REFERENCE__LINKS = 1; + + /** + * The number of structural features of the 'Reference' class. + * + * + * @generated + * @ordered + */ + int REFERENCE_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Reference' class. + * + * + * @generated + * @ordered + */ + int REFERENCE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl Volume}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.VolumeImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getVolume() + * @generated + */ + int VOLUME = 17; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__NAME = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__LAST_POLLED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__LAST_CHANGED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__CREATED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__STATUS = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Display name' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__DISPLAY_NAME = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Attachments' containment reference list. + * + * + * @generated + * @ordered + */ + int VOLUME__ATTACHMENTS = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Availability zone' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__AVAILABILITY_ZONE = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Created at' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__CREATED_AT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Volume type' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__VOLUME_TYPE = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Metadata' containment reference list. + * + * + * @generated + * @ordered + */ + int VOLUME__METADATA = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__ID = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Size' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__SIZE = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Snapshot id' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__SNAPSHOT_ID = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Display description' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME__DISPLAY_DESCRIPTION = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The number of structural features of the 'Volume' class. + * + * + * @generated + * @ordered + */ + int VOLUME_FEATURE_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The number of operations of the 'Volume' class. + * + * + * @generated + * @ordered + */ + int VOLUME_OPERATION_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl Volume Attachment}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getVolumeAttachment() + * @generated + */ + int VOLUME_ATTACHMENT = 18; + + /** + * The feature id for the 'Device' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME_ATTACHMENT__DEVICE = 0; + + /** + * The feature id for the 'Server id' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME_ATTACHMENT__SERVER_ID = 1; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME_ATTACHMENT__ID = 2; + + /** + * The feature id for the 'Volume id' attribute. + * + * + * @generated + * @ordered + */ + int VOLUME_ATTACHMENT__VOLUME_ID = 3; + + /** + * The number of structural features of the 'Volume Attachment' class. + * + * + * @generated + * @ordered + */ + int VOLUME_ATTACHMENT_FEATURE_COUNT = 4; + + /** + * The number of operations of the 'Volume Attachment' class. + * + * + * @generated + * @ordered + */ + int VOLUME_ATTACHMENT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl Floating Ip}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getFloatingIp() + * @generated + */ + int FLOATING_IP = 19; + + /** + * The feature id for the 'Instance id' attribute. + * + * + * @generated + * @ordered + */ + int FLOATING_IP__INSTANCE_ID = 0; + + /** + * The feature id for the 'Ip' attribute. + * + * + * @generated + * @ordered + */ + int FLOATING_IP__IP = 1; + + /** + * The feature id for the 'Fixed ip' attribute. + * + * + * @generated + * @ordered + */ + int FLOATING_IP__FIXED_IP = 2; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int FLOATING_IP__ID = 3; + + /** + * The feature id for the 'Pool' attribute. + * + * + * @generated + * @ordered + */ + int FLOATING_IP__POOL = 4; + + /** + * The number of structural features of the 'Floating Ip' class. + * + * + * @generated + * @ordered + */ + int FLOATING_IP_FEATURE_COUNT = 5; + + /** + * The number of operations of the 'Floating Ip' class. + * + * + * @generated + * @ordered + */ + int FLOATING_IP_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl Security Group}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getSecurityGroup() + * @generated + */ + int SECURITY_GROUP = 20; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP__NAME = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP__LAST_POLLED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP__LAST_CHANGED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP__CREATED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Rules' containment reference list. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP__RULES = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP__TENANT_ID = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP__ID = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP__DESCRIPTION = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Security Group' class. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP_FEATURE_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The number of operations of the 'Security Group' class. + * + * + * @generated + * @ordered + */ + int SECURITY_GROUP_OPERATION_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl Security Rule}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getSecurityRule() + * @generated + */ + int SECURITY_RULE = 21; + + /** + * The feature id for the 'From port' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__FROM_PORT = 0; + + /** + * The feature id for the 'Group' containment reference. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__GROUP = 1; + + /** + * The feature id for the 'Ip protocol' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__IP_PROTOCOL = 2; + + /** + * The feature id for the 'To port' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__TO_PORT = 3; + + /** + * The feature id for the 'Parent group id' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__PARENT_GROUP_ID = 4; + + /** + * The feature id for the 'Ip range' containment reference. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__IP_RANGE = 5; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__ID = 6; + + /** + * The number of structural features of the 'Security Rule' class. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE_FEATURE_COUNT = 7; + + /** + * The number of operations of the 'Security Rule' class. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRangeImpl Security Range}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.SecurityRangeImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getSecurityRange() + * @generated + */ + int SECURITY_RANGE = 22; + + /** + * The feature id for the 'Cidr' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RANGE__CIDR = 0; + + /** + * The number of structural features of the 'Security Range' class. + * + * + * @generated + * @ordered + */ + int SECURITY_RANGE_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'Security Range' class. + * + * + * @generated + * @ordered + */ + int SECURITY_RANGE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl Key Pair}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getKeyPair() + * @generated + */ + int KEY_PAIR = 23; + + /** + * The feature id for the 'Public key' attribute. + * + * + * @generated + * @ordered + */ + int KEY_PAIR__PUBLIC_KEY = 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int KEY_PAIR__NAME = 1; + + /** + * The feature id for the 'Fingerprint' attribute. + * + * + * @generated + * @ordered + */ + int KEY_PAIR__FINGERPRINT = 2; + + /** + * The number of structural features of the 'Key Pair' class. + * + * + * @generated + * @ordered + */ + int KEY_PAIR_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Key Pair' class. + * + * + * @generated + * @ordered + */ + int KEY_PAIR_OPERATION_COUNT = 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.ComputeService Service}'. + * + * + * @return the meta object for class 'Service'. + * @see org.openecomp.ncomp.openstack.compute.ComputeService + * @generated + */ + EClass getComputeService(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#createServer(org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer) Create Server}' operation. + * + * + * @return the meta object for the 'Create Server' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#createServer(org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer) + * @generated + */ + EOperation getComputeService__CreateServer__OpenstackRequestNewServer(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#deleteServer(java.lang.String, java.lang.String) Delete Server}' operation. + * + * + * @return the meta object for the 'Delete Server' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#deleteServer(java.lang.String, java.lang.String) + * @generated + */ + EOperation getComputeService__DeleteServer__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#createKeyPair(org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair) Create Key Pair}' operation. + * + * + * @return the meta object for the 'Create Key Pair' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#createKeyPair(org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair) + * @generated + */ + EOperation getComputeService__CreateKeyPair__OpenstackRequestKeyPair(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#delete(org.openecomp.ncomp.openstack.core.OpenstackRequestDelete) Delete}' operation. + * + * + * @return the meta object for the 'Delete' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#delete(org.openecomp.ncomp.openstack.core.OpenstackRequestDelete) + * @generated + */ + EOperation getComputeService__Delete__OpenstackRequestDelete(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#createFlavor(org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor) Create Flavor}' operation. + * + * + * @return the meta object for the 'Create Flavor' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#createFlavor(org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor) + * @generated + */ + EOperation getComputeService__CreateFlavor__OpenstackRequestFlavor(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#createSecurityGroup(org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup) Create Security Group}' operation. + * + * + * @return the meta object for the 'Create Security Group' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#createSecurityGroup(org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup) + * @generated + */ + EOperation getComputeService__CreateSecurityGroup__OpenstackRequestSecurityGroup(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#serverAction(org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction) Server Action}' operation. + * + * + * @return the meta object for the 'Server Action' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#serverAction(org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction) + * @generated + */ + EOperation getComputeService__ServerAction__OpenstackRequestServerAction(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#deployVmType(java.lang.String, java.lang.String) Deploy Vm Type}' operation. + * + * + * @return the meta object for the 'Deploy Vm Type' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#deployVmType(java.lang.String, java.lang.String) + * @generated + */ + EOperation getComputeService__DeployVmType__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#undeployVmType(java.lang.String, java.lang.String) Undeploy Vm Type}' operation. + * + * + * @return the meta object for the 'Undeploy Vm Type' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#undeployVmType(java.lang.String, java.lang.String) + * @generated + */ + EOperation getComputeService__UndeployVmType__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#deployUser(org.openecomp.ncomp.core.User, java.lang.String) Deploy User}' operation. + * + * + * @return the meta object for the 'Deploy User' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#deployUser(org.openecomp.ncomp.core.User, java.lang.String) + * @generated + */ + EOperation getComputeService__DeployUser__User_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.compute.ComputeService#undeployUser(org.openecomp.ncomp.core.User, java.lang.String) Undeploy User}' operation. + * + * + * @return the meta object for the 'Undeploy User' operation. + * @see org.openecomp.ncomp.openstack.compute.ComputeService#undeployUser(org.openecomp.ncomp.core.User, java.lang.String) + * @generated + */ + EOperation getComputeService__UndeployUser__User_String(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer Openstack Request New Server}'. + * + * + * @return the meta object for class 'Openstack Request New Server'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer + * @generated + */ + EClass getOpenstackRequestNewServer(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getName() + * @see #getOpenstackRequestNewServer() + * @generated + */ + EAttribute getOpenstackRequestNewServer_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getHypervisor Hypervisor}'. + * + * + * @return the meta object for the attribute 'Hypervisor'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getHypervisor() + * @see #getOpenstackRequestNewServer() + * @generated + */ + EAttribute getOpenstackRequestNewServer_Hypervisor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser User}'. + * + * + * @return the meta object for the attribute 'User'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser() + * @see #getOpenstackRequestNewServer() + * @generated + */ + EAttribute getOpenstackRequestNewServer_User(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getNetworks Networks}'. + * + * + * @return the meta object for the attribute list 'Networks'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getNetworks() + * @see #getOpenstackRequestNewServer() + * @generated + */ + EAttribute getOpenstackRequestNewServer_Networks(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getPorts Ports}'. + * + * + * @return the meta object for the attribute list 'Ports'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getPorts() + * @see #getOpenstackRequestNewServer() + * @generated + */ + EAttribute getOpenstackRequestNewServer_Ports(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser_data User data}'. + * + * + * @return the meta object for the attribute 'User data'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser_data() + * @see #getOpenstackRequestNewServer() + * @generated + */ + EAttribute getOpenstackRequestNewServer_User_data(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getFloatingIp Floating Ip}'. + * + * + * @return the meta object for the attribute 'Floating Ip'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getFloatingIp() + * @see #getOpenstackRequestNewServer() + * @generated + */ + EAttribute getOpenstackRequestNewServer_FloatingIp(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getVmType Vm Type}'. + * + * + * @return the meta object for the containment reference 'Vm Type'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getVmType() + * @see #getOpenstackRequestNewServer() + * @generated + */ + EReference getOpenstackRequestNewServer_VmType(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair Openstack Request Key Pair}'. + * + * + * @return the meta object for class 'Openstack Request Key Pair'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair + * @generated + */ + EClass getOpenstackRequestKeyPair(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair#getUser User}'. + * + * + * @return the meta object for the containment reference 'User'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair#getUser() + * @see #getOpenstackRequestKeyPair() + * @generated + */ + EReference getOpenstackRequestKeyPair_User(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor Openstack Request Flavor}'. + * + * + * @return the meta object for class 'Openstack Request Flavor'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor + * @generated + */ + EClass getOpenstackRequestFlavor(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor#getVmType Vm Type}'. + * + * + * @return the meta object for the containment reference 'Vm Type'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor#getVmType() + * @see #getOpenstackRequestFlavor() + * @generated + */ + EReference getOpenstackRequestFlavor_VmType(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup Openstack Request Security Group}'. + * + * + * @return the meta object for class 'Openstack Request Security Group'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup + * @generated + */ + EClass getOpenstackRequestSecurityGroup(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup#getVmType Vm Type}'. + * + * + * @return the meta object for the containment reference 'Vm Type'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup#getVmType() + * @see #getOpenstackRequestSecurityGroup() + * @generated + */ + EReference getOpenstackRequestSecurityGroup_VmType(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction Openstack Request Server Action}'. + * + * + * @return the meta object for class 'Openstack Request Server Action'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction + * @generated + */ + EClass getOpenstackRequestServerAction(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getName() + * @see #getOpenstackRequestServerAction() + * @generated + */ + EAttribute getOpenstackRequestServerAction_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getAction Action}'. + * + * + * @return the meta object for the attribute 'Action'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getAction() + * @see #getOpenstackRequestServerAction() + * @generated + */ + EAttribute getOpenstackRequestServerAction_Action(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll Openstack Request Poll}'. + * + * + * @return the meta object for class 'Openstack Request Poll'. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll + * @generated + */ + EClass getOpenstackRequestPoll(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Server Server}'. + * + * + * @return the meta object for class 'Server'. + * @see org.openecomp.ncomp.openstack.compute.Server + * @generated + */ + EClass getServer(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.compute.Server#getId() + * @see #getServer() + * @generated + */ + EAttribute getServer_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.compute.Server#getTenant_id() + * @see #getServer() + * @generated + */ + EAttribute getServer_Tenant_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getUser_id User id}'. + * + * + * @return the meta object for the attribute 'User id'. + * @see org.openecomp.ncomp.openstack.compute.Server#getUser_id() + * @see #getServer() + * @generated + */ + EAttribute getServer_User_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.compute.Server#getName() + * @see #getServer() + * @generated + */ + EAttribute getServer_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getUpdated Updated}'. + * + * + * @return the meta object for the attribute 'Updated'. + * @see org.openecomp.ncomp.openstack.compute.Server#getUpdated() + * @see #getServer() + * @generated + */ + EAttribute getServer_Updated(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getCreated Created}'. + * + * + * @return the meta object for the attribute 'Created'. + * @see org.openecomp.ncomp.openstack.compute.Server#getCreated() + * @see #getServer() + * @generated + */ + EAttribute getServer_Created(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getHostId Host Id}'. + * + * + * @return the meta object for the attribute 'Host Id'. + * @see org.openecomp.ncomp.openstack.compute.Server#getHostId() + * @see #getServer() + * @generated + */ + EAttribute getServer_HostId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getAccessIPv4 Access IPv4}'. + * + * + * @return the meta object for the attribute 'Access IPv4'. + * @see org.openecomp.ncomp.openstack.compute.Server#getAccessIPv4() + * @see #getServer() + * @generated + */ + EAttribute getServer_AccessIPv4(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getAccessIPv6 Access IPv6}'. + * + * + * @return the meta object for the attribute 'Access IPv6'. + * @see org.openecomp.ncomp.openstack.compute.Server#getAccessIPv6() + * @see #getServer() + * @generated + */ + EAttribute getServer_AccessIPv6(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getStatus Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @see org.openecomp.ncomp.openstack.compute.Server#getStatus() + * @see #getServer() + * @generated + */ + EAttribute getServer_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getConfig_drive Config drive}'. + * + * + * @return the meta object for the attribute 'Config drive'. + * @see org.openecomp.ncomp.openstack.compute.Server#getConfig_drive() + * @see #getServer() + * @generated + */ + EAttribute getServer_Config_drive(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getKey_name Key name}'. + * + * + * @return the meta object for the attribute 'Key name'. + * @see org.openecomp.ncomp.openstack.compute.Server#getKey_name() + * @see #getServer() + * @generated + */ + EAttribute getServer_Key_name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getProgress Progress}'. + * + * + * @return the meta object for the attribute 'Progress'. + * @see org.openecomp.ncomp.openstack.compute.Server#getProgress() + * @see #getServer() + * @generated + */ + EAttribute getServer_Progress(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_DCF_diskConfig OS DCF disk Config}'. + * + * + * @return the meta object for the attribute 'OS DCF disk Config'. + * @see org.openecomp.ncomp.openstack.compute.Server#getOS_DCF_diskConfig() + * @see #getServer() + * @generated + */ + EAttribute getServer_OS_DCF_diskConfig(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_power_state OS EXT STS power state}'. + * + * + * @return the meta object for the attribute 'OS EXT STS power state'. + * @see org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_power_state() + * @see #getServer() + * @generated + */ + EAttribute getServer_OS_EXT_STS_power_state(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_vm_state OS EXT STS vm state}'. + * + * + * @return the meta object for the attribute 'OS EXT STS vm state'. + * @see org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_vm_state() + * @see #getServer() + * @generated + */ + EAttribute getServer_OS_EXT_STS_vm_state(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_task_state OS EXT STS task state}'. + * + * + * @return the meta object for the attribute 'OS EXT STS task state'. + * @see org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_task_state() + * @see #getServer() + * @generated + */ + EAttribute getServer_OS_EXT_STS_task_state(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_host OS EXT SRV ATTR host}'. + * + * + * @return the meta object for the attribute 'OS EXT SRV ATTR host'. + * @see org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_host() + * @see #getServer() + * @generated + */ + EAttribute getServer_OS_EXT_SRV_ATTR_host(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_instance_name OS EXT SRV ATTR instance name}'. + * + * + * @return the meta object for the attribute 'OS EXT SRV ATTR instance name'. + * @see org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_instance_name() + * @see #getServer() + * @generated + */ + EAttribute getServer_OS_EXT_SRV_ATTR_instance_name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_hypervisor_hostname OS EXT SRV ATTR hypervisor hostname}'. + * + * + * @return the meta object for the attribute 'OS EXT SRV ATTR hypervisor hostname'. + * @see org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_hypervisor_hostname() + * @see #getServer() + * @generated + */ + EAttribute getServer_OS_EXT_SRV_ATTR_hypervisor_hostname(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_launched_at OS SRV USG launched at}'. + * + * + * @return the meta object for the attribute 'OS SRV USG launched at'. + * @see org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_launched_at() + * @see #getServer() + * @generated + */ + EAttribute getServer_OS_SRV_USG_launched_at(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_terminated_at OS SRV USG terminated at}'. + * + * + * @return the meta object for the attribute 'OS SRV USG terminated at'. + * @see org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_terminated_at() + * @see #getServer() + * @generated + */ + EAttribute getServer_OS_SRV_USG_terminated_at(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.Server#getImage Image}'. + * + * + * @return the meta object for the containment reference 'Image'. + * @see org.openecomp.ncomp.openstack.compute.Server#getImage() + * @see #getServer() + * @generated + */ + EReference getServer_Image(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.Server#getFlavor Flavor}'. + * + * + * @return the meta object for the containment reference 'Flavor'. + * @see org.openecomp.ncomp.openstack.compute.Server#getFlavor() + * @see #getServer() + * @generated + */ + EReference getServer_Flavor(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Server#getAddresses Addresses}'. + * + * + * @return the meta object for the containment reference list 'Addresses'. + * @see org.openecomp.ncomp.openstack.compute.Server#getAddresses() + * @see #getServer() + * @generated + */ + EReference getServer_Addresses(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Server#getSecurity_groups Security groups}'. + * + * + * @return the meta object for the containment reference list 'Security groups'. + * @see org.openecomp.ncomp.openstack.compute.Server#getSecurity_groups() + * @see #getServer() + * @generated + */ + EReference getServer_Security_groups(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Server#getMetadata Metadata}'. + * + * + * @return the meta object for the containment reference list 'Metadata'. + * @see org.openecomp.ncomp.openstack.compute.Server#getMetadata() + * @see #getServer() + * @generated + */ + EReference getServer_Metadata(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Server#getLinks Links}'. + * + * + * @return the meta object for the containment reference list 'Links'. + * @see org.openecomp.ncomp.openstack.compute.Server#getLinks() + * @see #getServer() + * @generated + */ + EReference getServer_Links(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.Server#getFault Fault}'. + * + * + * @return the meta object for the containment reference 'Fault'. + * @see org.openecomp.ncomp.openstack.compute.Server#getFault() + * @see #getServer() + * @generated + */ + EReference getServer_Fault(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Image Image}'. + * + * + * @return the meta object for class 'Image'. + * @see org.openecomp.ncomp.openstack.compute.Image + * @generated + */ + EClass getImage(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.compute.Image#getId() + * @see #getImage() + * @generated + */ + EAttribute getImage_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.compute.Image#getName() + * @see #getImage() + * @generated + */ + EAttribute getImage_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getUpdated Updated}'. + * + * + * @return the meta object for the attribute 'Updated'. + * @see org.openecomp.ncomp.openstack.compute.Image#getUpdated() + * @see #getImage() + * @generated + */ + EAttribute getImage_Updated(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getCreated Created}'. + * + * + * @return the meta object for the attribute 'Created'. + * @see org.openecomp.ncomp.openstack.compute.Image#getCreated() + * @see #getImage() + * @generated + */ + EAttribute getImage_Created(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.compute.Image#getTenant_id() + * @see #getImage() + * @generated + */ + EAttribute getImage_Tenant_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getUser_id User id}'. + * + * + * @return the meta object for the attribute 'User id'. + * @see org.openecomp.ncomp.openstack.compute.Image#getUser_id() + * @see #getImage() + * @generated + */ + EAttribute getImage_User_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getStatus Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @see org.openecomp.ncomp.openstack.compute.Image#getStatus() + * @see #getImage() + * @generated + */ + EAttribute getImage_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getProgress Progress}'. + * + * + * @return the meta object for the attribute 'Progress'. + * @see org.openecomp.ncomp.openstack.compute.Image#getProgress() + * @see #getImage() + * @generated + */ + EAttribute getImage_Progress(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getMinDisk Min Disk}'. + * + * + * @return the meta object for the attribute 'Min Disk'. + * @see org.openecomp.ncomp.openstack.compute.Image#getMinDisk() + * @see #getImage() + * @generated + */ + EAttribute getImage_MinDisk(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getMinRam Min Ram}'. + * + * + * @return the meta object for the attribute 'Min Ram'. + * @see org.openecomp.ncomp.openstack.compute.Image#getMinRam() + * @see #getImage() + * @generated + */ + EAttribute getImage_MinRam(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Image#getOS_EXT_IMG_SIZE_size OS EXT IMG SIZE size}'. + * + * + * @return the meta object for the attribute 'OS EXT IMG SIZE size'. + * @see org.openecomp.ncomp.openstack.compute.Image#getOS_EXT_IMG_SIZE_size() + * @see #getImage() + * @generated + */ + EAttribute getImage_OS_EXT_IMG_SIZE_size(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.Image#getServer Server}'. + * + * + * @return the meta object for the containment reference 'Server'. + * @see org.openecomp.ncomp.openstack.compute.Image#getServer() + * @see #getImage() + * @generated + */ + EReference getImage_Server(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Image#getLinks Links}'. + * + * + * @return the meta object for the containment reference list 'Links'. + * @see org.openecomp.ncomp.openstack.compute.Image#getLinks() + * @see #getImage() + * @generated + */ + EReference getImage_Links(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Image#getMetadata Metadata}'. + * + * + * @return the meta object for the containment reference list 'Metadata'. + * @see org.openecomp.ncomp.openstack.compute.Image#getMetadata() + * @see #getImage() + * @generated + */ + EReference getImage_Metadata(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Flavor Flavor}'. + * + * + * @return the meta object for class 'Flavor'. + * @see org.openecomp.ncomp.openstack.compute.Flavor + * @generated + */ + EClass getFlavor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#getId() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#getName() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#getRam Ram}'. + * + * + * @return the meta object for the attribute 'Ram'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#getRam() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_Ram(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#getDisk Disk}'. + * + * + * @return the meta object for the attribute 'Disk'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#getDisk() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_Disk(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#getVcpus Vcpus}'. + * + * + * @return the meta object for the attribute 'Vcpus'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#getVcpus() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_Vcpus(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#getSwap Swap}'. + * + * + * @return the meta object for the attribute 'Swap'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#getSwap() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_Swap(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#getRxtx_factor Rxtx factor}'. + * + * + * @return the meta object for the attribute 'Rxtx factor'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#getRxtx_factor() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_Rxtx_factor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#getOS_FLV_EXT_DATA_ephemeral OS FLV EXT DATA ephemeral}'. + * + * + * @return the meta object for the attribute 'OS FLV EXT DATA ephemeral'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#getOS_FLV_EXT_DATA_ephemeral() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_OS_FLV_EXT_DATA_ephemeral(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#isOS_FLV_DISABLED_disabled OS FLV DISABLED disabled}'. + * + * + * @return the meta object for the attribute 'OS FLV DISABLED disabled'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#isOS_FLV_DISABLED_disabled() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_OS_FLV_DISABLED_disabled(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Flavor#isOs_flavor_access_is_public Os flavor access is public}'. + * + * + * @return the meta object for the attribute 'Os flavor access is public'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#isOs_flavor_access_is_public() + * @see #getFlavor() + * @generated + */ + EAttribute getFlavor_Os_flavor_access_is_public(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Flavor#getLinks Links}'. + * + * + * @return the meta object for the containment reference list 'Links'. + * @see org.openecomp.ncomp.openstack.compute.Flavor#getLinks() + * @see #getFlavor() + * @generated + */ + EReference getFlavor_Links(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Addresses Addresses}'. + * + * + * @return the meta object for class 'Addresses'. + * @see org.openecomp.ncomp.openstack.compute.Addresses + * @generated + */ + EClass getAddresses(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Addresses#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.compute.Addresses#getName() + * @see #getAddresses() + * @generated + */ + EAttribute getAddresses_Name(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Addresses#getIps Ips}'. + * + * + * @return the meta object for the containment reference list 'Ips'. + * @see org.openecomp.ncomp.openstack.compute.Addresses#getIps() + * @see #getAddresses() + * @generated + */ + EReference getAddresses_Ips(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Address Address}'. + * + * + * @return the meta object for class 'Address'. + * @see org.openecomp.ncomp.openstack.compute.Address + * @generated + */ + EClass getAddress(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Address#getVersion Version}'. + * + * + * @return the meta object for the attribute 'Version'. + * @see org.openecomp.ncomp.openstack.compute.Address#getVersion() + * @see #getAddress() + * @generated + */ + EAttribute getAddress_Version(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Address#getAddr Addr}'. + * + * + * @return the meta object for the attribute 'Addr'. + * @see org.openecomp.ncomp.openstack.compute.Address#getAddr() + * @see #getAddress() + * @generated + */ + EAttribute getAddress_Addr(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_MAC_mac_addr OS EXT IPS MAC mac addr}'. + * + * + * @return the meta object for the attribute 'OS EXT IPS MAC mac addr'. + * @see org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_MAC_mac_addr() + * @see #getAddress() + * @generated + */ + EAttribute getAddress_OS_EXT_IPS_MAC_mac_addr(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_type OS EXT IPS type}'. + * + * + * @return the meta object for the attribute 'OS EXT IPS type'. + * @see org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_type() + * @see #getAddress() + * @generated + */ + EAttribute getAddress_OS_EXT_IPS_type(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Link Link}'. + * + * + * @return the meta object for class 'Link'. + * @see org.openecomp.ncomp.openstack.compute.Link + * @generated + */ + EClass getLink(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Link#getRel Rel}'. + * + * + * @return the meta object for the attribute 'Rel'. + * @see org.openecomp.ncomp.openstack.compute.Link#getRel() + * @see #getLink() + * @generated + */ + EAttribute getLink_Rel(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Link#getHref Href}'. + * + * + * @return the meta object for the attribute 'Href'. + * @see org.openecomp.ncomp.openstack.compute.Link#getHref() + * @see #getLink() + * @generated + */ + EAttribute getLink_Href(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Link#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.openecomp.ncomp.openstack.compute.Link#getType() + * @see #getLink() + * @generated + */ + EAttribute getLink_Type(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Metadata Metadata}'. + * + * + * @return the meta object for class 'Metadata'. + * @see org.openecomp.ncomp.openstack.compute.Metadata + * @generated + */ + EClass getMetadata(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Metadata#getKey Key}'. + * + * + * @return the meta object for the attribute 'Key'. + * @see org.openecomp.ncomp.openstack.compute.Metadata#getKey() + * @see #getMetadata() + * @generated + */ + EAttribute getMetadata_Key(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Metadata#getValue Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see org.openecomp.ncomp.openstack.compute.Metadata#getValue() + * @see #getMetadata() + * @generated + */ + EAttribute getMetadata_Value(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Fault Fault}'. + * + * + * @return the meta object for class 'Fault'. + * @see org.openecomp.ncomp.openstack.compute.Fault + * @generated + */ + EClass getFault(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Fault#getMessage Message}'. + * + * + * @return the meta object for the attribute 'Message'. + * @see org.openecomp.ncomp.openstack.compute.Fault#getMessage() + * @see #getFault() + * @generated + */ + EAttribute getFault_Message(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Fault#getCreated Created}'. + * + * + * @return the meta object for the attribute 'Created'. + * @see org.openecomp.ncomp.openstack.compute.Fault#getCreated() + * @see #getFault() + * @generated + */ + EAttribute getFault_Created(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Fault#getCode Code}'. + * + * + * @return the meta object for the attribute 'Code'. + * @see org.openecomp.ncomp.openstack.compute.Fault#getCode() + * @see #getFault() + * @generated + */ + EAttribute getFault_Code(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Personality Personality}'. + * + * + * @return the meta object for class 'Personality'. + * @see org.openecomp.ncomp.openstack.compute.Personality + * @generated + */ + EClass getPersonality(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Personality#getPath Path}'. + * + * + * @return the meta object for the attribute 'Path'. + * @see org.openecomp.ncomp.openstack.compute.Personality#getPath() + * @see #getPersonality() + * @generated + */ + EAttribute getPersonality_Path(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Personality#getContents Contents}'. + * + * + * @return the meta object for the attribute 'Contents'. + * @see org.openecomp.ncomp.openstack.compute.Personality#getContents() + * @see #getPersonality() + * @generated + */ + EAttribute getPersonality_Contents(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Reference Reference}'. + * + * + * @return the meta object for class 'Reference'. + * @see org.openecomp.ncomp.openstack.compute.Reference + * @generated + */ + EClass getReference(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Reference#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.compute.Reference#getId() + * @see #getReference() + * @generated + */ + EAttribute getReference_Id(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Reference#getLinks Links}'. + * + * + * @return the meta object for the containment reference list 'Links'. + * @see org.openecomp.ncomp.openstack.compute.Reference#getLinks() + * @see #getReference() + * @generated + */ + EReference getReference_Links(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.Volume Volume}'. + * + * + * @return the meta object for class 'Volume'. + * @see org.openecomp.ncomp.openstack.compute.Volume + * @generated + */ + EClass getVolume(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Volume#getStatus Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getStatus() + * @see #getVolume() + * @generated + */ + EAttribute getVolume_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Volume#getDisplay_name Display name}'. + * + * + * @return the meta object for the attribute 'Display name'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getDisplay_name() + * @see #getVolume() + * @generated + */ + EAttribute getVolume_Display_name(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Volume#getAttachments Attachments}'. + * + * + * @return the meta object for the containment reference list 'Attachments'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getAttachments() + * @see #getVolume() + * @generated + */ + EReference getVolume_Attachments(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Volume#getAvailability_zone Availability zone}'. + * + * + * @return the meta object for the attribute 'Availability zone'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getAvailability_zone() + * @see #getVolume() + * @generated + */ + EAttribute getVolume_Availability_zone(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Volume#getCreated_at Created at}'. + * + * + * @return the meta object for the attribute 'Created at'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getCreated_at() + * @see #getVolume() + * @generated + */ + EAttribute getVolume_Created_at(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Volume#getVolume_type Volume type}'. + * + * + * @return the meta object for the attribute 'Volume type'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getVolume_type() + * @see #getVolume() + * @generated + */ + EAttribute getVolume_Volume_type(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.Volume#getMetadata Metadata}'. + * + * + * @return the meta object for the containment reference list 'Metadata'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getMetadata() + * @see #getVolume() + * @generated + */ + EReference getVolume_Metadata(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Volume#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getId() + * @see #getVolume() + * @generated + */ + EAttribute getVolume_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Volume#getSize Size}'. + * + * + * @return the meta object for the attribute 'Size'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getSize() + * @see #getVolume() + * @generated + */ + EAttribute getVolume_Size(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Volume#getSnapshot_id Snapshot id}'. + * + * + * @return the meta object for the attribute 'Snapshot id'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getSnapshot_id() + * @see #getVolume() + * @generated + */ + EAttribute getVolume_Snapshot_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.Volume#getDisplay_description Display description}'. + * + * + * @return the meta object for the attribute 'Display description'. + * @see org.openecomp.ncomp.openstack.compute.Volume#getDisplay_description() + * @see #getVolume() + * @generated + */ + EAttribute getVolume_Display_description(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment Volume Attachment}'. + * + * + * @return the meta object for class 'Volume Attachment'. + * @see org.openecomp.ncomp.openstack.compute.VolumeAttachment + * @generated + */ + EClass getVolumeAttachment(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getDevice Device}'. + * + * + * @return the meta object for the attribute 'Device'. + * @see org.openecomp.ncomp.openstack.compute.VolumeAttachment#getDevice() + * @see #getVolumeAttachment() + * @generated + */ + EAttribute getVolumeAttachment_Device(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getServer_id Server id}'. + * + * + * @return the meta object for the attribute 'Server id'. + * @see org.openecomp.ncomp.openstack.compute.VolumeAttachment#getServer_id() + * @see #getVolumeAttachment() + * @generated + */ + EAttribute getVolumeAttachment_Server_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.compute.VolumeAttachment#getId() + * @see #getVolumeAttachment() + * @generated + */ + EAttribute getVolumeAttachment_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getVolume_id Volume id}'. + * + * + * @return the meta object for the attribute 'Volume id'. + * @see org.openecomp.ncomp.openstack.compute.VolumeAttachment#getVolume_id() + * @see #getVolumeAttachment() + * @generated + */ + EAttribute getVolumeAttachment_Volume_id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.FloatingIp Floating Ip}'. + * + * + * @return the meta object for class 'Floating Ip'. + * @see org.openecomp.ncomp.openstack.compute.FloatingIp + * @generated + */ + EClass getFloatingIp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getInstance_id Instance id}'. + * + * + * @return the meta object for the attribute 'Instance id'. + * @see org.openecomp.ncomp.openstack.compute.FloatingIp#getInstance_id() + * @see #getFloatingIp() + * @generated + */ + EAttribute getFloatingIp_Instance_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getIp Ip}'. + * + * + * @return the meta object for the attribute 'Ip'. + * @see org.openecomp.ncomp.openstack.compute.FloatingIp#getIp() + * @see #getFloatingIp() + * @generated + */ + EAttribute getFloatingIp_Ip(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getFixed_ip Fixed ip}'. + * + * + * @return the meta object for the attribute 'Fixed ip'. + * @see org.openecomp.ncomp.openstack.compute.FloatingIp#getFixed_ip() + * @see #getFloatingIp() + * @generated + */ + EAttribute getFloatingIp_Fixed_ip(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.compute.FloatingIp#getId() + * @see #getFloatingIp() + * @generated + */ + EAttribute getFloatingIp_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getPool Pool}'. + * + * + * @return the meta object for the attribute 'Pool'. + * @see org.openecomp.ncomp.openstack.compute.FloatingIp#getPool() + * @see #getFloatingIp() + * @generated + */ + EAttribute getFloatingIp_Pool(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup Security Group}'. + * + * + * @return the meta object for class 'Security Group'. + * @see org.openecomp.ncomp.openstack.compute.SecurityGroup + * @generated + */ + EClass getSecurityGroup(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getRules Rules}'. + * + * + * @return the meta object for the containment reference list 'Rules'. + * @see org.openecomp.ncomp.openstack.compute.SecurityGroup#getRules() + * @see #getSecurityGroup() + * @generated + */ + EReference getSecurityGroup_Rules(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.compute.SecurityGroup#getTenant_id() + * @see #getSecurityGroup() + * @generated + */ + EAttribute getSecurityGroup_Tenant_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.compute.SecurityGroup#getId() + * @see #getSecurityGroup() + * @generated + */ + EAttribute getSecurityGroup_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getDescription Description}'. + * + * + * @return the meta object for the attribute 'Description'. + * @see org.openecomp.ncomp.openstack.compute.SecurityGroup#getDescription() + * @see #getSecurityGroup() + * @generated + */ + EAttribute getSecurityGroup_Description(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.SecurityRule Security Rule}'. + * + * + * @return the meta object for class 'Security Rule'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRule + * @generated + */ + EClass getSecurityRule(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getFrom_port From port}'. + * + * + * @return the meta object for the attribute 'From port'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRule#getFrom_port() + * @see #getSecurityRule() + * @generated + */ + EAttribute getSecurityRule_From_port(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getGroup Group}'. + * + * + * @return the meta object for the containment reference 'Group'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRule#getGroup() + * @see #getSecurityRule() + * @generated + */ + EReference getSecurityRule_Group(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_protocol Ip protocol}'. + * + * + * @return the meta object for the attribute 'Ip protocol'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_protocol() + * @see #getSecurityRule() + * @generated + */ + EAttribute getSecurityRule_Ip_protocol(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getTo_port To port}'. + * + * + * @return the meta object for the attribute 'To port'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRule#getTo_port() + * @see #getSecurityRule() + * @generated + */ + EAttribute getSecurityRule_To_port(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getParent_group_id Parent group id}'. + * + * + * @return the meta object for the attribute 'Parent group id'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRule#getParent_group_id() + * @see #getSecurityRule() + * @generated + */ + EAttribute getSecurityRule_Parent_group_id(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_range Ip range}'. + * + * + * @return the meta object for the containment reference 'Ip range'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_range() + * @see #getSecurityRule() + * @generated + */ + EReference getSecurityRule_Ip_range(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRule#getId() + * @see #getSecurityRule() + * @generated + */ + EAttribute getSecurityRule_Id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.SecurityRange Security Range}'. + * + * + * @return the meta object for class 'Security Range'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRange + * @generated + */ + EClass getSecurityRange(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.SecurityRange#getCidr Cidr}'. + * + * + * @return the meta object for the attribute 'Cidr'. + * @see org.openecomp.ncomp.openstack.compute.SecurityRange#getCidr() + * @see #getSecurityRange() + * @generated + */ + EAttribute getSecurityRange_Cidr(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.compute.KeyPair Key Pair}'. + * + * + * @return the meta object for class 'Key Pair'. + * @see org.openecomp.ncomp.openstack.compute.KeyPair + * @generated + */ + EClass getKeyPair(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.KeyPair#getPublic_key Public key}'. + * + * + * @return the meta object for the attribute 'Public key'. + * @see org.openecomp.ncomp.openstack.compute.KeyPair#getPublic_key() + * @see #getKeyPair() + * @generated + */ + EAttribute getKeyPair_Public_key(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.KeyPair#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.compute.KeyPair#getName() + * @see #getKeyPair() + * @generated + */ + EAttribute getKeyPair_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.compute.KeyPair#getFingerprint Fingerprint}'. + * + * + * @return the meta object for the attribute 'Fingerprint'. + * @see org.openecomp.ncomp.openstack.compute.KeyPair#getFingerprint() + * @see #getKeyPair() + * @generated + */ + EAttribute getKeyPair_Fingerprint(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + ComputeFactory getComputeFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.ComputeServiceImpl Service}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.ComputeServiceImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getComputeService() + * @generated + */ + EClass COMPUTE_SERVICE = eINSTANCE.getComputeService(); + + /** + * The meta object literal for the 'Create Server' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER = eINSTANCE.getComputeService__CreateServer__OpenstackRequestNewServer(); + + /** + * The meta object literal for the 'Delete Server' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___DELETE_SERVER__STRING_STRING = eINSTANCE.getComputeService__DeleteServer__String_String(); + + /** + * The meta object literal for the 'Create Key Pair' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR = eINSTANCE.getComputeService__CreateKeyPair__OpenstackRequestKeyPair(); + + /** + * The meta object literal for the 'Delete' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___DELETE__OPENSTACKREQUESTDELETE = eINSTANCE.getComputeService__Delete__OpenstackRequestDelete(); + + /** + * The meta object literal for the 'Create Flavor' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR = eINSTANCE.getComputeService__CreateFlavor__OpenstackRequestFlavor(); + + /** + * The meta object literal for the 'Create Security Group' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP = eINSTANCE.getComputeService__CreateSecurityGroup__OpenstackRequestSecurityGroup(); + + /** + * The meta object literal for the 'Server Action' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION = eINSTANCE.getComputeService__ServerAction__OpenstackRequestServerAction(); + + /** + * The meta object literal for the 'Deploy Vm Type' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___DEPLOY_VM_TYPE__STRING_STRING = eINSTANCE.getComputeService__DeployVmType__String_String(); + + /** + * The meta object literal for the 'Undeploy Vm Type' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___UNDEPLOY_VM_TYPE__STRING_STRING = eINSTANCE.getComputeService__UndeployVmType__String_String(); + + /** + * The meta object literal for the 'Deploy User' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___DEPLOY_USER__USER_STRING = eINSTANCE.getComputeService__DeployUser__User_String(); + + /** + * The meta object literal for the 'Undeploy User' operation. + * + * + * @generated + */ + EOperation COMPUTE_SERVICE___UNDEPLOY_USER__USER_STRING = eINSTANCE.getComputeService__UndeployUser__User_String(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl Openstack Request New Server}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestNewServer() + * @generated + */ + EClass OPENSTACK_REQUEST_NEW_SERVER = eINSTANCE.getOpenstackRequestNewServer(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_NEW_SERVER__NAME = eINSTANCE.getOpenstackRequestNewServer_Name(); + + /** + * The meta object literal for the 'Hypervisor' attribute feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR = eINSTANCE.getOpenstackRequestNewServer_Hypervisor(); + + /** + * The meta object literal for the 'User' attribute feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_NEW_SERVER__USER = eINSTANCE.getOpenstackRequestNewServer_User(); + + /** + * The meta object literal for the 'Networks' attribute list feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_NEW_SERVER__NETWORKS = eINSTANCE.getOpenstackRequestNewServer_Networks(); + + /** + * The meta object literal for the 'Ports' attribute list feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_NEW_SERVER__PORTS = eINSTANCE.getOpenstackRequestNewServer_Ports(); + + /** + * The meta object literal for the 'User data' attribute feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_NEW_SERVER__USER_DATA = eINSTANCE.getOpenstackRequestNewServer_User_data(); + + /** + * The meta object literal for the 'Floating Ip' attribute feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP = eINSTANCE.getOpenstackRequestNewServer_FloatingIp(); + + /** + * The meta object literal for the 'Vm Type' containment reference feature. + * + * + * @generated + */ + EReference OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE = eINSTANCE.getOpenstackRequestNewServer_VmType(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestKeyPairImpl Openstack Request Key Pair}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestKeyPairImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestKeyPair() + * @generated + */ + EClass OPENSTACK_REQUEST_KEY_PAIR = eINSTANCE.getOpenstackRequestKeyPair(); + + /** + * The meta object literal for the 'User' containment reference feature. + * + * + * @generated + */ + EReference OPENSTACK_REQUEST_KEY_PAIR__USER = eINSTANCE.getOpenstackRequestKeyPair_User(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestFlavorImpl Openstack Request Flavor}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestFlavorImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestFlavor() + * @generated + */ + EClass OPENSTACK_REQUEST_FLAVOR = eINSTANCE.getOpenstackRequestFlavor(); + + /** + * The meta object literal for the 'Vm Type' containment reference feature. + * + * + * @generated + */ + EReference OPENSTACK_REQUEST_FLAVOR__VM_TYPE = eINSTANCE.getOpenstackRequestFlavor_VmType(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestSecurityGroupImpl Openstack Request Security Group}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestSecurityGroupImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestSecurityGroup() + * @generated + */ + EClass OPENSTACK_REQUEST_SECURITY_GROUP = eINSTANCE.getOpenstackRequestSecurityGroup(); + + /** + * The meta object literal for the 'Vm Type' containment reference feature. + * + * + * @generated + */ + EReference OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE = eINSTANCE.getOpenstackRequestSecurityGroup_VmType(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestServerActionImpl Openstack Request Server Action}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestServerActionImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestServerAction() + * @generated + */ + EClass OPENSTACK_REQUEST_SERVER_ACTION = eINSTANCE.getOpenstackRequestServerAction(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_SERVER_ACTION__NAME = eINSTANCE.getOpenstackRequestServerAction_Name(); + + /** + * The meta object literal for the 'Action' attribute feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_SERVER_ACTION__ACTION = eINSTANCE.getOpenstackRequestServerAction_Action(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestPollImpl Openstack Request Poll}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestPollImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getOpenstackRequestPoll() + * @generated + */ + EClass OPENSTACK_REQUEST_POLL = eINSTANCE.getOpenstackRequestPoll(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl Server}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.ServerImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getServer() + * @generated + */ + EClass SERVER = eINSTANCE.getServer(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__ID = eINSTANCE.getServer_Id(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__TENANT_ID = eINSTANCE.getServer_Tenant_id(); + + /** + * The meta object literal for the 'User id' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__USER_ID = eINSTANCE.getServer_User_id(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__NAME = eINSTANCE.getServer_Name(); + + /** + * The meta object literal for the 'Updated' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__UPDATED = eINSTANCE.getServer_Updated(); + + /** + * The meta object literal for the 'Created' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__CREATED = eINSTANCE.getServer_Created(); + + /** + * The meta object literal for the 'Host Id' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__HOST_ID = eINSTANCE.getServer_HostId(); + + /** + * The meta object literal for the 'Access IPv4' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__ACCESS_IPV4 = eINSTANCE.getServer_AccessIPv4(); + + /** + * The meta object literal for the 'Access IPv6' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__ACCESS_IPV6 = eINSTANCE.getServer_AccessIPv6(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__STATUS = eINSTANCE.getServer_Status(); + + /** + * The meta object literal for the 'Config drive' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__CONFIG_DRIVE = eINSTANCE.getServer_Config_drive(); + + /** + * The meta object literal for the 'Key name' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__KEY_NAME = eINSTANCE.getServer_Key_name(); + + /** + * The meta object literal for the 'Progress' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__PROGRESS = eINSTANCE.getServer_Progress(); + + /** + * The meta object literal for the 'OS DCF disk Config' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__OS_DCF_DISK_CONFIG = eINSTANCE.getServer_OS_DCF_diskConfig(); + + /** + * The meta object literal for the 'OS EXT STS power state' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__OS_EXT_STS_POWER_STATE = eINSTANCE.getServer_OS_EXT_STS_power_state(); + + /** + * The meta object literal for the 'OS EXT STS vm state' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__OS_EXT_STS_VM_STATE = eINSTANCE.getServer_OS_EXT_STS_vm_state(); + + /** + * The meta object literal for the 'OS EXT STS task state' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__OS_EXT_STS_TASK_STATE = eINSTANCE.getServer_OS_EXT_STS_task_state(); + + /** + * The meta object literal for the 'OS EXT SRV ATTR host' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__OS_EXT_SRV_ATTR_HOST = eINSTANCE.getServer_OS_EXT_SRV_ATTR_host(); + + /** + * The meta object literal for the 'OS EXT SRV ATTR instance name' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME = eINSTANCE.getServer_OS_EXT_SRV_ATTR_instance_name(); + + /** + * The meta object literal for the 'OS EXT SRV ATTR hypervisor hostname' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME = eINSTANCE.getServer_OS_EXT_SRV_ATTR_hypervisor_hostname(); + + /** + * The meta object literal for the 'OS SRV USG launched at' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__OS_SRV_USG_LAUNCHED_AT = eINSTANCE.getServer_OS_SRV_USG_launched_at(); + + /** + * The meta object literal for the 'OS SRV USG terminated at' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__OS_SRV_USG_TERMINATED_AT = eINSTANCE.getServer_OS_SRV_USG_terminated_at(); + + /** + * The meta object literal for the 'Image' containment reference feature. + * + * + * @generated + */ + EReference SERVER__IMAGE = eINSTANCE.getServer_Image(); + + /** + * The meta object literal for the 'Flavor' containment reference feature. + * + * + * @generated + */ + EReference SERVER__FLAVOR = eINSTANCE.getServer_Flavor(); + + /** + * The meta object literal for the 'Addresses' containment reference list feature. + * + * + * @generated + */ + EReference SERVER__ADDRESSES = eINSTANCE.getServer_Addresses(); + + /** + * The meta object literal for the 'Security groups' containment reference list feature. + * + * + * @generated + */ + EReference SERVER__SECURITY_GROUPS = eINSTANCE.getServer_Security_groups(); + + /** + * The meta object literal for the 'Metadata' containment reference list feature. + * + * + * @generated + */ + EReference SERVER__METADATA = eINSTANCE.getServer_Metadata(); + + /** + * The meta object literal for the 'Links' containment reference list feature. + * + * + * @generated + */ + EReference SERVER__LINKS = eINSTANCE.getServer_Links(); + + /** + * The meta object literal for the 'Fault' containment reference feature. + * + * + * @generated + */ + EReference SERVER__FAULT = eINSTANCE.getServer_Fault(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl Image}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.ImageImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getImage() + * @generated + */ + EClass IMAGE = eINSTANCE.getImage(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__ID = eINSTANCE.getImage_Id(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__NAME = eINSTANCE.getImage_Name(); + + /** + * The meta object literal for the 'Updated' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__UPDATED = eINSTANCE.getImage_Updated(); + + /** + * The meta object literal for the 'Created' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__CREATED = eINSTANCE.getImage_Created(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__TENANT_ID = eINSTANCE.getImage_Tenant_id(); + + /** + * The meta object literal for the 'User id' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__USER_ID = eINSTANCE.getImage_User_id(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__STATUS = eINSTANCE.getImage_Status(); + + /** + * The meta object literal for the 'Progress' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__PROGRESS = eINSTANCE.getImage_Progress(); + + /** + * The meta object literal for the 'Min Disk' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__MIN_DISK = eINSTANCE.getImage_MinDisk(); + + /** + * The meta object literal for the 'Min Ram' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__MIN_RAM = eINSTANCE.getImage_MinRam(); + + /** + * The meta object literal for the 'OS EXT IMG SIZE size' attribute feature. + * + * + * @generated + */ + EAttribute IMAGE__OS_EXT_IMG_SIZE_SIZE = eINSTANCE.getImage_OS_EXT_IMG_SIZE_size(); + + /** + * The meta object literal for the 'Server' containment reference feature. + * + * + * @generated + */ + EReference IMAGE__SERVER = eINSTANCE.getImage_Server(); + + /** + * The meta object literal for the 'Links' containment reference list feature. + * + * + * @generated + */ + EReference IMAGE__LINKS = eINSTANCE.getImage_Links(); + + /** + * The meta object literal for the 'Metadata' containment reference list feature. + * + * + * @generated + */ + EReference IMAGE__METADATA = eINSTANCE.getImage_Metadata(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl Flavor}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.FlavorImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getFlavor() + * @generated + */ + EClass FLAVOR = eINSTANCE.getFlavor(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__ID = eINSTANCE.getFlavor_Id(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__NAME = eINSTANCE.getFlavor_Name(); + + /** + * The meta object literal for the 'Ram' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__RAM = eINSTANCE.getFlavor_Ram(); + + /** + * The meta object literal for the 'Disk' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__DISK = eINSTANCE.getFlavor_Disk(); + + /** + * The meta object literal for the 'Vcpus' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__VCPUS = eINSTANCE.getFlavor_Vcpus(); + + /** + * The meta object literal for the 'Swap' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__SWAP = eINSTANCE.getFlavor_Swap(); + + /** + * The meta object literal for the 'Rxtx factor' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__RXTX_FACTOR = eINSTANCE.getFlavor_Rxtx_factor(); + + /** + * The meta object literal for the 'OS FLV EXT DATA ephemeral' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL = eINSTANCE.getFlavor_OS_FLV_EXT_DATA_ephemeral(); + + /** + * The meta object literal for the 'OS FLV DISABLED disabled' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__OS_FLV_DISABLED_DISABLED = eINSTANCE.getFlavor_OS_FLV_DISABLED_disabled(); + + /** + * The meta object literal for the 'Os flavor access is public' attribute feature. + * + * + * @generated + */ + EAttribute FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC = eINSTANCE.getFlavor_Os_flavor_access_is_public(); + + /** + * The meta object literal for the 'Links' containment reference list feature. + * + * + * @generated + */ + EReference FLAVOR__LINKS = eINSTANCE.getFlavor_Links(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.AddressesImpl Addresses}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.AddressesImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getAddresses() + * @generated + */ + EClass ADDRESSES = eINSTANCE.getAddresses(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute ADDRESSES__NAME = eINSTANCE.getAddresses_Name(); + + /** + * The meta object literal for the 'Ips' containment reference list feature. + * + * + * @generated + */ + EReference ADDRESSES__IPS = eINSTANCE.getAddresses_Ips(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl Address}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.AddressImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getAddress() + * @generated + */ + EClass ADDRESS = eINSTANCE.getAddress(); + + /** + * The meta object literal for the 'Version' attribute feature. + * + * + * @generated + */ + EAttribute ADDRESS__VERSION = eINSTANCE.getAddress_Version(); + + /** + * The meta object literal for the 'Addr' attribute feature. + * + * + * @generated + */ + EAttribute ADDRESS__ADDR = eINSTANCE.getAddress_Addr(); + + /** + * The meta object literal for the 'OS EXT IPS MAC mac addr' attribute feature. + * + * + * @generated + */ + EAttribute ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR = eINSTANCE.getAddress_OS_EXT_IPS_MAC_mac_addr(); + + /** + * The meta object literal for the 'OS EXT IPS type' attribute feature. + * + * + * @generated + */ + EAttribute ADDRESS__OS_EXT_IPS_TYPE = eINSTANCE.getAddress_OS_EXT_IPS_type(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.LinkImpl Link}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.LinkImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getLink() + * @generated + */ + EClass LINK = eINSTANCE.getLink(); + + /** + * The meta object literal for the 'Rel' attribute feature. + * + * + * @generated + */ + EAttribute LINK__REL = eINSTANCE.getLink_Rel(); + + /** + * The meta object literal for the 'Href' attribute feature. + * + * + * @generated + */ + EAttribute LINK__HREF = eINSTANCE.getLink_Href(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + EAttribute LINK__TYPE = eINSTANCE.getLink_Type(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.MetadataImpl Metadata}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.MetadataImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getMetadata() + * @generated + */ + EClass METADATA = eINSTANCE.getMetadata(); + + /** + * The meta object literal for the 'Key' attribute feature. + * + * + * @generated + */ + EAttribute METADATA__KEY = eINSTANCE.getMetadata_Key(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * @generated + */ + EAttribute METADATA__VALUE = eINSTANCE.getMetadata_Value(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.FaultImpl Fault}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.FaultImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getFault() + * @generated + */ + EClass FAULT = eINSTANCE.getFault(); + + /** + * The meta object literal for the 'Message' attribute feature. + * + * + * @generated + */ + EAttribute FAULT__MESSAGE = eINSTANCE.getFault_Message(); + + /** + * The meta object literal for the 'Created' attribute feature. + * + * + * @generated + */ + EAttribute FAULT__CREATED = eINSTANCE.getFault_Created(); + + /** + * The meta object literal for the 'Code' attribute feature. + * + * + * @generated + */ + EAttribute FAULT__CODE = eINSTANCE.getFault_Code(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.PersonalityImpl Personality}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.PersonalityImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getPersonality() + * @generated + */ + EClass PERSONALITY = eINSTANCE.getPersonality(); + + /** + * The meta object literal for the 'Path' attribute feature. + * + * + * @generated + */ + EAttribute PERSONALITY__PATH = eINSTANCE.getPersonality_Path(); + + /** + * The meta object literal for the 'Contents' attribute feature. + * + * + * @generated + */ + EAttribute PERSONALITY__CONTENTS = eINSTANCE.getPersonality_Contents(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.ReferenceImpl Reference}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.ReferenceImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getReference() + * @generated + */ + EClass REFERENCE = eINSTANCE.getReference(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute REFERENCE__ID = eINSTANCE.getReference_Id(); + + /** + * The meta object literal for the 'Links' containment reference list feature. + * + * + * @generated + */ + EReference REFERENCE__LINKS = eINSTANCE.getReference_Links(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl Volume}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.VolumeImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getVolume() + * @generated + */ + EClass VOLUME = eINSTANCE.getVolume(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME__STATUS = eINSTANCE.getVolume_Status(); + + /** + * The meta object literal for the 'Display name' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME__DISPLAY_NAME = eINSTANCE.getVolume_Display_name(); + + /** + * The meta object literal for the 'Attachments' containment reference list feature. + * + * + * @generated + */ + EReference VOLUME__ATTACHMENTS = eINSTANCE.getVolume_Attachments(); + + /** + * The meta object literal for the 'Availability zone' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME__AVAILABILITY_ZONE = eINSTANCE.getVolume_Availability_zone(); + + /** + * The meta object literal for the 'Created at' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME__CREATED_AT = eINSTANCE.getVolume_Created_at(); + + /** + * The meta object literal for the 'Volume type' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME__VOLUME_TYPE = eINSTANCE.getVolume_Volume_type(); + + /** + * The meta object literal for the 'Metadata' containment reference list feature. + * + * + * @generated + */ + EReference VOLUME__METADATA = eINSTANCE.getVolume_Metadata(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME__ID = eINSTANCE.getVolume_Id(); + + /** + * The meta object literal for the 'Size' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME__SIZE = eINSTANCE.getVolume_Size(); + + /** + * The meta object literal for the 'Snapshot id' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME__SNAPSHOT_ID = eINSTANCE.getVolume_Snapshot_id(); + + /** + * The meta object literal for the 'Display description' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME__DISPLAY_DESCRIPTION = eINSTANCE.getVolume_Display_description(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl Volume Attachment}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getVolumeAttachment() + * @generated + */ + EClass VOLUME_ATTACHMENT = eINSTANCE.getVolumeAttachment(); + + /** + * The meta object literal for the 'Device' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME_ATTACHMENT__DEVICE = eINSTANCE.getVolumeAttachment_Device(); + + /** + * The meta object literal for the 'Server id' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME_ATTACHMENT__SERVER_ID = eINSTANCE.getVolumeAttachment_Server_id(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME_ATTACHMENT__ID = eINSTANCE.getVolumeAttachment_Id(); + + /** + * The meta object literal for the 'Volume id' attribute feature. + * + * + * @generated + */ + EAttribute VOLUME_ATTACHMENT__VOLUME_ID = eINSTANCE.getVolumeAttachment_Volume_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl Floating Ip}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getFloatingIp() + * @generated + */ + EClass FLOATING_IP = eINSTANCE.getFloatingIp(); + + /** + * The meta object literal for the 'Instance id' attribute feature. + * + * + * @generated + */ + EAttribute FLOATING_IP__INSTANCE_ID = eINSTANCE.getFloatingIp_Instance_id(); + + /** + * The meta object literal for the 'Ip' attribute feature. + * + * + * @generated + */ + EAttribute FLOATING_IP__IP = eINSTANCE.getFloatingIp_Ip(); + + /** + * The meta object literal for the 'Fixed ip' attribute feature. + * + * + * @generated + */ + EAttribute FLOATING_IP__FIXED_IP = eINSTANCE.getFloatingIp_Fixed_ip(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute FLOATING_IP__ID = eINSTANCE.getFloatingIp_Id(); + + /** + * The meta object literal for the 'Pool' attribute feature. + * + * + * @generated + */ + EAttribute FLOATING_IP__POOL = eINSTANCE.getFloatingIp_Pool(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl Security Group}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getSecurityGroup() + * @generated + */ + EClass SECURITY_GROUP = eINSTANCE.getSecurityGroup(); + + /** + * The meta object literal for the 'Rules' containment reference list feature. + * + * + * @generated + */ + EReference SECURITY_GROUP__RULES = eINSTANCE.getSecurityGroup_Rules(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_GROUP__TENANT_ID = eINSTANCE.getSecurityGroup_Tenant_id(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_GROUP__ID = eINSTANCE.getSecurityGroup_Id(); + + /** + * The meta object literal for the 'Description' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_GROUP__DESCRIPTION = eINSTANCE.getSecurityGroup_Description(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl Security Rule}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getSecurityRule() + * @generated + */ + EClass SECURITY_RULE = eINSTANCE.getSecurityRule(); + + /** + * The meta object literal for the 'From port' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RULE__FROM_PORT = eINSTANCE.getSecurityRule_From_port(); + + /** + * The meta object literal for the 'Group' containment reference feature. + * + * + * @generated + */ + EReference SECURITY_RULE__GROUP = eINSTANCE.getSecurityRule_Group(); + + /** + * The meta object literal for the 'Ip protocol' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RULE__IP_PROTOCOL = eINSTANCE.getSecurityRule_Ip_protocol(); + + /** + * The meta object literal for the 'To port' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RULE__TO_PORT = eINSTANCE.getSecurityRule_To_port(); + + /** + * The meta object literal for the 'Parent group id' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RULE__PARENT_GROUP_ID = eINSTANCE.getSecurityRule_Parent_group_id(); + + /** + * The meta object literal for the 'Ip range' containment reference feature. + * + * + * @generated + */ + EReference SECURITY_RULE__IP_RANGE = eINSTANCE.getSecurityRule_Ip_range(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RULE__ID = eINSTANCE.getSecurityRule_Id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRangeImpl Security Range}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.SecurityRangeImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getSecurityRange() + * @generated + */ + EClass SECURITY_RANGE = eINSTANCE.getSecurityRange(); + + /** + * The meta object literal for the 'Cidr' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RANGE__CIDR = eINSTANCE.getSecurityRange_Cidr(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl Key Pair}' class. + * + * + * @see org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl + * @see org.openecomp.ncomp.openstack.compute.impl.ComputePackageImpl#getKeyPair() + * @generated + */ + EClass KEY_PAIR = eINSTANCE.getKeyPair(); + + /** + * The meta object literal for the 'Public key' attribute feature. + * + * + * @generated + */ + EAttribute KEY_PAIR__PUBLIC_KEY = eINSTANCE.getKeyPair_Public_key(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute KEY_PAIR__NAME = eINSTANCE.getKeyPair_Name(); + + /** + * The meta object literal for the 'Fingerprint' attribute feature. + * + * + * @generated + */ + EAttribute KEY_PAIR__FINGERPRINT = eINSTANCE.getKeyPair_Fingerprint(); + + } + +} //ComputePackage diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeService.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeService.java new file mode 100644 index 0000000..5664b8a --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeService.java @@ -0,0 +1,129 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Service'. + * + * + * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getComputeService() + * @model abstract="true" + * @generated + */ +public interface ComputeService extends EObject { + /** + * + * + * @model requestUnique="false" + * @generated + */ + void createServer(OpenstackRequestNewServer request); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteServer(String projectName, String name); + + /** + * + * + * @model requestUnique="false" + * @generated + */ + void createKeyPair(OpenstackRequestKeyPair request); + + /** + * + * + * @model requestUnique="false" + * @generated + */ + void delete(OpenstackRequestDelete request); + + /** + * + * + * @model requestUnique="false" + * @generated + */ + void createFlavor(OpenstackRequestFlavor request); + + /** + * + * + * @model requestUnique="false" + * @generated + */ + void createSecurityGroup(OpenstackRequestSecurityGroup request); + + /** + * + * + * @model requestUnique="false" + * @generated + */ + void serverAction(OpenstackRequestServerAction request); + + /** + * + * + * @model vmTypeNameUnique="false" projectNameUnique="false" + * @generated + */ + void deployVmType(String vmTypeName, String projectName); + + /** + * + * + * @model vmTypeNameUnique="false" projectNameUnique="false" + * @generated + */ + void undeployVmType(String vmTypeName, String projectName); + + /** + * + * + * @model userUnique="false" projectNameUnique="false" + * @generated + */ + void deployUser(User user, String projectName); + + /** + * + * + * @model userUnique="false" projectNameUnique="false" + * @generated + */ + void undeployUser(User user, String projectName); + +} // ComputeService diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Fault.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Fault.java new file mode 100644 index 0000000..ae430d4 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Fault.java @@ -0,0 +1,125 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Fault'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Fault#getMessage Message}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Fault#getCreated Created}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Fault#getCode Code}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFault() + * @model + * @generated + */ +public interface Fault extends EObject { + /** + * Returns the value of the 'Message' attribute. + * + *

+ * If the meaning of the 'Message' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Message' attribute. + * @see #setMessage(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFault_Message() + * @model unique="false" + * @generated + */ + String getMessage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Fault#getMessage Message}' attribute. + * + * + * @param value the new value of the 'Message' attribute. + * @see #getMessage() + * @generated + */ + void setMessage(String value); + + /** + * Returns the value of the 'Created' attribute. + * + *

+ * If the meaning of the 'Created' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Created' attribute. + * @see #setCreated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFault_Created() + * @model unique="false" + * @generated + */ + String getCreated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Fault#getCreated Created}' attribute. + * + * + * @param value the new value of the 'Created' attribute. + * @see #getCreated() + * @generated + */ + void setCreated(String value); + + /** + * Returns the value of the 'Code' attribute. + * + *

+ * If the meaning of the 'Code' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Code' attribute. + * @see #setCode(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFault_Code() + * @model unique="false" + * @generated + */ + int getCode(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Fault#getCode Code}' attribute. + * + * + * @param value the new value of the 'Code' attribute. + * @see #getCode() + * @generated + */ + void setCode(int value); + +} // Fault diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Flavor.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Flavor.java new file mode 100644 index 0000000..26a5f95 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Flavor.java @@ -0,0 +1,333 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Flavor'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#getRam Ram}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#getDisk Disk}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#getVcpus Vcpus}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#getSwap Swap}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#getRxtx_factor Rxtx factor}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#getOS_FLV_EXT_DATA_ephemeral OS FLV EXT DATA ephemeral}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#isOS_FLV_DISABLED_disabled OS FLV DISABLED disabled}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#isOs_flavor_access_is_public Os flavor access is public}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Flavor#getLinks Links}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor() + * @model + * @generated + */ +public interface Flavor extends EObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Ram' attribute. + * + *

+ * If the meaning of the 'Ram' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ram' attribute. + * @see #setRam(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Ram() + * @model unique="false" + * @generated + */ + int getRam(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getRam Ram}' attribute. + * + * + * @param value the new value of the 'Ram' attribute. + * @see #getRam() + * @generated + */ + void setRam(int value); + + /** + * Returns the value of the 'Disk' attribute. + * + *

+ * If the meaning of the 'Disk' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Disk' attribute. + * @see #setDisk(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Disk() + * @model unique="false" + * @generated + */ + int getDisk(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getDisk Disk}' attribute. + * + * + * @param value the new value of the 'Disk' attribute. + * @see #getDisk() + * @generated + */ + void setDisk(int value); + + /** + * Returns the value of the 'Vcpus' attribute. + * + *

+ * If the meaning of the 'Vcpus' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vcpus' attribute. + * @see #setVcpus(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Vcpus() + * @model unique="false" + * @generated + */ + int getVcpus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getVcpus Vcpus}' attribute. + * + * + * @param value the new value of the 'Vcpus' attribute. + * @see #getVcpus() + * @generated + */ + void setVcpus(int value); + + /** + * Returns the value of the 'Swap' attribute. + * + *

+ * If the meaning of the 'Swap' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Swap' attribute. + * @see #setSwap(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Swap() + * @model unique="false" + * @generated + */ + String getSwap(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getSwap Swap}' attribute. + * + * + * @param value the new value of the 'Swap' attribute. + * @see #getSwap() + * @generated + */ + void setSwap(String value); + + /** + * Returns the value of the 'Rxtx factor' attribute. + * + *

+ * If the meaning of the 'Rxtx factor' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Rxtx factor' attribute. + * @see #setRxtx_factor(double) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Rxtx_factor() + * @model unique="false" + * @generated + */ + double getRxtx_factor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getRxtx_factor Rxtx factor}' attribute. + * + * + * @param value the new value of the 'Rxtx factor' attribute. + * @see #getRxtx_factor() + * @generated + */ + void setRxtx_factor(double value); + + /** + * Returns the value of the 'OS FLV EXT DATA ephemeral' attribute. + * + *

+ * If the meaning of the 'OS FLV EXT DATA ephemeral' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS FLV EXT DATA ephemeral' attribute. + * @see #setOS_FLV_EXT_DATA_ephemeral(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_OS_FLV_EXT_DATA_ephemeral() + * @model unique="false" + * @generated + */ + int getOS_FLV_EXT_DATA_ephemeral(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getOS_FLV_EXT_DATA_ephemeral OS FLV EXT DATA ephemeral}' attribute. + * + * + * @param value the new value of the 'OS FLV EXT DATA ephemeral' attribute. + * @see #getOS_FLV_EXT_DATA_ephemeral() + * @generated + */ + void setOS_FLV_EXT_DATA_ephemeral(int value); + + /** + * Returns the value of the 'OS FLV DISABLED disabled' attribute. + * + *

+ * If the meaning of the 'OS FLV DISABLED disabled' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS FLV DISABLED disabled' attribute. + * @see #setOS_FLV_DISABLED_disabled(boolean) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_OS_FLV_DISABLED_disabled() + * @model unique="false" + * @generated + */ + boolean isOS_FLV_DISABLED_disabled(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#isOS_FLV_DISABLED_disabled OS FLV DISABLED disabled}' attribute. + * + * + * @param value the new value of the 'OS FLV DISABLED disabled' attribute. + * @see #isOS_FLV_DISABLED_disabled() + * @generated + */ + void setOS_FLV_DISABLED_disabled(boolean value); + + /** + * Returns the value of the 'Os flavor access is public' attribute. + * + *

+ * If the meaning of the 'Os flavor access is public' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Os flavor access is public' attribute. + * @see #setOs_flavor_access_is_public(boolean) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Os_flavor_access_is_public() + * @model unique="false" + * @generated + */ + boolean isOs_flavor_access_is_public(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#isOs_flavor_access_is_public Os flavor access is public}' attribute. + * + * + * @param value the new value of the 'Os flavor access is public' attribute. + * @see #isOs_flavor_access_is_public() + * @generated + */ + void setOs_flavor_access_is_public(boolean value); + + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Link}. + * + *

+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + +} // Flavor diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/FloatingIp.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/FloatingIp.java new file mode 100644 index 0000000..b842a4b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/FloatingIp.java @@ -0,0 +1,179 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Floating Ip'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.FloatingIp#getInstance_id Instance id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.FloatingIp#getIp Ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.FloatingIp#getFixed_ip Fixed ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.FloatingIp#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.FloatingIp#getPool Pool}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp() + * @model + * @generated + */ +public interface FloatingIp extends EObject { + /** + * Returns the value of the 'Instance id' attribute. + * + *

+ * If the meaning of the 'Instance id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Instance id' attribute. + * @see #setInstance_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Instance_id() + * @model unique="false" + * @generated + */ + String getInstance_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getInstance_id Instance id}' attribute. + * + * + * @param value the new value of the 'Instance id' attribute. + * @see #getInstance_id() + * @generated + */ + void setInstance_id(String value); + + /** + * Returns the value of the 'Ip' attribute. + * + *

+ * If the meaning of the 'Ip' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ip' attribute. + * @see #setIp(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Ip() + * @model unique="false" + * @generated + */ + String getIp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getIp Ip}' attribute. + * + * + * @param value the new value of the 'Ip' attribute. + * @see #getIp() + * @generated + */ + void setIp(String value); + + /** + * Returns the value of the 'Fixed ip' attribute. + * + *

+ * If the meaning of the 'Fixed ip' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Fixed ip' attribute. + * @see #setFixed_ip(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Fixed_ip() + * @model unique="false" + * @generated + */ + String getFixed_ip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getFixed_ip Fixed ip}' attribute. + * + * + * @param value the new value of the 'Fixed ip' attribute. + * @see #getFixed_ip() + * @generated + */ + void setFixed_ip(String value); + + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Pool' attribute. + * + *

+ * If the meaning of the 'Pool' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Pool' attribute. + * @see #setPool(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Pool() + * @model unique="false" + * @generated + */ + String getPool(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getPool Pool}' attribute. + * + * + * @param value the new value of the 'Pool' attribute. + * @see #getPool() + * @generated + */ + void setPool(String value); + +} // FloatingIp diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Image.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Image.java new file mode 100644 index 0000000..86f7f4d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Image.java @@ -0,0 +1,404 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Image'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getUpdated Updated}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getCreated Created}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getProgress Progress}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getMinDisk Min Disk}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getMinRam Min Ram}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getOS_EXT_IMG_SIZE_size OS EXT IMG SIZE size}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getServer Server}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getLinks Links}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Image#getMetadata Metadata}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage() + * @model + * @generated + */ +public interface Image extends EObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Updated' attribute. + * + *

+ * If the meaning of the 'Updated' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Updated' attribute. + * @see #setUpdated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Updated() + * @model unique="false" + * @generated + */ + String getUpdated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getUpdated Updated}' attribute. + * + * + * @param value the new value of the 'Updated' attribute. + * @see #getUpdated() + * @generated + */ + void setUpdated(String value); + + /** + * Returns the value of the 'Created' attribute. + * + *

+ * If the meaning of the 'Created' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Created' attribute. + * @see #setCreated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Created() + * @model unique="false" + * @generated + */ + String getCreated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getCreated Created}' attribute. + * + * + * @param value the new value of the 'Created' attribute. + * @see #getCreated() + * @generated + */ + void setCreated(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *

+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *

+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Progress' attribute. + * + *

+ * If the meaning of the 'Progress' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Progress' attribute. + * @see #setProgress(Long) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Progress() + * @model unique="false" + * @generated + */ + Long getProgress(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getProgress Progress}' attribute. + * + * + * @param value the new value of the 'Progress' attribute. + * @see #getProgress() + * @generated + */ + void setProgress(Long value); + + /** + * Returns the value of the 'Min Disk' attribute. + * + *

+ * If the meaning of the 'Min Disk' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Min Disk' attribute. + * @see #setMinDisk(Long) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_MinDisk() + * @model unique="false" + * @generated + */ + Long getMinDisk(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getMinDisk Min Disk}' attribute. + * + * + * @param value the new value of the 'Min Disk' attribute. + * @see #getMinDisk() + * @generated + */ + void setMinDisk(Long value); + + /** + * Returns the value of the 'Min Ram' attribute. + * + *

+ * If the meaning of the 'Min Ram' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Min Ram' attribute. + * @see #setMinRam(Long) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_MinRam() + * @model unique="false" + * @generated + */ + Long getMinRam(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getMinRam Min Ram}' attribute. + * + * + * @param value the new value of the 'Min Ram' attribute. + * @see #getMinRam() + * @generated + */ + void setMinRam(Long value); + + /** + * Returns the value of the 'OS EXT IMG SIZE size' attribute. + * + *

+ * If the meaning of the 'OS EXT IMG SIZE size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS EXT IMG SIZE size' attribute. + * @see #setOS_EXT_IMG_SIZE_size(Long) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_OS_EXT_IMG_SIZE_size() + * @model unique="false" + * @generated + */ + Long getOS_EXT_IMG_SIZE_size(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getOS_EXT_IMG_SIZE_size OS EXT IMG SIZE size}' attribute. + * + * + * @param value the new value of the 'OS EXT IMG SIZE size' attribute. + * @see #getOS_EXT_IMG_SIZE_size() + * @generated + */ + void setOS_EXT_IMG_SIZE_size(Long value); + + /** + * Returns the value of the 'Server' containment reference. + * + *

+ * If the meaning of the 'Server' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Server' containment reference. + * @see #setServer(Reference) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Server() + * @model containment="true" + * @generated + */ + Reference getServer(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getServer Server}' containment reference. + * + * + * @param value the new value of the 'Server' containment reference. + * @see #getServer() + * @generated + */ + void setServer(Reference value); + + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Link}. + * + *

+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + + /** + * Returns the value of the 'Metadata' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Metadata}. + * + *

+ * If the meaning of the 'Metadata' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Metadata' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Metadata() + * @model containment="true" + * @generated + */ + EList getMetadata(); + +} // Image diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/KeyPair.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/KeyPair.java new file mode 100644 index 0000000..d9ca5a8 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/KeyPair.java @@ -0,0 +1,125 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Key Pair'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.KeyPair#getPublic_key Public key}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.KeyPair#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.KeyPair#getFingerprint Fingerprint}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getKeyPair() + * @model + * @generated + */ +public interface KeyPair extends EObject { + /** + * Returns the value of the 'Public key' attribute. + * + *

+ * If the meaning of the 'Public key' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Public key' attribute. + * @see #setPublic_key(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getKeyPair_Public_key() + * @model unique="false" + * @generated + */ + String getPublic_key(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.KeyPair#getPublic_key Public key}' attribute. + * + * + * @param value the new value of the 'Public key' attribute. + * @see #getPublic_key() + * @generated + */ + void setPublic_key(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getKeyPair_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.KeyPair#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Fingerprint' attribute. + * + *

+ * If the meaning of the 'Fingerprint' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Fingerprint' attribute. + * @see #setFingerprint(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getKeyPair_Fingerprint() + * @model unique="false" + * @generated + */ + String getFingerprint(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.KeyPair#getFingerprint Fingerprint}' attribute. + * + * + * @param value the new value of the 'Fingerprint' attribute. + * @see #getFingerprint() + * @generated + */ + void setFingerprint(String value); + +} // KeyPair diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Link.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Link.java new file mode 100644 index 0000000..3e09988 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Link.java @@ -0,0 +1,125 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Link'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Link#getRel Rel}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Link#getHref Href}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Link#getType Type}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getLink() + * @model + * @generated + */ +public interface Link extends EObject { + /** + * Returns the value of the 'Rel' attribute. + * + *

+ * If the meaning of the 'Rel' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Rel' attribute. + * @see #setRel(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getLink_Rel() + * @model unique="false" + * @generated + */ + String getRel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Link#getRel Rel}' attribute. + * + * + * @param value the new value of the 'Rel' attribute. + * @see #getRel() + * @generated + */ + void setRel(String value); + + /** + * Returns the value of the 'Href' attribute. + * + *

+ * If the meaning of the 'Href' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Href' attribute. + * @see #setHref(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getLink_Href() + * @model unique="false" + * @generated + */ + String getHref(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Link#getHref Href}' attribute. + * + * + * @param value the new value of the 'Href' attribute. + * @see #getHref() + * @generated + */ + void setHref(String value); + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getLink_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Link#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + +} // Link diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Metadata.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Metadata.java new file mode 100644 index 0000000..49bfa6e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Metadata.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Metadata'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Metadata#getKey Key}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Metadata#getValue Value}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getMetadata() + * @model + * @generated + */ +public interface Metadata extends EObject { + /** + * Returns the value of the 'Key' attribute. + * + *

+ * If the meaning of the 'Key' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Key' attribute. + * @see #setKey(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getMetadata_Key() + * @model unique="false" + * @generated + */ + String getKey(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Metadata#getKey Key}' attribute. + * + * + * @param value the new value of the 'Key' attribute. + * @see #getKey() + * @generated + */ + void setKey(String value); + + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getMetadata_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Metadata#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // Metadata diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestFlavor.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestFlavor.java new file mode 100644 index 0000000..9d53f4b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestFlavor.java @@ -0,0 +1,72 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +/** + * + * A representation of the model object 'Openstack Request Flavor'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor#getVmType Vm Type}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestFlavor() + * @model + * @generated + */ +public interface OpenstackRequestFlavor extends OpenStackRequest { + /** + * Returns the value of the 'Vm Type' containment reference. + * + *

+ * If the meaning of the 'Vm Type' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vm Type' containment reference. + * @see #setVmType(VirtualMachineType) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestFlavor_VmType() + * @model containment="true" + * @generated + */ + VirtualMachineType getVmType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor#getVmType Vm Type}' containment reference. + * + * + * @param value the new value of the 'Vm Type' containment reference. + * @see #getVmType() + * @generated + */ + void setVmType(VirtualMachineType value); + +} // OpenstackRequestFlavor diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestKeyPair.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestKeyPair.java new file mode 100644 index 0000000..71f1e0f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestKeyPair.java @@ -0,0 +1,72 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +/** + * + * A representation of the model object 'Openstack Request Key Pair'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair#getUser User}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestKeyPair() + * @model + * @generated + */ +public interface OpenstackRequestKeyPair extends OpenStackRequest { + /** + * Returns the value of the 'User' containment reference. + * + *

+ * If the meaning of the 'User' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'User' containment reference. + * @see #setUser(User) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestKeyPair_User() + * @model containment="true" + * @generated + */ + User getUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair#getUser User}' containment reference. + * + * + * @param value the new value of the 'User' containment reference. + * @see #getUser() + * @generated + */ + void setUser(User value); + +} // OpenstackRequestKeyPair diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestNewServer.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestNewServer.java new file mode 100644 index 0000000..00c9bae --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestNewServer.java @@ -0,0 +1,243 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Openstack Request New Server'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getHypervisor Hypervisor}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser User}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getNetworks Networks}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getPorts Ports}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser_data User data}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getFloatingIp Floating Ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getVmType Vm Type}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer() + * @model + * @generated + */ +public interface OpenstackRequestNewServer extends OpenStackRequest { + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Hypervisor' attribute. + * + *

+ * If the meaning of the 'Hypervisor' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Hypervisor' attribute. + * @see #setHypervisor(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_Hypervisor() + * @model unique="false" + * @generated + */ + String getHypervisor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getHypervisor Hypervisor}' attribute. + * + * + * @param value the new value of the 'Hypervisor' attribute. + * @see #getHypervisor() + * @generated + */ + void setHypervisor(String value); + + /** + * Returns the value of the 'User' attribute. + * + *

+ * If the meaning of the 'User' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'User' attribute. + * @see #setUser(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_User() + * @model unique="false" + * @generated + */ + String getUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser User}' attribute. + * + * + * @param value the new value of the 'User' attribute. + * @see #getUser() + * @generated + */ + void setUser(String value); + + /** + * Returns the value of the 'Networks' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Networks' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Networks' attribute list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_Networks() + * @model unique="false" + * @generated + */ + EList getNetworks(); + + /** + * Returns the value of the 'Ports' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Ports' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ports' attribute list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_Ports() + * @model unique="false" + * @generated + */ + EList getPorts(); + + /** + * Returns the value of the 'User data' attribute. + * + *

+ * If the meaning of the 'User data' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'User data' attribute. + * @see #setUser_data(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_User_data() + * @model unique="false" + * @generated + */ + String getUser_data(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser_data User data}' attribute. + * + * + * @param value the new value of the 'User data' attribute. + * @see #getUser_data() + * @generated + */ + void setUser_data(String value); + + /** + * Returns the value of the 'Floating Ip' attribute. + * + *

+ * If the meaning of the 'Floating Ip' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Floating Ip' attribute. + * @see #setFloatingIp(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_FloatingIp() + * @model unique="false" + * @generated + */ + String getFloatingIp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getFloatingIp Floating Ip}' attribute. + * + * + * @param value the new value of the 'Floating Ip' attribute. + * @see #getFloatingIp() + * @generated + */ + void setFloatingIp(String value); + + /** + * Returns the value of the 'Vm Type' containment reference. + * + *

+ * If the meaning of the 'Vm Type' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vm Type' containment reference. + * @see #setVmType(VirtualMachineType) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_VmType() + * @model containment="true" + * @generated + */ + VirtualMachineType getVmType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getVmType Vm Type}' containment reference. + * + * + * @param value the new value of the 'Vm Type' containment reference. + * @see #getVmType() + * @generated + */ + void setVmType(VirtualMachineType value); + +} // OpenstackRequestNewServer diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestPoll.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestPoll.java new file mode 100644 index 0000000..810e34b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestPoll.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +/** + * + * A representation of the model object 'Openstack Request Poll'. + * + * + * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestPoll() + * @model + * @generated + */ +public interface OpenstackRequestPoll extends OpenStackRequest { +} // OpenstackRequestPoll diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestSecurityGroup.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestSecurityGroup.java new file mode 100644 index 0000000..45a7434 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestSecurityGroup.java @@ -0,0 +1,72 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +/** + * + * A representation of the model object 'Openstack Request Security Group'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup#getVmType Vm Type}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestSecurityGroup() + * @model + * @generated + */ +public interface OpenstackRequestSecurityGroup extends OpenStackRequest { + /** + * Returns the value of the 'Vm Type' containment reference. + * + *

+ * If the meaning of the 'Vm Type' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vm Type' containment reference. + * @see #setVmType(VirtualMachineType) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestSecurityGroup_VmType() + * @model containment="true" + * @generated + */ + VirtualMachineType getVmType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup#getVmType Vm Type}' containment reference. + * + * + * @param value the new value of the 'Vm Type' containment reference. + * @see #getVmType() + * @generated + */ + void setVmType(VirtualMachineType value); + +} // OpenstackRequestSecurityGroup diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestServerAction.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestServerAction.java new file mode 100644 index 0000000..4eb1d57 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestServerAction.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +/** + * + * A representation of the model object 'Openstack Request Server Action'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getAction Action}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestServerAction() + * @model + * @generated + */ +public interface OpenstackRequestServerAction extends OpenStackRequest { + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestServerAction_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Action' attribute. + * + *

+ * If the meaning of the 'Action' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Action' attribute. + * @see #setAction(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestServerAction_Action() + * @model unique="false" + * @generated + */ + String getAction(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getAction Action}' attribute. + * + * + * @param value the new value of the 'Action' attribute. + * @see #getAction() + * @generated + */ + void setAction(String value); + +} // OpenstackRequestServerAction diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Personality.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Personality.java new file mode 100644 index 0000000..42e5156 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Personality.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Personality'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Personality#getPath Path}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Personality#getContents Contents}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getPersonality() + * @model + * @generated + */ +public interface Personality extends EObject { + /** + * Returns the value of the 'Path' attribute. + * + *

+ * If the meaning of the 'Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Path' attribute. + * @see #setPath(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getPersonality_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Personality#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + + /** + * Returns the value of the 'Contents' attribute. + * + *

+ * If the meaning of the 'Contents' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Contents' attribute. + * @see #setContents(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getPersonality_Contents() + * @model unique="false" + * @generated + */ + String getContents(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Personality#getContents Contents}' attribute. + * + * + * @param value the new value of the 'Contents' attribute. + * @see #getContents() + * @generated + */ + void setContents(String value); + +} // Personality diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Reference.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Reference.java new file mode 100644 index 0000000..daf8be0 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Reference.java @@ -0,0 +1,90 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Reference'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Reference#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Reference#getLinks Links}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getReference() + * @model + * @generated + */ +public interface Reference extends EObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getReference_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Reference#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Link}. + * + *

+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getReference_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + +} // Reference diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityGroup.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityGroup.java new file mode 100644 index 0000000..7a585d8 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityGroup.java @@ -0,0 +1,144 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Security Group'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getRules Rules}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getDescription Description}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityGroup() + * @model + * @generated + */ +public interface SecurityGroup extends NamedEntity { + /** + * Returns the value of the 'Rules' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.SecurityRule}. + * + *

+ * If the meaning of the 'Rules' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Rules' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityGroup_Rules() + * @model containment="true" + * @generated + */ + EList getRules(); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityGroup_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityGroup_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Description' attribute. + * + *

+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityGroup_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + +} // SecurityGroup diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRange.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRange.java new file mode 100644 index 0000000..7dd610c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRange.java @@ -0,0 +1,71 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Security Range'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityRange#getCidr Cidr}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRange() + * @model + * @generated + */ +public interface SecurityRange extends EObject { + /** + * Returns the value of the 'Cidr' attribute. + * + *

+ * If the meaning of the 'Cidr' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Cidr' attribute. + * @see #setCidr(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRange_Cidr() + * @model unique="false" + * @generated + */ + String getCidr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRange#getCidr Cidr}' attribute. + * + * + * @param value the new value of the 'Cidr' attribute. + * @see #getCidr() + * @generated + */ + void setCidr(String value); + +} // SecurityRange diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRule.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRule.java new file mode 100644 index 0000000..e4b1184 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRule.java @@ -0,0 +1,233 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Security Rule'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityRule#getFrom_port From port}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityRule#getGroup Group}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_protocol Ip protocol}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityRule#getTo_port To port}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityRule#getParent_group_id Parent group id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_range Ip range}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.SecurityRule#getId Id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule() + * @model + * @generated + */ +public interface SecurityRule extends EObject { + /** + * Returns the value of the 'From port' attribute. + * + *

+ * If the meaning of the 'From port' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'From port' attribute. + * @see #setFrom_port(Integer) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_From_port() + * @model unique="false" + * @generated + */ + Integer getFrom_port(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getFrom_port From port}' attribute. + * + * + * @param value the new value of the 'From port' attribute. + * @see #getFrom_port() + * @generated + */ + void setFrom_port(Integer value); + + /** + * Returns the value of the 'Group' containment reference. + * + *

+ * If the meaning of the 'Group' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Group' containment reference. + * @see #setGroup(SecurityGroup) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Group() + * @model containment="true" + * @generated + */ + SecurityGroup getGroup(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getGroup Group}' containment reference. + * + * + * @param value the new value of the 'Group' containment reference. + * @see #getGroup() + * @generated + */ + void setGroup(SecurityGroup value); + + /** + * Returns the value of the 'Ip protocol' attribute. + * + *

+ * If the meaning of the 'Ip protocol' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ip protocol' attribute. + * @see #setIp_protocol(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Ip_protocol() + * @model unique="false" + * @generated + */ + String getIp_protocol(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_protocol Ip protocol}' attribute. + * + * + * @param value the new value of the 'Ip protocol' attribute. + * @see #getIp_protocol() + * @generated + */ + void setIp_protocol(String value); + + /** + * Returns the value of the 'To port' attribute. + * + *

+ * If the meaning of the 'To port' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'To port' attribute. + * @see #setTo_port(Integer) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_To_port() + * @model unique="false" + * @generated + */ + Integer getTo_port(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getTo_port To port}' attribute. + * + * + * @param value the new value of the 'To port' attribute. + * @see #getTo_port() + * @generated + */ + void setTo_port(Integer value); + + /** + * Returns the value of the 'Parent group id' attribute. + * + *

+ * If the meaning of the 'Parent group id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Parent group id' attribute. + * @see #setParent_group_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Parent_group_id() + * @model unique="false" + * @generated + */ + String getParent_group_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getParent_group_id Parent group id}' attribute. + * + * + * @param value the new value of the 'Parent group id' attribute. + * @see #getParent_group_id() + * @generated + */ + void setParent_group_id(String value); + + /** + * Returns the value of the 'Ip range' containment reference. + * + *

+ * If the meaning of the 'Ip range' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ip range' containment reference. + * @see #setIp_range(SecurityRange) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Ip_range() + * @model containment="true" + * @generated + */ + SecurityRange getIp_range(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_range Ip range}' containment reference. + * + * + * @param value the new value of the 'Ip range' containment reference. + * @see #getIp_range() + * @generated + */ + void setIp_range(SecurityRange value); + + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + +} // SecurityRule diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Server.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Server.java new file mode 100644 index 0000000..60e8f28 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Server.java @@ -0,0 +1,789 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Server'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getUpdated Updated}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getCreated Created}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getHostId Host Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getAccessIPv4 Access IPv4}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getAccessIPv6 Access IPv6}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getConfig_drive Config drive}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getKey_name Key name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getProgress Progress}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getOS_DCF_diskConfig OS DCF disk Config}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_power_state OS EXT STS power state}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_vm_state OS EXT STS vm state}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_task_state OS EXT STS task state}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_host OS EXT SRV ATTR host}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_instance_name OS EXT SRV ATTR instance name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_hypervisor_hostname OS EXT SRV ATTR hypervisor hostname}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_launched_at OS SRV USG launched at}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_terminated_at OS SRV USG terminated at}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getImage Image}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getFlavor Flavor}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getAddresses Addresses}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getSecurity_groups Security groups}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getMetadata Metadata}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getLinks Links}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Server#getFault Fault}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer() + * @model + * @generated + */ +public interface Server extends EObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *

+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Updated' attribute. + * + *

+ * If the meaning of the 'Updated' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Updated' attribute. + * @see #setUpdated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Updated() + * @model unique="false" + * @generated + */ + String getUpdated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getUpdated Updated}' attribute. + * + * + * @param value the new value of the 'Updated' attribute. + * @see #getUpdated() + * @generated + */ + void setUpdated(String value); + + /** + * Returns the value of the 'Created' attribute. + * + *

+ * If the meaning of the 'Created' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Created' attribute. + * @see #setCreated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Created() + * @model unique="false" + * @generated + */ + String getCreated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getCreated Created}' attribute. + * + * + * @param value the new value of the 'Created' attribute. + * @see #getCreated() + * @generated + */ + void setCreated(String value); + + /** + * Returns the value of the 'Host Id' attribute. + * + *

+ * If the meaning of the 'Host Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Host Id' attribute. + * @see #setHostId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_HostId() + * @model unique="false" + * @generated + */ + String getHostId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getHostId Host Id}' attribute. + * + * + * @param value the new value of the 'Host Id' attribute. + * @see #getHostId() + * @generated + */ + void setHostId(String value); + + /** + * Returns the value of the 'Access IPv4' attribute. + * + *

+ * If the meaning of the 'Access IPv4' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Access IPv4' attribute. + * @see #setAccessIPv4(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_AccessIPv4() + * @model unique="false" + * @generated + */ + String getAccessIPv4(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getAccessIPv4 Access IPv4}' attribute. + * + * + * @param value the new value of the 'Access IPv4' attribute. + * @see #getAccessIPv4() + * @generated + */ + void setAccessIPv4(String value); + + /** + * Returns the value of the 'Access IPv6' attribute. + * + *

+ * If the meaning of the 'Access IPv6' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Access IPv6' attribute. + * @see #setAccessIPv6(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_AccessIPv6() + * @model unique="false" + * @generated + */ + String getAccessIPv6(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getAccessIPv6 Access IPv6}' attribute. + * + * + * @param value the new value of the 'Access IPv6' attribute. + * @see #getAccessIPv6() + * @generated + */ + void setAccessIPv6(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *

+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Config drive' attribute. + * + *

+ * If the meaning of the 'Config drive' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Config drive' attribute. + * @see #setConfig_drive(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Config_drive() + * @model unique="false" + * @generated + */ + String getConfig_drive(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getConfig_drive Config drive}' attribute. + * + * + * @param value the new value of the 'Config drive' attribute. + * @see #getConfig_drive() + * @generated + */ + void setConfig_drive(String value); + + /** + * Returns the value of the 'Key name' attribute. + * + *

+ * If the meaning of the 'Key name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Key name' attribute. + * @see #setKey_name(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Key_name() + * @model unique="false" + * @generated + */ + String getKey_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getKey_name Key name}' attribute. + * + * + * @param value the new value of the 'Key name' attribute. + * @see #getKey_name() + * @generated + */ + void setKey_name(String value); + + /** + * Returns the value of the 'Progress' attribute. + * + *

+ * If the meaning of the 'Progress' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Progress' attribute. + * @see #setProgress(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Progress() + * @model unique="false" + * @generated + */ + int getProgress(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getProgress Progress}' attribute. + * + * + * @param value the new value of the 'Progress' attribute. + * @see #getProgress() + * @generated + */ + void setProgress(int value); + + /** + * Returns the value of the 'OS DCF disk Config' attribute. + * + *

+ * If the meaning of the 'OS DCF disk Config' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS DCF disk Config' attribute. + * @see #setOS_DCF_diskConfig(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_DCF_diskConfig() + * @model unique="false" + * @generated + */ + String getOS_DCF_diskConfig(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_DCF_diskConfig OS DCF disk Config}' attribute. + * + * + * @param value the new value of the 'OS DCF disk Config' attribute. + * @see #getOS_DCF_diskConfig() + * @generated + */ + void setOS_DCF_diskConfig(String value); + + /** + * Returns the value of the 'OS EXT STS power state' attribute. + * + *

+ * If the meaning of the 'OS EXT STS power state' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS EXT STS power state' attribute. + * @see #setOS_EXT_STS_power_state(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_STS_power_state() + * @model unique="false" + * @generated + */ + int getOS_EXT_STS_power_state(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_power_state OS EXT STS power state}' attribute. + * + * + * @param value the new value of the 'OS EXT STS power state' attribute. + * @see #getOS_EXT_STS_power_state() + * @generated + */ + void setOS_EXT_STS_power_state(int value); + + /** + * Returns the value of the 'OS EXT STS vm state' attribute. + * + *

+ * If the meaning of the 'OS EXT STS vm state' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS EXT STS vm state' attribute. + * @see #setOS_EXT_STS_vm_state(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_STS_vm_state() + * @model unique="false" + * @generated + */ + String getOS_EXT_STS_vm_state(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_vm_state OS EXT STS vm state}' attribute. + * + * + * @param value the new value of the 'OS EXT STS vm state' attribute. + * @see #getOS_EXT_STS_vm_state() + * @generated + */ + void setOS_EXT_STS_vm_state(String value); + + /** + * Returns the value of the 'OS EXT STS task state' attribute. + * + *

+ * If the meaning of the 'OS EXT STS task state' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS EXT STS task state' attribute. + * @see #setOS_EXT_STS_task_state(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_STS_task_state() + * @model unique="false" + * @generated + */ + String getOS_EXT_STS_task_state(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_task_state OS EXT STS task state}' attribute. + * + * + * @param value the new value of the 'OS EXT STS task state' attribute. + * @see #getOS_EXT_STS_task_state() + * @generated + */ + void setOS_EXT_STS_task_state(String value); + + /** + * Returns the value of the 'OS EXT SRV ATTR host' attribute. + * + *

+ * If the meaning of the 'OS EXT SRV ATTR host' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS EXT SRV ATTR host' attribute. + * @see #setOS_EXT_SRV_ATTR_host(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_SRV_ATTR_host() + * @model unique="false" + * @generated + */ + String getOS_EXT_SRV_ATTR_host(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_host OS EXT SRV ATTR host}' attribute. + * + * + * @param value the new value of the 'OS EXT SRV ATTR host' attribute. + * @see #getOS_EXT_SRV_ATTR_host() + * @generated + */ + void setOS_EXT_SRV_ATTR_host(String value); + + /** + * Returns the value of the 'OS EXT SRV ATTR instance name' attribute. + * + *

+ * If the meaning of the 'OS EXT SRV ATTR instance name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS EXT SRV ATTR instance name' attribute. + * @see #setOS_EXT_SRV_ATTR_instance_name(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_SRV_ATTR_instance_name() + * @model unique="false" + * @generated + */ + String getOS_EXT_SRV_ATTR_instance_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_instance_name OS EXT SRV ATTR instance name}' attribute. + * + * + * @param value the new value of the 'OS EXT SRV ATTR instance name' attribute. + * @see #getOS_EXT_SRV_ATTR_instance_name() + * @generated + */ + void setOS_EXT_SRV_ATTR_instance_name(String value); + + /** + * Returns the value of the 'OS EXT SRV ATTR hypervisor hostname' attribute. + * + *

+ * If the meaning of the 'OS EXT SRV ATTR hypervisor hostname' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS EXT SRV ATTR hypervisor hostname' attribute. + * @see #setOS_EXT_SRV_ATTR_hypervisor_hostname(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_SRV_ATTR_hypervisor_hostname() + * @model unique="false" + * @generated + */ + String getOS_EXT_SRV_ATTR_hypervisor_hostname(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_hypervisor_hostname OS EXT SRV ATTR hypervisor hostname}' attribute. + * + * + * @param value the new value of the 'OS EXT SRV ATTR hypervisor hostname' attribute. + * @see #getOS_EXT_SRV_ATTR_hypervisor_hostname() + * @generated + */ + void setOS_EXT_SRV_ATTR_hypervisor_hostname(String value); + + /** + * Returns the value of the 'OS SRV USG launched at' attribute. + * + *

+ * If the meaning of the 'OS SRV USG launched at' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS SRV USG launched at' attribute. + * @see #setOS_SRV_USG_launched_at(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_SRV_USG_launched_at() + * @model unique="false" + * @generated + */ + String getOS_SRV_USG_launched_at(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_launched_at OS SRV USG launched at}' attribute. + * + * + * @param value the new value of the 'OS SRV USG launched at' attribute. + * @see #getOS_SRV_USG_launched_at() + * @generated + */ + void setOS_SRV_USG_launched_at(String value); + + /** + * Returns the value of the 'OS SRV USG terminated at' attribute. + * + *

+ * If the meaning of the 'OS SRV USG terminated at' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'OS SRV USG terminated at' attribute. + * @see #setOS_SRV_USG_terminated_at(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_SRV_USG_terminated_at() + * @model unique="false" + * @generated + */ + String getOS_SRV_USG_terminated_at(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_terminated_at OS SRV USG terminated at}' attribute. + * + * + * @param value the new value of the 'OS SRV USG terminated at' attribute. + * @see #getOS_SRV_USG_terminated_at() + * @generated + */ + void setOS_SRV_USG_terminated_at(String value); + + /** + * Returns the value of the 'Image' containment reference. + * + *

+ * If the meaning of the 'Image' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Image' containment reference. + * @see #setImage(Reference) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Image() + * @model containment="true" + * @generated + */ + Reference getImage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getImage Image}' containment reference. + * + * + * @param value the new value of the 'Image' containment reference. + * @see #getImage() + * @generated + */ + void setImage(Reference value); + + /** + * Returns the value of the 'Flavor' containment reference. + * + *

+ * If the meaning of the 'Flavor' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Flavor' containment reference. + * @see #setFlavor(Reference) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Flavor() + * @model containment="true" + * @generated + */ + Reference getFlavor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getFlavor Flavor}' containment reference. + * + * + * @param value the new value of the 'Flavor' containment reference. + * @see #getFlavor() + * @generated + */ + void setFlavor(Reference value); + + /** + * Returns the value of the 'Addresses' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Addresses}. + * + *

+ * If the meaning of the 'Addresses' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Addresses' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Addresses() + * @model containment="true" + * @generated + */ + EList getAddresses(); + + /** + * Returns the value of the 'Security groups' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.SecurityGroup}. + * + *

+ * If the meaning of the 'Security groups' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Security groups' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Security_groups() + * @model containment="true" + * @generated + */ + EList getSecurity_groups(); + + /** + * Returns the value of the 'Metadata' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Metadata}. + * + *

+ * If the meaning of the 'Metadata' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Metadata' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Metadata() + * @model containment="true" + * @generated + */ + EList getMetadata(); + + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Link}. + * + *

+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + + /** + * Returns the value of the 'Fault' containment reference. + * + *

+ * If the meaning of the 'Fault' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Fault' containment reference. + * @see #setFault(Fault) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Fault() + * @model containment="true" + * @generated + */ + Fault getFault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getFault Fault}' containment reference. + * + * + * @param value the new value of the 'Fault' containment reference. + * @see #getFault() + * @generated + */ + void setFault(Fault value); + +} // Server diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Volume.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Volume.java new file mode 100644 index 0000000..0f89f5d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Volume.java @@ -0,0 +1,323 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Volume'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getDisplay_name Display name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getAttachments Attachments}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getAvailability_zone Availability zone}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getCreated_at Created at}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getVolume_type Volume type}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getMetadata Metadata}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getSize Size}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getSnapshot_id Snapshot id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.Volume#getDisplay_description Display description}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume() + * @model + * @generated + */ +public interface Volume extends NamedEntity { + /** + * Returns the value of the 'Status' attribute. + * + *

+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Display name' attribute. + * + *

+ * If the meaning of the 'Display name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Display name' attribute. + * @see #setDisplay_name(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Display_name() + * @model unique="false" + * @generated + */ + String getDisplay_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getDisplay_name Display name}' attribute. + * + * + * @param value the new value of the 'Display name' attribute. + * @see #getDisplay_name() + * @generated + */ + void setDisplay_name(String value); + + /** + * Returns the value of the 'Attachments' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.VolumeAttachment}. + * + *

+ * If the meaning of the 'Attachments' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Attachments' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Attachments() + * @model containment="true" + * @generated + */ + EList getAttachments(); + + /** + * Returns the value of the 'Availability zone' attribute. + * + *

+ * If the meaning of the 'Availability zone' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Availability zone' attribute. + * @see #setAvailability_zone(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Availability_zone() + * @model unique="false" + * @generated + */ + String getAvailability_zone(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getAvailability_zone Availability zone}' attribute. + * + * + * @param value the new value of the 'Availability zone' attribute. + * @see #getAvailability_zone() + * @generated + */ + void setAvailability_zone(String value); + + /** + * Returns the value of the 'Created at' attribute. + * + *

+ * If the meaning of the 'Created at' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Created at' attribute. + * @see #setCreated_at(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Created_at() + * @model unique="false" + * @generated + */ + String getCreated_at(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getCreated_at Created at}' attribute. + * + * + * @param value the new value of the 'Created at' attribute. + * @see #getCreated_at() + * @generated + */ + void setCreated_at(String value); + + /** + * Returns the value of the 'Volume type' attribute. + * + *

+ * If the meaning of the 'Volume type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Volume type' attribute. + * @see #setVolume_type(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Volume_type() + * @model unique="false" + * @generated + */ + String getVolume_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getVolume_type Volume type}' attribute. + * + * + * @param value the new value of the 'Volume type' attribute. + * @see #getVolume_type() + * @generated + */ + void setVolume_type(String value); + + /** + * Returns the value of the 'Metadata' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Metadata}. + * + *

+ * If the meaning of the 'Metadata' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Metadata' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Metadata() + * @model containment="true" + * @generated + */ + EList getMetadata(); + + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Size' attribute. + * + *

+ * If the meaning of the 'Size' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Size' attribute. + * @see #setSize(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Size() + * @model unique="false" + * @generated + */ + int getSize(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getSize Size}' attribute. + * + * + * @param value the new value of the 'Size' attribute. + * @see #getSize() + * @generated + */ + void setSize(int value); + + /** + * Returns the value of the 'Snapshot id' attribute. + * + *

+ * If the meaning of the 'Snapshot id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Snapshot id' attribute. + * @see #setSnapshot_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Snapshot_id() + * @model unique="false" + * @generated + */ + String getSnapshot_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getSnapshot_id Snapshot id}' attribute. + * + * + * @param value the new value of the 'Snapshot id' attribute. + * @see #getSnapshot_id() + * @generated + */ + void setSnapshot_id(String value); + + /** + * Returns the value of the 'Display description' attribute. + * + *

+ * If the meaning of the 'Display description' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Display description' attribute. + * @see #setDisplay_description(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Display_description() + * @model unique="false" + * @generated + */ + String getDisplay_description(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getDisplay_description Display description}' attribute. + * + * + * @param value the new value of the 'Display description' attribute. + * @see #getDisplay_description() + * @generated + */ + void setDisplay_description(String value); + +} // Volume diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/VolumeAttachment.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/VolumeAttachment.java new file mode 100644 index 0000000..862b337 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/VolumeAttachment.java @@ -0,0 +1,152 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Volume Attachment'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getDevice Device}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getServer_id Server id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getVolume_id Volume id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolumeAttachment() + * @model + * @generated + */ +public interface VolumeAttachment extends EObject { + /** + * Returns the value of the 'Device' attribute. + * + *

+ * If the meaning of the 'Device' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Device' attribute. + * @see #setDevice(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolumeAttachment_Device() + * @model unique="false" + * @generated + */ + String getDevice(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getDevice Device}' attribute. + * + * + * @param value the new value of the 'Device' attribute. + * @see #getDevice() + * @generated + */ + void setDevice(String value); + + /** + * Returns the value of the 'Server id' attribute. + * + *

+ * If the meaning of the 'Server id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Server id' attribute. + * @see #setServer_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolumeAttachment_Server_id() + * @model unique="false" + * @generated + */ + String getServer_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getServer_id Server id}' attribute. + * + * + * @param value the new value of the 'Server id' attribute. + * @see #getServer_id() + * @generated + */ + void setServer_id(String value); + + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolumeAttachment_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Volume id' attribute. + * + *

+ * If the meaning of the 'Volume id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Volume id' attribute. + * @see #setVolume_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolumeAttachment_Volume_id() + * @model unique="false" + * @generated + */ + String getVolume_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getVolume_id Volume id}' attribute. + * + * + * @param value the new value of the 'Volume id' attribute. + * @see #getVolume_id() + * @generated + */ + void setVolume_id(String value); + +} // VolumeAttachment diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java new file mode 100644 index 0000000..23c7319 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java @@ -0,0 +1,346 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.Address; +import org.openecomp.ncomp.openstack.compute.ComputePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Address'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl#getVersion Version}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl#getAddr Addr}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl#getOS_EXT_IPS_MAC_mac_addr OS EXT IPS MAC mac addr}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl#getOS_EXT_IPS_type OS EXT IPS type}
  • + *
+ *

+ * + * @generated + */ +public class AddressImpl extends MinimalEObjectImpl.Container implements Address { + /** + * The default value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected static final int VERSION_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected int version = VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getAddr() Addr}' attribute. + * + * + * @see #getAddr() + * @generated + * @ordered + */ + protected static final String ADDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAddr() Addr}' attribute. + * + * + * @see #getAddr() + * @generated + * @ordered + */ + protected String addr = ADDR_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_IPS_MAC_mac_addr() OS EXT IPS MAC mac addr}' attribute. + * + * + * @see #getOS_EXT_IPS_MAC_mac_addr() + * @generated + * @ordered + */ + protected static final String OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_IPS_MAC_mac_addr() OS EXT IPS MAC mac addr}' attribute. + * + * + * @see #getOS_EXT_IPS_MAC_mac_addr() + * @generated + * @ordered + */ + protected String oS_EXT_IPS_MAC_mac_addr = OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_IPS_type() OS EXT IPS type}' attribute. + * + * + * @see #getOS_EXT_IPS_type() + * @generated + * @ordered + */ + protected static final String OS_EXT_IPS_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_IPS_type() OS EXT IPS type}' attribute. + * + * + * @see #getOS_EXT_IPS_type() + * @generated + * @ordered + */ + protected String oS_EXT_IPS_type = OS_EXT_IPS_TYPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected AddressImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.ADDRESS; + } + + /** + * + * + * @generated + */ + public int getVersion() { + return version; + } + + /** + * + * + * @generated + */ + public void setVersion(int newVersion) { + int oldVersion = version; + version = newVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESS__VERSION, oldVersion, version)); + } + + /** + * + * + * @generated + */ + public String getAddr() { + return addr; + } + + /** + * + * + * @generated + */ + public void setAddr(String newAddr) { + String oldAddr = addr; + addr = newAddr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESS__ADDR, oldAddr, addr)); + } + + /** + * + * + * @generated + */ + public String getOS_EXT_IPS_MAC_mac_addr() { + return oS_EXT_IPS_MAC_mac_addr; + } + + /** + * + * + * @generated + */ + public void setOS_EXT_IPS_MAC_mac_addr(String newOS_EXT_IPS_MAC_mac_addr) { + String oldOS_EXT_IPS_MAC_mac_addr = oS_EXT_IPS_MAC_mac_addr; + oS_EXT_IPS_MAC_mac_addr = newOS_EXT_IPS_MAC_mac_addr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR, oldOS_EXT_IPS_MAC_mac_addr, oS_EXT_IPS_MAC_mac_addr)); + } + + /** + * + * + * @generated + */ + public String getOS_EXT_IPS_type() { + return oS_EXT_IPS_type; + } + + /** + * + * + * @generated + */ + public void setOS_EXT_IPS_type(String newOS_EXT_IPS_type) { + String oldOS_EXT_IPS_type = oS_EXT_IPS_type; + oS_EXT_IPS_type = newOS_EXT_IPS_type; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESS__OS_EXT_IPS_TYPE, oldOS_EXT_IPS_type, oS_EXT_IPS_type)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.ADDRESS__VERSION: + return getVersion(); + case ComputePackage.ADDRESS__ADDR: + return getAddr(); + case ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR: + return getOS_EXT_IPS_MAC_mac_addr(); + case ComputePackage.ADDRESS__OS_EXT_IPS_TYPE: + return getOS_EXT_IPS_type(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.ADDRESS__VERSION: + setVersion((Integer)newValue); + return; + case ComputePackage.ADDRESS__ADDR: + setAddr((String)newValue); + return; + case ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR: + setOS_EXT_IPS_MAC_mac_addr((String)newValue); + return; + case ComputePackage.ADDRESS__OS_EXT_IPS_TYPE: + setOS_EXT_IPS_type((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.ADDRESS__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case ComputePackage.ADDRESS__ADDR: + setAddr(ADDR_EDEFAULT); + return; + case ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR: + setOS_EXT_IPS_MAC_mac_addr(OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT); + return; + case ComputePackage.ADDRESS__OS_EXT_IPS_TYPE: + setOS_EXT_IPS_type(OS_EXT_IPS_TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.ADDRESS__VERSION: + return version != VERSION_EDEFAULT; + case ComputePackage.ADDRESS__ADDR: + return ADDR_EDEFAULT == null ? addr != null : !ADDR_EDEFAULT.equals(addr); + case ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR: + return OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT == null ? oS_EXT_IPS_MAC_mac_addr != null : !OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT.equals(oS_EXT_IPS_MAC_mac_addr); + case ComputePackage.ADDRESS__OS_EXT_IPS_TYPE: + return OS_EXT_IPS_TYPE_EDEFAULT == null ? oS_EXT_IPS_type != null : !OS_EXT_IPS_TYPE_EDEFAULT.equals(oS_EXT_IPS_type); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (version: "); + result.append(version); + result.append(", addr: "); + result.append(addr); + result.append(", OS_EXT_IPS_MAC_mac_addr: "); + result.append(oS_EXT_IPS_MAC_mac_addr); + result.append(", OS_EXT_IPS_type: "); + result.append(oS_EXT_IPS_type); + result.append(')'); + return result.toString(); + } + +} //AddressImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressesImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressesImpl.java new file mode 100644 index 0000000..246e4c1 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressesImpl.java @@ -0,0 +1,243 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.Address; +import org.openecomp.ncomp.openstack.compute.Addresses; +import org.openecomp.ncomp.openstack.compute.ComputePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Addresses'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.AddressesImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.AddressesImpl#getIps Ips}
  • + *
+ *

+ * + * @generated + */ +public class AddressesImpl extends MinimalEObjectImpl.Container implements Addresses { + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getIps() Ips}' containment reference list. + * + * + * @see #getIps() + * @generated + * @ordered + */ + protected EList
ips; + + /** + * + * + * @generated + */ + protected AddressesImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.ADDRESSES; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESSES__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public EList
getIps() { + if (ips == null) { + ips = new EObjectContainmentEList
(Address.class, this, ComputePackage.ADDRESSES__IPS); + } + return ips; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.ADDRESSES__IPS: + return ((InternalEList)getIps()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.ADDRESSES__NAME: + return getName(); + case ComputePackage.ADDRESSES__IPS: + return getIps(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.ADDRESSES__NAME: + setName((String)newValue); + return; + case ComputePackage.ADDRESSES__IPS: + getIps().clear(); + getIps().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.ADDRESSES__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.ADDRESSES__IPS: + getIps().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.ADDRESSES__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.ADDRESSES__IPS: + return ips != null && !ips.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //AddressesImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeFactoryImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeFactoryImpl.java new file mode 100644 index 0000000..e6688e6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeFactoryImpl.java @@ -0,0 +1,358 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class ComputeFactoryImpl extends EFactoryImpl implements ComputeFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static ComputeFactory init() { + try { + ComputeFactory theComputeFactory = (ComputeFactory)EPackage.Registry.INSTANCE.getEFactory(ComputePackage.eNS_URI); + if (theComputeFactory != null) { + return theComputeFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ComputeFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public ComputeFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER: return createOpenstackRequestNewServer(); + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR: return createOpenstackRequestKeyPair(); + case ComputePackage.OPENSTACK_REQUEST_FLAVOR: return createOpenstackRequestFlavor(); + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP: return createOpenstackRequestSecurityGroup(); + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION: return createOpenstackRequestServerAction(); + case ComputePackage.OPENSTACK_REQUEST_POLL: return createOpenstackRequestPoll(); + case ComputePackage.SERVER: return createServer(); + case ComputePackage.IMAGE: return createImage(); + case ComputePackage.FLAVOR: return createFlavor(); + case ComputePackage.ADDRESSES: return createAddresses(); + case ComputePackage.ADDRESS: return createAddress(); + case ComputePackage.LINK: return createLink(); + case ComputePackage.METADATA: return createMetadata(); + case ComputePackage.FAULT: return createFault(); + case ComputePackage.PERSONALITY: return createPersonality(); + case ComputePackage.REFERENCE: return createReference(); + case ComputePackage.VOLUME: return createVolume(); + case ComputePackage.VOLUME_ATTACHMENT: return createVolumeAttachment(); + case ComputePackage.FLOATING_IP: return createFloatingIp(); + case ComputePackage.SECURITY_GROUP: return createSecurityGroup(); + case ComputePackage.SECURITY_RULE: return createSecurityRule(); + case ComputePackage.SECURITY_RANGE: return createSecurityRange(); + case ComputePackage.KEY_PAIR: return createKeyPair(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public OpenstackRequestNewServer createOpenstackRequestNewServer() { + OpenstackRequestNewServerImpl openstackRequestNewServer = new OpenstackRequestNewServerImpl(); + return openstackRequestNewServer; + } + + /** + * + * + * @generated + */ + public OpenstackRequestKeyPair createOpenstackRequestKeyPair() { + OpenstackRequestKeyPairImpl openstackRequestKeyPair = new OpenstackRequestKeyPairImpl(); + return openstackRequestKeyPair; + } + + /** + * + * + * @generated + */ + public OpenstackRequestFlavor createOpenstackRequestFlavor() { + OpenstackRequestFlavorImpl openstackRequestFlavor = new OpenstackRequestFlavorImpl(); + return openstackRequestFlavor; + } + + /** + * + * + * @generated + */ + public OpenstackRequestSecurityGroup createOpenstackRequestSecurityGroup() { + OpenstackRequestSecurityGroupImpl openstackRequestSecurityGroup = new OpenstackRequestSecurityGroupImpl(); + return openstackRequestSecurityGroup; + } + + /** + * + * + * @generated + */ + public OpenstackRequestServerAction createOpenstackRequestServerAction() { + OpenstackRequestServerActionImpl openstackRequestServerAction = new OpenstackRequestServerActionImpl(); + return openstackRequestServerAction; + } + + /** + * + * + * @generated + */ + public OpenstackRequestPoll createOpenstackRequestPoll() { + OpenstackRequestPollImpl openstackRequestPoll = new OpenstackRequestPollImpl(); + return openstackRequestPoll; + } + + /** + * + * + * @generated + */ + public Server createServer() { + ServerImpl server = new ServerImpl(); + return server; + } + + /** + * + * + * @generated + */ + public Image createImage() { + ImageImpl image = new ImageImpl(); + return image; + } + + /** + * + * + * @generated + */ + public Flavor createFlavor() { + FlavorImpl flavor = new FlavorImpl(); + return flavor; + } + + /** + * + * + * @generated + */ + public Addresses createAddresses() { + AddressesImpl addresses = new AddressesImpl(); + return addresses; + } + + /** + * + * + * @generated + */ + public Address createAddress() { + AddressImpl address = new AddressImpl(); + return address; + } + + /** + * + * + * @generated + */ + public Link createLink() { + LinkImpl link = new LinkImpl(); + return link; + } + + /** + * + * + * @generated + */ + public Metadata createMetadata() { + MetadataImpl metadata = new MetadataImpl(); + return metadata; + } + + /** + * + * + * @generated + */ + public Fault createFault() { + FaultImpl fault = new FaultImpl(); + return fault; + } + + /** + * + * + * @generated + */ + public Personality createPersonality() { + PersonalityImpl personality = new PersonalityImpl(); + return personality; + } + + /** + * + * + * @generated + */ + public Reference createReference() { + ReferenceImpl reference = new ReferenceImpl(); + return reference; + } + + /** + * + * + * @generated + */ + public Volume createVolume() { + VolumeImpl volume = new VolumeImpl(); + return volume; + } + + /** + * + * + * @generated + */ + public VolumeAttachment createVolumeAttachment() { + VolumeAttachmentImpl volumeAttachment = new VolumeAttachmentImpl(); + return volumeAttachment; + } + + /** + * + * + * @generated + */ + public FloatingIp createFloatingIp() { + FloatingIpImpl floatingIp = new FloatingIpImpl(); + return floatingIp; + } + + /** + * + * + * @generated + */ + public SecurityGroup createSecurityGroup() { + SecurityGroupImpl securityGroup = new SecurityGroupImpl(); + return securityGroup; + } + + /** + * + * + * @generated + */ + public SecurityRule createSecurityRule() { + SecurityRuleImpl securityRule = new SecurityRuleImpl(); + return securityRule; + } + + /** + * + * + * @generated + */ + public SecurityRange createSecurityRange() { + SecurityRangeImpl securityRange = new SecurityRangeImpl(); + return securityRange; + } + + /** + * + * + * @generated + */ + public KeyPair createKeyPair() { + KeyPairImpl keyPair = new KeyPairImpl(); + return keyPair; + } + + /** + * + * + * @generated + */ + public ComputePackage getComputePackage() { + return (ComputePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static ComputePackage getPackage() { + return ComputePackage.eINSTANCE; + } + +} //ComputeFactoryImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputePackageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputePackageImpl.java new file mode 100644 index 0000000..53dbcb9 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputePackageImpl.java @@ -0,0 +1,2156 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.Address; +import org.openecomp.ncomp.openstack.compute.Addresses; +import org.openecomp.ncomp.openstack.compute.ComputeFactory; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.ComputeService; +import org.openecomp.ncomp.openstack.compute.Fault; +import org.openecomp.ncomp.openstack.compute.Flavor; +import org.openecomp.ncomp.openstack.compute.FloatingIp; +import org.openecomp.ncomp.openstack.compute.Image; +import org.openecomp.ncomp.openstack.compute.KeyPair; +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction; +import org.openecomp.ncomp.openstack.compute.Personality; +import org.openecomp.ncomp.openstack.compute.Reference; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.SecurityRange; +import org.openecomp.ncomp.openstack.compute.SecurityRule; +import org.openecomp.ncomp.openstack.compute.Server; +import org.openecomp.ncomp.openstack.compute.Volume; +import org.openecomp.ncomp.openstack.compute.VolumeAttachment; +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class ComputePackageImpl extends EPackageImpl implements ComputePackage { + /** + * + * + * @generated + */ + private EClass computeServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass openstackRequestNewServerEClass = null; + + /** + * + * + * @generated + */ + private EClass openstackRequestKeyPairEClass = null; + + /** + * + * + * @generated + */ + private EClass openstackRequestFlavorEClass = null; + + /** + * + * + * @generated + */ + private EClass openstackRequestSecurityGroupEClass = null; + + /** + * + * + * @generated + */ + private EClass openstackRequestServerActionEClass = null; + + /** + * + * + * @generated + */ + private EClass openstackRequestPollEClass = null; + + /** + * + * + * @generated + */ + private EClass serverEClass = null; + + /** + * + * + * @generated + */ + private EClass imageEClass = null; + + /** + * + * + * @generated + */ + private EClass flavorEClass = null; + + /** + * + * + * @generated + */ + private EClass addressesEClass = null; + + /** + * + * + * @generated + */ + private EClass addressEClass = null; + + /** + * + * + * @generated + */ + private EClass linkEClass = null; + + /** + * + * + * @generated + */ + private EClass metadataEClass = null; + + /** + * + * + * @generated + */ + private EClass faultEClass = null; + + /** + * + * + * @generated + */ + private EClass personalityEClass = null; + + /** + * + * + * @generated + */ + private EClass referenceEClass = null; + + /** + * + * + * @generated + */ + private EClass volumeEClass = null; + + /** + * + * + * @generated + */ + private EClass volumeAttachmentEClass = null; + + /** + * + * + * @generated + */ + private EClass floatingIpEClass = null; + + /** + * + * + * @generated + */ + private EClass securityGroupEClass = null; + + /** + * + * + * @generated + */ + private EClass securityRuleEClass = null; + + /** + * + * + * @generated + */ + private EClass securityRangeEClass = null; + + /** + * + * + * @generated + */ + private EClass keyPairEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#eNS_URI + * @see #init() + * @generated + */ + private ComputePackageImpl() { + super(eNS_URI, ComputeFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link ComputePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ComputePackage init() { + if (isInited) return (ComputePackage)EPackage.Registry.INSTANCE.getEPackage(ComputePackage.eNS_URI); + + // Obtain or create and register package + ComputePackageImpl theComputePackage = (ComputePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ComputePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ComputePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theComputePackage.createPackageContents(); + + // Initialize created meta-data + theComputePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theComputePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ComputePackage.eNS_URI, theComputePackage); + return theComputePackage; + } + + /** + * + * + * @generated + */ + public EClass getComputeService() { + return computeServiceEClass; + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__CreateServer__OpenstackRequestNewServer() { + return computeServiceEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__DeleteServer__String_String() { + return computeServiceEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__CreateKeyPair__OpenstackRequestKeyPair() { + return computeServiceEClass.getEOperations().get(2); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__Delete__OpenstackRequestDelete() { + return computeServiceEClass.getEOperations().get(3); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__CreateFlavor__OpenstackRequestFlavor() { + return computeServiceEClass.getEOperations().get(4); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__CreateSecurityGroup__OpenstackRequestSecurityGroup() { + return computeServiceEClass.getEOperations().get(5); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__ServerAction__OpenstackRequestServerAction() { + return computeServiceEClass.getEOperations().get(6); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__DeployVmType__String_String() { + return computeServiceEClass.getEOperations().get(7); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__UndeployVmType__String_String() { + return computeServiceEClass.getEOperations().get(8); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__DeployUser__User_String() { + return computeServiceEClass.getEOperations().get(9); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__UndeployUser__User_String() { + return computeServiceEClass.getEOperations().get(10); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestNewServer() { + return openstackRequestNewServerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Name() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Hypervisor() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_User() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Networks() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Ports() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_User_data() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_FloatingIp() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getOpenstackRequestNewServer_VmType() { + return (EReference)openstackRequestNewServerEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestKeyPair() { + return openstackRequestKeyPairEClass; + } + + /** + * + * + * @generated + */ + public EReference getOpenstackRequestKeyPair_User() { + return (EReference)openstackRequestKeyPairEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestFlavor() { + return openstackRequestFlavorEClass; + } + + /** + * + * + * @generated + */ + public EReference getOpenstackRequestFlavor_VmType() { + return (EReference)openstackRequestFlavorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestSecurityGroup() { + return openstackRequestSecurityGroupEClass; + } + + /** + * + * + * @generated + */ + public EReference getOpenstackRequestSecurityGroup_VmType() { + return (EReference)openstackRequestSecurityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestServerAction() { + return openstackRequestServerActionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestServerAction_Name() { + return (EAttribute)openstackRequestServerActionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestServerAction_Action() { + return (EAttribute)openstackRequestServerActionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestPoll() { + return openstackRequestPollEClass; + } + + /** + * + * + * @generated + */ + public EClass getServer() { + return serverEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Id() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Tenant_id() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_User_id() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Name() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Updated() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Created() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_HostId() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_AccessIPv4() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_AccessIPv6() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Status() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Config_drive() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Key_name() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Progress() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_DCF_diskConfig() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_STS_power_state() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_STS_vm_state() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_STS_task_state() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_SRV_ATTR_host() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_SRV_ATTR_instance_name() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(18); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_SRV_ATTR_hypervisor_hostname() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(19); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_SRV_USG_launched_at() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(20); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_SRV_USG_terminated_at() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(21); + } + + /** + * + * + * @generated + */ + public EReference getServer_Image() { + return (EReference)serverEClass.getEStructuralFeatures().get(22); + } + + /** + * + * + * @generated + */ + public EReference getServer_Flavor() { + return (EReference)serverEClass.getEStructuralFeatures().get(23); + } + + /** + * + * + * @generated + */ + public EReference getServer_Addresses() { + return (EReference)serverEClass.getEStructuralFeatures().get(24); + } + + /** + * + * + * @generated + */ + public EReference getServer_Security_groups() { + return (EReference)serverEClass.getEStructuralFeatures().get(25); + } + + /** + * + * + * @generated + */ + public EReference getServer_Metadata() { + return (EReference)serverEClass.getEStructuralFeatures().get(26); + } + + /** + * + * + * @generated + */ + public EReference getServer_Links() { + return (EReference)serverEClass.getEStructuralFeatures().get(27); + } + + /** + * + * + * @generated + */ + public EReference getServer_Fault() { + return (EReference)serverEClass.getEStructuralFeatures().get(28); + } + + /** + * + * + * @generated + */ + public EClass getImage() { + return imageEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Id() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Name() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Updated() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Created() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Tenant_id() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_User_id() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Status() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Progress() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_MinDisk() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_MinRam() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_OS_EXT_IMG_SIZE_size() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getImage_Server() { + return (EReference)imageEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EReference getImage_Links() { + return (EReference)imageEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EReference getImage_Metadata() { + return (EReference)imageEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EClass getFlavor() { + return flavorEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Id() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Name() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Ram() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Disk() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Vcpus() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Swap() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Rxtx_factor() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_OS_FLV_EXT_DATA_ephemeral() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_OS_FLV_DISABLED_disabled() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Os_flavor_access_is_public() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getFlavor_Links() { + return (EReference)flavorEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EClass getAddresses() { + return addressesEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAddresses_Name() { + return (EAttribute)addressesEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAddresses_Ips() { + return (EReference)addressesEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getAddress() { + return addressEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAddress_Version() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getAddress_Addr() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getAddress_OS_EXT_IPS_MAC_mac_addr() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getAddress_OS_EXT_IPS_type() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getLink() { + return linkEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Rel() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Href() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Type() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getMetadata() { + return metadataEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMetadata_Key() { + return (EAttribute)metadataEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getMetadata_Value() { + return (EAttribute)metadataEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFault() { + return faultEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFault_Message() { + return (EAttribute)faultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFault_Created() { + return (EAttribute)faultEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getFault_Code() { + return (EAttribute)faultEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getPersonality() { + return personalityEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPersonality_Path() { + return (EAttribute)personalityEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPersonality_Contents() { + return (EAttribute)personalityEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getReference() { + return referenceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getReference_Id() { + return (EAttribute)referenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getReference_Links() { + return (EReference)referenceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getVolume() { + return volumeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Status() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Display_name() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getVolume_Attachments() { + return (EReference)volumeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Availability_zone() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Created_at() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Volume_type() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getVolume_Metadata() { + return (EReference)volumeEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Id() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Size() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Snapshot_id() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Display_description() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EClass getVolumeAttachment() { + return volumeAttachmentEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVolumeAttachment_Device() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVolumeAttachment_Server_id() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getVolumeAttachment_Id() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getVolumeAttachment_Volume_id() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getFloatingIp() { + return floatingIpEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Instance_id() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Ip() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Fixed_ip() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Id() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Pool() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getSecurityGroup() { + return securityGroupEClass; + } + + /** + * + * + * @generated + */ + public EReference getSecurityGroup_Rules() { + return (EReference)securityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityGroup_Tenant_id() { + return (EAttribute)securityGroupEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityGroup_Id() { + return (EAttribute)securityGroupEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityGroup_Description() { + return (EAttribute)securityGroupEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSecurityRule() { + return securityRuleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_From_port() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSecurityRule_Group() { + return (EReference)securityRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_Ip_protocol() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_To_port() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_Parent_group_id() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSecurityRule_Ip_range() { + return (EReference)securityRuleEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_Id() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EClass getSecurityRange() { + return securityRangeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRange_Cidr() { + return (EAttribute)securityRangeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getKeyPair() { + return keyPairEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getKeyPair_Public_key() { + return (EAttribute)keyPairEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getKeyPair_Name() { + return (EAttribute)keyPairEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getKeyPair_Fingerprint() { + return (EAttribute)keyPairEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public ComputeFactory getComputeFactory() { + return (ComputeFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + computeServiceEClass = createEClass(COMPUTE_SERVICE); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DELETE_SERVER__STRING_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DELETE__OPENSTACKREQUESTDELETE); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DEPLOY_VM_TYPE__STRING_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___UNDEPLOY_VM_TYPE__STRING_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DEPLOY_USER__USER_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___UNDEPLOY_USER__USER_STRING); + + openstackRequestNewServerEClass = createEClass(OPENSTACK_REQUEST_NEW_SERVER); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__NAME); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__USER); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__NETWORKS); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__PORTS); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__USER_DATA); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP); + createEReference(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE); + + openstackRequestKeyPairEClass = createEClass(OPENSTACK_REQUEST_KEY_PAIR); + createEReference(openstackRequestKeyPairEClass, OPENSTACK_REQUEST_KEY_PAIR__USER); + + openstackRequestFlavorEClass = createEClass(OPENSTACK_REQUEST_FLAVOR); + createEReference(openstackRequestFlavorEClass, OPENSTACK_REQUEST_FLAVOR__VM_TYPE); + + openstackRequestSecurityGroupEClass = createEClass(OPENSTACK_REQUEST_SECURITY_GROUP); + createEReference(openstackRequestSecurityGroupEClass, OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE); + + openstackRequestServerActionEClass = createEClass(OPENSTACK_REQUEST_SERVER_ACTION); + createEAttribute(openstackRequestServerActionEClass, OPENSTACK_REQUEST_SERVER_ACTION__NAME); + createEAttribute(openstackRequestServerActionEClass, OPENSTACK_REQUEST_SERVER_ACTION__ACTION); + + openstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL); + + serverEClass = createEClass(SERVER); + createEAttribute(serverEClass, SERVER__ID); + createEAttribute(serverEClass, SERVER__TENANT_ID); + createEAttribute(serverEClass, SERVER__USER_ID); + createEAttribute(serverEClass, SERVER__NAME); + createEAttribute(serverEClass, SERVER__UPDATED); + createEAttribute(serverEClass, SERVER__CREATED); + createEAttribute(serverEClass, SERVER__HOST_ID); + createEAttribute(serverEClass, SERVER__ACCESS_IPV4); + createEAttribute(serverEClass, SERVER__ACCESS_IPV6); + createEAttribute(serverEClass, SERVER__STATUS); + createEAttribute(serverEClass, SERVER__CONFIG_DRIVE); + createEAttribute(serverEClass, SERVER__KEY_NAME); + createEAttribute(serverEClass, SERVER__PROGRESS); + createEAttribute(serverEClass, SERVER__OS_DCF_DISK_CONFIG); + createEAttribute(serverEClass, SERVER__OS_EXT_STS_POWER_STATE); + createEAttribute(serverEClass, SERVER__OS_EXT_STS_VM_STATE); + createEAttribute(serverEClass, SERVER__OS_EXT_STS_TASK_STATE); + createEAttribute(serverEClass, SERVER__OS_EXT_SRV_ATTR_HOST); + createEAttribute(serverEClass, SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME); + createEAttribute(serverEClass, SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME); + createEAttribute(serverEClass, SERVER__OS_SRV_USG_LAUNCHED_AT); + createEAttribute(serverEClass, SERVER__OS_SRV_USG_TERMINATED_AT); + createEReference(serverEClass, SERVER__IMAGE); + createEReference(serverEClass, SERVER__FLAVOR); + createEReference(serverEClass, SERVER__ADDRESSES); + createEReference(serverEClass, SERVER__SECURITY_GROUPS); + createEReference(serverEClass, SERVER__METADATA); + createEReference(serverEClass, SERVER__LINKS); + createEReference(serverEClass, SERVER__FAULT); + + imageEClass = createEClass(IMAGE); + createEAttribute(imageEClass, IMAGE__ID); + createEAttribute(imageEClass, IMAGE__NAME); + createEAttribute(imageEClass, IMAGE__UPDATED); + createEAttribute(imageEClass, IMAGE__CREATED); + createEAttribute(imageEClass, IMAGE__TENANT_ID); + createEAttribute(imageEClass, IMAGE__USER_ID); + createEAttribute(imageEClass, IMAGE__STATUS); + createEAttribute(imageEClass, IMAGE__PROGRESS); + createEAttribute(imageEClass, IMAGE__MIN_DISK); + createEAttribute(imageEClass, IMAGE__MIN_RAM); + createEAttribute(imageEClass, IMAGE__OS_EXT_IMG_SIZE_SIZE); + createEReference(imageEClass, IMAGE__SERVER); + createEReference(imageEClass, IMAGE__LINKS); + createEReference(imageEClass, IMAGE__METADATA); + + flavorEClass = createEClass(FLAVOR); + createEAttribute(flavorEClass, FLAVOR__ID); + createEAttribute(flavorEClass, FLAVOR__NAME); + createEAttribute(flavorEClass, FLAVOR__RAM); + createEAttribute(flavorEClass, FLAVOR__DISK); + createEAttribute(flavorEClass, FLAVOR__VCPUS); + createEAttribute(flavorEClass, FLAVOR__SWAP); + createEAttribute(flavorEClass, FLAVOR__RXTX_FACTOR); + createEAttribute(flavorEClass, FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL); + createEAttribute(flavorEClass, FLAVOR__OS_FLV_DISABLED_DISABLED); + createEAttribute(flavorEClass, FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC); + createEReference(flavorEClass, FLAVOR__LINKS); + + addressesEClass = createEClass(ADDRESSES); + createEAttribute(addressesEClass, ADDRESSES__NAME); + createEReference(addressesEClass, ADDRESSES__IPS); + + addressEClass = createEClass(ADDRESS); + createEAttribute(addressEClass, ADDRESS__VERSION); + createEAttribute(addressEClass, ADDRESS__ADDR); + createEAttribute(addressEClass, ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR); + createEAttribute(addressEClass, ADDRESS__OS_EXT_IPS_TYPE); + + linkEClass = createEClass(LINK); + createEAttribute(linkEClass, LINK__REL); + createEAttribute(linkEClass, LINK__HREF); + createEAttribute(linkEClass, LINK__TYPE); + + metadataEClass = createEClass(METADATA); + createEAttribute(metadataEClass, METADATA__KEY); + createEAttribute(metadataEClass, METADATA__VALUE); + + faultEClass = createEClass(FAULT); + createEAttribute(faultEClass, FAULT__MESSAGE); + createEAttribute(faultEClass, FAULT__CREATED); + createEAttribute(faultEClass, FAULT__CODE); + + personalityEClass = createEClass(PERSONALITY); + createEAttribute(personalityEClass, PERSONALITY__PATH); + createEAttribute(personalityEClass, PERSONALITY__CONTENTS); + + referenceEClass = createEClass(REFERENCE); + createEAttribute(referenceEClass, REFERENCE__ID); + createEReference(referenceEClass, REFERENCE__LINKS); + + volumeEClass = createEClass(VOLUME); + createEAttribute(volumeEClass, VOLUME__STATUS); + createEAttribute(volumeEClass, VOLUME__DISPLAY_NAME); + createEReference(volumeEClass, VOLUME__ATTACHMENTS); + createEAttribute(volumeEClass, VOLUME__AVAILABILITY_ZONE); + createEAttribute(volumeEClass, VOLUME__CREATED_AT); + createEAttribute(volumeEClass, VOLUME__VOLUME_TYPE); + createEReference(volumeEClass, VOLUME__METADATA); + createEAttribute(volumeEClass, VOLUME__ID); + createEAttribute(volumeEClass, VOLUME__SIZE); + createEAttribute(volumeEClass, VOLUME__SNAPSHOT_ID); + createEAttribute(volumeEClass, VOLUME__DISPLAY_DESCRIPTION); + + volumeAttachmentEClass = createEClass(VOLUME_ATTACHMENT); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__DEVICE); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__SERVER_ID); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__ID); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__VOLUME_ID); + + floatingIpEClass = createEClass(FLOATING_IP); + createEAttribute(floatingIpEClass, FLOATING_IP__INSTANCE_ID); + createEAttribute(floatingIpEClass, FLOATING_IP__IP); + createEAttribute(floatingIpEClass, FLOATING_IP__FIXED_IP); + createEAttribute(floatingIpEClass, FLOATING_IP__ID); + createEAttribute(floatingIpEClass, FLOATING_IP__POOL); + + securityGroupEClass = createEClass(SECURITY_GROUP); + createEReference(securityGroupEClass, SECURITY_GROUP__RULES); + createEAttribute(securityGroupEClass, SECURITY_GROUP__TENANT_ID); + createEAttribute(securityGroupEClass, SECURITY_GROUP__ID); + createEAttribute(securityGroupEClass, SECURITY_GROUP__DESCRIPTION); + + securityRuleEClass = createEClass(SECURITY_RULE); + createEAttribute(securityRuleEClass, SECURITY_RULE__FROM_PORT); + createEReference(securityRuleEClass, SECURITY_RULE__GROUP); + createEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL); + createEAttribute(securityRuleEClass, SECURITY_RULE__TO_PORT); + createEAttribute(securityRuleEClass, SECURITY_RULE__PARENT_GROUP_ID); + createEReference(securityRuleEClass, SECURITY_RULE__IP_RANGE); + createEAttribute(securityRuleEClass, SECURITY_RULE__ID); + + securityRangeEClass = createEClass(SECURITY_RANGE); + createEAttribute(securityRangeEClass, SECURITY_RANGE__CIDR); + + keyPairEClass = createEClass(KEY_PAIR); + createEAttribute(keyPairEClass, KEY_PAIR__PUBLIC_KEY); + createEAttribute(keyPairEClass, KEY_PAIR__NAME); + createEAttribute(keyPairEClass, KEY_PAIR__FINGERPRINT); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + openstackRequestNewServerEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestKeyPairEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestFlavorEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestSecurityGroupEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestServerActionEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestPollEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + volumeEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + securityGroupEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(computeServiceEClass, ComputeService.class, "ComputeService", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + EOperation op = initEOperation(getComputeService__CreateServer__OpenstackRequestNewServer(), null, "createServer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestNewServer(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__DeleteServer__String_String(), null, "deleteServer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__CreateKeyPair__OpenstackRequestKeyPair(), null, "createKeyPair", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestKeyPair(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__Delete__OpenstackRequestDelete(), null, "delete", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getOpenstackRequestDelete(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__CreateFlavor__OpenstackRequestFlavor(), null, "createFlavor", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestFlavor(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__CreateSecurityGroup__OpenstackRequestSecurityGroup(), null, "createSecurityGroup", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestSecurityGroup(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__ServerAction__OpenstackRequestServerAction(), null, "serverAction", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestServerAction(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__DeployVmType__String_String(), null, "deployVmType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vmTypeName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__UndeployVmType__String_String(), null, "undeployVmType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vmTypeName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__DeployUser__User_String(), null, "deployUser", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage_1.getUser(), "user", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__UndeployUser__User_String(), null, "undeployUser", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage_1.getUser(), "user", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(openstackRequestNewServerEClass, OpenstackRequestNewServer.class, "OpenstackRequestNewServer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenstackRequestNewServer_Name(), theEcorePackage.getEString(), "name", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_Hypervisor(), theEcorePackage.getEString(), "hypervisor", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_User(), theEcorePackage.getEString(), "user", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_Networks(), theEcorePackage.getEString(), "networks", null, 0, -1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_Ports(), theEcorePackage.getEString(), "ports", null, 0, -1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_User_data(), theEcorePackage.getEString(), "user_data", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_FloatingIp(), theEcorePackage.getEString(), "floatingIp", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenstackRequestNewServer_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestKeyPairEClass, OpenstackRequestKeyPair.class, "OpenstackRequestKeyPair", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenstackRequestKeyPair_User(), theCorePackage_1.getUser(), null, "user", null, 0, 1, OpenstackRequestKeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestFlavorEClass, OpenstackRequestFlavor.class, "OpenstackRequestFlavor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenstackRequestFlavor_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, OpenstackRequestFlavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestSecurityGroupEClass, OpenstackRequestSecurityGroup.class, "OpenstackRequestSecurityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenstackRequestSecurityGroup_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, OpenstackRequestSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestServerActionEClass, OpenstackRequestServerAction.class, "OpenstackRequestServerAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenstackRequestServerAction_Name(), theEcorePackage.getEString(), "name", null, 0, 1, OpenstackRequestServerAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestServerAction_Action(), theEcorePackage.getEString(), "action", null, 0, 1, OpenstackRequestServerAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestPollEClass, OpenstackRequestPoll.class, "OpenstackRequestPoll", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(serverEClass, Server.class, "Server", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getServer_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Updated(), theEcorePackage.getEString(), "updated", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Created(), theEcorePackage.getEString(), "created", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_HostId(), theEcorePackage.getEString(), "hostId", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_AccessIPv4(), theEcorePackage.getEString(), "accessIPv4", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_AccessIPv6(), theEcorePackage.getEString(), "accessIPv6", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Config_drive(), theEcorePackage.getEString(), "config_drive", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Key_name(), theEcorePackage.getEString(), "key_name", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Progress(), theEcorePackage.getEInt(), "progress", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_DCF_diskConfig(), theEcorePackage.getEString(), "OS_DCF_diskConfig", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_STS_power_state(), theEcorePackage.getEInt(), "OS_EXT_STS_power_state", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_STS_vm_state(), theEcorePackage.getEString(), "OS_EXT_STS_vm_state", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_STS_task_state(), theEcorePackage.getEString(), "OS_EXT_STS_task_state", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_SRV_ATTR_host(), theEcorePackage.getEString(), "OS_EXT_SRV_ATTR_host", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_SRV_ATTR_instance_name(), theEcorePackage.getEString(), "OS_EXT_SRV_ATTR_instance_name", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_SRV_ATTR_hypervisor_hostname(), theEcorePackage.getEString(), "OS_EXT_SRV_ATTR_hypervisor_hostname", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_SRV_USG_launched_at(), theEcorePackage.getEString(), "OS_SRV_USG_launched_at", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_SRV_USG_terminated_at(), theEcorePackage.getEString(), "OS_SRV_USG_terminated_at", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Image(), this.getReference(), null, "image", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Flavor(), this.getReference(), null, "flavor", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Addresses(), this.getAddresses(), null, "addresses", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Security_groups(), this.getSecurityGroup(), null, "security_groups", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Links(), this.getLink(), null, "links", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Fault(), this.getFault(), null, "fault", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(imageEClass, Image.class, "Image", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getImage_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Updated(), theEcorePackage.getEString(), "updated", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Created(), theEcorePackage.getEString(), "created", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Progress(), theEcorePackage.getELongObject(), "progress", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_MinDisk(), theEcorePackage.getELongObject(), "minDisk", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_MinRam(), theEcorePackage.getELongObject(), "minRam", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_OS_EXT_IMG_SIZE_size(), theEcorePackage.getELongObject(), "OS_EXT_IMG_SIZE_size", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImage_Server(), this.getReference(), null, "server", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImage_Links(), this.getLink(), null, "links", null, 0, -1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImage_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(flavorEClass, Flavor.class, "Flavor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFlavor_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Ram(), theEcorePackage.getEInt(), "ram", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Disk(), theEcorePackage.getEInt(), "disk", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Vcpus(), theEcorePackage.getEInt(), "vcpus", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Swap(), theEcorePackage.getEString(), "swap", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Rxtx_factor(), theEcorePackage.getEDouble(), "rxtx_factor", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_OS_FLV_EXT_DATA_ephemeral(), theEcorePackage.getEInt(), "OS_FLV_EXT_DATA_ephemeral", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_OS_FLV_DISABLED_disabled(), theEcorePackage.getEBoolean(), "OS_FLV_DISABLED_disabled", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Os_flavor_access_is_public(), theEcorePackage.getEBoolean(), "os_flavor_access_is_public", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFlavor_Links(), this.getLink(), null, "links", null, 0, -1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(addressesEClass, Addresses.class, "Addresses", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAddresses_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Addresses.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAddresses_Ips(), this.getAddress(), null, "ips", null, 0, -1, Addresses.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAddress_Version(), theEcorePackage.getEInt(), "version", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddress_Addr(), theEcorePackage.getEString(), "addr", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddress_OS_EXT_IPS_MAC_mac_addr(), theEcorePackage.getEString(), "OS_EXT_IPS_MAC_mac_addr", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddress_OS_EXT_IPS_type(), theEcorePackage.getEString(), "OS_EXT_IPS_type", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(linkEClass, Link.class, "Link", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLink_Rel(), theEcorePackage.getEString(), "rel", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLink_Href(), theEcorePackage.getEString(), "href", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLink_Type(), theEcorePackage.getEString(), "type", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metadataEClass, Metadata.class, "Metadata", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMetadata_Key(), theEcorePackage.getEString(), "key", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMetadata_Value(), theEcorePackage.getEString(), "value", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(faultEClass, Fault.class, "Fault", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFault_Message(), theEcorePackage.getEString(), "message", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFault_Created(), theEcorePackage.getEString(), "created", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFault_Code(), theEcorePackage.getEInt(), "code", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(personalityEClass, Personality.class, "Personality", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPersonality_Path(), theEcorePackage.getEString(), "path", null, 0, 1, Personality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPersonality_Contents(), theEcorePackage.getEString(), "contents", null, 0, 1, Personality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(referenceEClass, Reference.class, "Reference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getReference_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getReference_Links(), this.getLink(), null, "links", null, 0, -1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(volumeEClass, Volume.class, "Volume", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVolume_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Display_name(), theEcorePackage.getEString(), "display_name", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVolume_Attachments(), this.getVolumeAttachment(), null, "attachments", null, 0, -1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Availability_zone(), theEcorePackage.getEString(), "availability_zone", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Created_at(), theEcorePackage.getEString(), "created_at", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Volume_type(), theEcorePackage.getEString(), "volume_type", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVolume_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Size(), theEcorePackage.getEInt(), "size", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Snapshot_id(), theEcorePackage.getEString(), "snapshot_id", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Display_description(), theEcorePackage.getEString(), "display_description", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(volumeAttachmentEClass, VolumeAttachment.class, "VolumeAttachment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVolumeAttachment_Device(), theEcorePackage.getEString(), "device", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolumeAttachment_Server_id(), theEcorePackage.getEString(), "server_id", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolumeAttachment_Id(), theEcorePackage.getEString(), "id", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolumeAttachment_Volume_id(), theEcorePackage.getEString(), "volume_id", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(floatingIpEClass, FloatingIp.class, "FloatingIp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFloatingIp_Instance_id(), theEcorePackage.getEString(), "instance_id", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Ip(), theEcorePackage.getEString(), "ip", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Fixed_ip(), theEcorePackage.getEString(), "fixed_ip", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Id(), theEcorePackage.getEString(), "id", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Pool(), theEcorePackage.getEString(), "pool", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityGroupEClass, SecurityGroup.class, "SecurityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSecurityGroup_Rules(), this.getSecurityRule(), null, "rules", null, 0, -1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityGroup_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityGroup_Id(), theEcorePackage.getEString(), "id", null, 0, 1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityGroup_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityRuleEClass, SecurityRule.class, "SecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSecurityRule_From_port(), theEcorePackage.getEIntegerObject(), "from_port", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSecurityRule_Group(), this.getSecurityGroup(), null, "group", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Ip_protocol(), theEcorePackage.getEString(), "ip_protocol", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_To_port(), theEcorePackage.getEIntegerObject(), "to_port", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Parent_group_id(), theEcorePackage.getEString(), "parent_group_id", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSecurityRule_Ip_range(), this.getSecurityRange(), null, "ip_range", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Id(), theEcorePackage.getEString(), "id", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityRangeEClass, SecurityRange.class, "SecurityRange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSecurityRange_Cidr(), theEcorePackage.getEString(), "cidr", null, 0, 1, SecurityRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(keyPairEClass, KeyPair.class, "KeyPair", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getKeyPair_Public_key(), theEcorePackage.getEString(), "public_key", null, 0, 1, KeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getKeyPair_Name(), theEcorePackage.getEString(), "name", null, 0, 1, KeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getKeyPair_Fingerprint(), theEcorePackage.getEString(), "fingerprint", null, 0, 1, KeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //ComputePackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java new file mode 100644 index 0000000..3e3a4b4 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java @@ -0,0 +1,235 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.ComputeService; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction; +import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete; +import java.lang.reflect.InvocationTargetException; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Service'. + * + *

+ *

+ * + * @generated + */ +public abstract class ComputeServiceImpl extends MinimalEObjectImpl.Container implements ComputeService { + /** + * + * + * @generated + */ + protected ComputeServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.COMPUTE_SERVICE; + } + + /** + * + * + * @generated + */ + public void createServer(OpenstackRequestNewServer request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteServer(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createKeyPair(OpenstackRequestKeyPair request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void delete(OpenstackRequestDelete request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createFlavor(OpenstackRequestFlavor request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createSecurityGroup(OpenstackRequestSecurityGroup request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void serverAction(OpenstackRequestServerAction request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deployVmType(String vmTypeName, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void undeployVmType(String vmTypeName, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deployUser(User user, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void undeployUser(User user, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case ComputePackage.COMPUTE_SERVICE___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER: + createServer((OpenstackRequestNewServer)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___DELETE_SERVER__STRING_STRING: + deleteServer((String)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR: + createKeyPair((OpenstackRequestKeyPair)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___DELETE__OPENSTACKREQUESTDELETE: + delete((OpenstackRequestDelete)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR: + createFlavor((OpenstackRequestFlavor)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP: + createSecurityGroup((OpenstackRequestSecurityGroup)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION: + serverAction((OpenstackRequestServerAction)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___DEPLOY_VM_TYPE__STRING_STRING: + deployVmType((String)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___UNDEPLOY_VM_TYPE__STRING_STRING: + undeployVmType((String)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___DEPLOY_USER__USER_STRING: + deployUser((User)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___UNDEPLOY_USER__USER_STRING: + undeployUser((User)arguments.get(0), (String)arguments.get(1)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //ComputeServiceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java new file mode 100644 index 0000000..1946236 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Fault; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Fault'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FaultImpl#getMessage Message}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FaultImpl#getCreated Created}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FaultImpl#getCode Code}
  • + *
+ *

+ * + * @generated + */ +public class FaultImpl extends MinimalEObjectImpl.Container implements Fault { + /** + * The default value of the '{@link #getMessage() Message}' attribute. + * + * + * @see #getMessage() + * @generated + * @ordered + */ + protected static final String MESSAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMessage() Message}' attribute. + * + * + * @see #getMessage() + * @generated + * @ordered + */ + protected String message = MESSAGE_EDEFAULT; + + /** + * The default value of the '{@link #getCreated() Created}' attribute. + * + * + * @see #getCreated() + * @generated + * @ordered + */ + protected static final String CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated() Created}' attribute. + * + * + * @see #getCreated() + * @generated + * @ordered + */ + protected String created = CREATED_EDEFAULT; + + /** + * The default value of the '{@link #getCode() Code}' attribute. + * + * + * @see #getCode() + * @generated + * @ordered + */ + protected static final int CODE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getCode() Code}' attribute. + * + * + * @see #getCode() + * @generated + * @ordered + */ + protected int code = CODE_EDEFAULT; + + /** + * + * + * @generated + */ + protected FaultImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.FAULT; + } + + /** + * + * + * @generated + */ + public String getMessage() { + return message; + } + + /** + * + * + * @generated + */ + public void setMessage(String newMessage) { + String oldMessage = message; + message = newMessage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FAULT__MESSAGE, oldMessage, message)); + } + + /** + * + * + * @generated + */ + public String getCreated() { + return created; + } + + /** + * + * + * @generated + */ + public void setCreated(String newCreated) { + String oldCreated = created; + created = newCreated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FAULT__CREATED, oldCreated, created)); + } + + /** + * + * + * @generated + */ + public int getCode() { + return code; + } + + /** + * + * + * @generated + */ + public void setCode(int newCode) { + int oldCode = code; + code = newCode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FAULT__CODE, oldCode, code)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.FAULT__MESSAGE: + return getMessage(); + case ComputePackage.FAULT__CREATED: + return getCreated(); + case ComputePackage.FAULT__CODE: + return getCode(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.FAULT__MESSAGE: + setMessage((String)newValue); + return; + case ComputePackage.FAULT__CREATED: + setCreated((String)newValue); + return; + case ComputePackage.FAULT__CODE: + setCode((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.FAULT__MESSAGE: + setMessage(MESSAGE_EDEFAULT); + return; + case ComputePackage.FAULT__CREATED: + setCreated(CREATED_EDEFAULT); + return; + case ComputePackage.FAULT__CODE: + setCode(CODE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.FAULT__MESSAGE: + return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message); + case ComputePackage.FAULT__CREATED: + return CREATED_EDEFAULT == null ? created != null : !CREATED_EDEFAULT.equals(created); + case ComputePackage.FAULT__CODE: + return code != CODE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (message: "); + result.append(message); + result.append(", created: "); + result.append(created); + result.append(", code: "); + result.append(code); + result.append(')'); + return result.toString(); + } + +} //FaultImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FlavorImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FlavorImpl.java new file mode 100644 index 0000000..0df02c4 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FlavorImpl.java @@ -0,0 +1,729 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Flavor; +import org.openecomp.ncomp.openstack.compute.Link; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Flavor'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getRam Ram}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getDisk Disk}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getVcpus Vcpus}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getSwap Swap}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getRxtx_factor Rxtx factor}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getOS_FLV_EXT_DATA_ephemeral OS FLV EXT DATA ephemeral}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#isOS_FLV_DISABLED_disabled OS FLV DISABLED disabled}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#isOs_flavor_access_is_public Os flavor access is public}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getLinks Links}
  • + *
+ *

+ * + * @generated + */ +public class FlavorImpl extends MinimalEObjectImpl.Container implements Flavor { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getRam() Ram}' attribute. + * + * + * @see #getRam() + * @generated + * @ordered + */ + protected static final int RAM_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRam() Ram}' attribute. + * + * + * @see #getRam() + * @generated + * @ordered + */ + protected int ram = RAM_EDEFAULT; + + /** + * The default value of the '{@link #getDisk() Disk}' attribute. + * + * + * @see #getDisk() + * @generated + * @ordered + */ + protected static final int DISK_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getDisk() Disk}' attribute. + * + * + * @see #getDisk() + * @generated + * @ordered + */ + protected int disk = DISK_EDEFAULT; + + /** + * The default value of the '{@link #getVcpus() Vcpus}' attribute. + * + * + * @see #getVcpus() + * @generated + * @ordered + */ + protected static final int VCPUS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVcpus() Vcpus}' attribute. + * + * + * @see #getVcpus() + * @generated + * @ordered + */ + protected int vcpus = VCPUS_EDEFAULT; + + /** + * The default value of the '{@link #getSwap() Swap}' attribute. + * + * + * @see #getSwap() + * @generated + * @ordered + */ + protected static final String SWAP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSwap() Swap}' attribute. + * + * + * @see #getSwap() + * @generated + * @ordered + */ + protected String swap = SWAP_EDEFAULT; + + /** + * The default value of the '{@link #getRxtx_factor() Rxtx factor}' attribute. + * + * + * @see #getRxtx_factor() + * @generated + * @ordered + */ + protected static final double RXTX_FACTOR_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getRxtx_factor() Rxtx factor}' attribute. + * + * + * @see #getRxtx_factor() + * @generated + * @ordered + */ + protected double rxtx_factor = RXTX_FACTOR_EDEFAULT; + + /** + * The default value of the '{@link #getOS_FLV_EXT_DATA_ephemeral() OS FLV EXT DATA ephemeral}' attribute. + * + * + * @see #getOS_FLV_EXT_DATA_ephemeral() + * @generated + * @ordered + */ + protected static final int OS_FLV_EXT_DATA_EPHEMERAL_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getOS_FLV_EXT_DATA_ephemeral() OS FLV EXT DATA ephemeral}' attribute. + * + * + * @see #getOS_FLV_EXT_DATA_ephemeral() + * @generated + * @ordered + */ + protected int oS_FLV_EXT_DATA_ephemeral = OS_FLV_EXT_DATA_EPHEMERAL_EDEFAULT; + + /** + * The default value of the '{@link #isOS_FLV_DISABLED_disabled() OS FLV DISABLED disabled}' attribute. + * + * + * @see #isOS_FLV_DISABLED_disabled() + * @generated + * @ordered + */ + protected static final boolean OS_FLV_DISABLED_DISABLED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isOS_FLV_DISABLED_disabled() OS FLV DISABLED disabled}' attribute. + * + * + * @see #isOS_FLV_DISABLED_disabled() + * @generated + * @ordered + */ + protected boolean oS_FLV_DISABLED_disabled = OS_FLV_DISABLED_DISABLED_EDEFAULT; + + /** + * The default value of the '{@link #isOs_flavor_access_is_public() Os flavor access is public}' attribute. + * + * + * @see #isOs_flavor_access_is_public() + * @generated + * @ordered + */ + protected static final boolean OS_FLAVOR_ACCESS_IS_PUBLIC_EDEFAULT = false; + + /** + * The cached value of the '{@link #isOs_flavor_access_is_public() Os flavor access is public}' attribute. + * + * + * @see #isOs_flavor_access_is_public() + * @generated + * @ordered + */ + protected boolean os_flavor_access_is_public = OS_FLAVOR_ACCESS_IS_PUBLIC_EDEFAULT; + + /** + * The cached value of the '{@link #getLinks() Links}' containment reference list. + * + * + * @see #getLinks() + * @generated + * @ordered + */ + protected EList links; + + /** + * + * + * @generated + */ + protected FlavorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.FLAVOR; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public int getRam() { + return ram; + } + + /** + * + * + * @generated + */ + public void setRam(int newRam) { + int oldRam = ram; + ram = newRam; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__RAM, oldRam, ram)); + } + + /** + * + * + * @generated + */ + public int getDisk() { + return disk; + } + + /** + * + * + * @generated + */ + public void setDisk(int newDisk) { + int oldDisk = disk; + disk = newDisk; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__DISK, oldDisk, disk)); + } + + /** + * + * + * @generated + */ + public int getVcpus() { + return vcpus; + } + + /** + * + * + * @generated + */ + public void setVcpus(int newVcpus) { + int oldVcpus = vcpus; + vcpus = newVcpus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__VCPUS, oldVcpus, vcpus)); + } + + /** + * + * + * @generated + */ + public String getSwap() { + return swap; + } + + /** + * + * + * @generated + */ + public void setSwap(String newSwap) { + String oldSwap = swap; + swap = newSwap; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__SWAP, oldSwap, swap)); + } + + /** + * + * + * @generated + */ + public double getRxtx_factor() { + return rxtx_factor; + } + + /** + * + * + * @generated + */ + public void setRxtx_factor(double newRxtx_factor) { + double oldRxtx_factor = rxtx_factor; + rxtx_factor = newRxtx_factor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__RXTX_FACTOR, oldRxtx_factor, rxtx_factor)); + } + + /** + * + * + * @generated + */ + public int getOS_FLV_EXT_DATA_ephemeral() { + return oS_FLV_EXT_DATA_ephemeral; + } + + /** + * + * + * @generated + */ + public void setOS_FLV_EXT_DATA_ephemeral(int newOS_FLV_EXT_DATA_ephemeral) { + int oldOS_FLV_EXT_DATA_ephemeral = oS_FLV_EXT_DATA_ephemeral; + oS_FLV_EXT_DATA_ephemeral = newOS_FLV_EXT_DATA_ephemeral; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL, oldOS_FLV_EXT_DATA_ephemeral, oS_FLV_EXT_DATA_ephemeral)); + } + + /** + * + * + * @generated + */ + public boolean isOS_FLV_DISABLED_disabled() { + return oS_FLV_DISABLED_disabled; + } + + /** + * + * + * @generated + */ + public void setOS_FLV_DISABLED_disabled(boolean newOS_FLV_DISABLED_disabled) { + boolean oldOS_FLV_DISABLED_disabled = oS_FLV_DISABLED_disabled; + oS_FLV_DISABLED_disabled = newOS_FLV_DISABLED_disabled; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED, oldOS_FLV_DISABLED_disabled, oS_FLV_DISABLED_disabled)); + } + + /** + * + * + * @generated + */ + public boolean isOs_flavor_access_is_public() { + return os_flavor_access_is_public; + } + + /** + * + * + * @generated + */ + public void setOs_flavor_access_is_public(boolean newOs_flavor_access_is_public) { + boolean oldOs_flavor_access_is_public = os_flavor_access_is_public; + os_flavor_access_is_public = newOs_flavor_access_is_public; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC, oldOs_flavor_access_is_public, os_flavor_access_is_public)); + } + + /** + * + * + * @generated + */ + public EList getLinks() { + if (links == null) { + links = new EObjectContainmentEList(Link.class, this, ComputePackage.FLAVOR__LINKS); + } + return links; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.FLAVOR__LINKS: + return ((InternalEList)getLinks()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.FLAVOR__ID: + return getId(); + case ComputePackage.FLAVOR__NAME: + return getName(); + case ComputePackage.FLAVOR__RAM: + return getRam(); + case ComputePackage.FLAVOR__DISK: + return getDisk(); + case ComputePackage.FLAVOR__VCPUS: + return getVcpus(); + case ComputePackage.FLAVOR__SWAP: + return getSwap(); + case ComputePackage.FLAVOR__RXTX_FACTOR: + return getRxtx_factor(); + case ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL: + return getOS_FLV_EXT_DATA_ephemeral(); + case ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED: + return isOS_FLV_DISABLED_disabled(); + case ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC: + return isOs_flavor_access_is_public(); + case ComputePackage.FLAVOR__LINKS: + return getLinks(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.FLAVOR__ID: + setId((String)newValue); + return; + case ComputePackage.FLAVOR__NAME: + setName((String)newValue); + return; + case ComputePackage.FLAVOR__RAM: + setRam((Integer)newValue); + return; + case ComputePackage.FLAVOR__DISK: + setDisk((Integer)newValue); + return; + case ComputePackage.FLAVOR__VCPUS: + setVcpus((Integer)newValue); + return; + case ComputePackage.FLAVOR__SWAP: + setSwap((String)newValue); + return; + case ComputePackage.FLAVOR__RXTX_FACTOR: + setRxtx_factor((Double)newValue); + return; + case ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL: + setOS_FLV_EXT_DATA_ephemeral((Integer)newValue); + return; + case ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED: + setOS_FLV_DISABLED_disabled((Boolean)newValue); + return; + case ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC: + setOs_flavor_access_is_public((Boolean)newValue); + return; + case ComputePackage.FLAVOR__LINKS: + getLinks().clear(); + getLinks().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.FLAVOR__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.FLAVOR__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.FLAVOR__RAM: + setRam(RAM_EDEFAULT); + return; + case ComputePackage.FLAVOR__DISK: + setDisk(DISK_EDEFAULT); + return; + case ComputePackage.FLAVOR__VCPUS: + setVcpus(VCPUS_EDEFAULT); + return; + case ComputePackage.FLAVOR__SWAP: + setSwap(SWAP_EDEFAULT); + return; + case ComputePackage.FLAVOR__RXTX_FACTOR: + setRxtx_factor(RXTX_FACTOR_EDEFAULT); + return; + case ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL: + setOS_FLV_EXT_DATA_ephemeral(OS_FLV_EXT_DATA_EPHEMERAL_EDEFAULT); + return; + case ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED: + setOS_FLV_DISABLED_disabled(OS_FLV_DISABLED_DISABLED_EDEFAULT); + return; + case ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC: + setOs_flavor_access_is_public(OS_FLAVOR_ACCESS_IS_PUBLIC_EDEFAULT); + return; + case ComputePackage.FLAVOR__LINKS: + getLinks().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.FLAVOR__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.FLAVOR__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.FLAVOR__RAM: + return ram != RAM_EDEFAULT; + case ComputePackage.FLAVOR__DISK: + return disk != DISK_EDEFAULT; + case ComputePackage.FLAVOR__VCPUS: + return vcpus != VCPUS_EDEFAULT; + case ComputePackage.FLAVOR__SWAP: + return SWAP_EDEFAULT == null ? swap != null : !SWAP_EDEFAULT.equals(swap); + case ComputePackage.FLAVOR__RXTX_FACTOR: + return rxtx_factor != RXTX_FACTOR_EDEFAULT; + case ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL: + return oS_FLV_EXT_DATA_ephemeral != OS_FLV_EXT_DATA_EPHEMERAL_EDEFAULT; + case ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED: + return oS_FLV_DISABLED_disabled != OS_FLV_DISABLED_DISABLED_EDEFAULT; + case ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC: + return os_flavor_access_is_public != OS_FLAVOR_ACCESS_IS_PUBLIC_EDEFAULT; + case ComputePackage.FLAVOR__LINKS: + return links != null && !links.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", ram: "); + result.append(ram); + result.append(", disk: "); + result.append(disk); + result.append(", vcpus: "); + result.append(vcpus); + result.append(", swap: "); + result.append(swap); + result.append(", rxtx_factor: "); + result.append(rxtx_factor); + result.append(", OS_FLV_EXT_DATA_ephemeral: "); + result.append(oS_FLV_EXT_DATA_ephemeral); + result.append(", OS_FLV_DISABLED_disabled: "); + result.append(oS_FLV_DISABLED_disabled); + result.append(", os_flavor_access_is_public: "); + result.append(os_flavor_access_is_public); + result.append(')'); + return result.toString(); + } + +} //FlavorImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FloatingIpImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FloatingIpImpl.java new file mode 100644 index 0000000..89bab49 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FloatingIpImpl.java @@ -0,0 +1,400 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.FloatingIp; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Floating Ip'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getInstance_id Instance id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getIp Ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getFixed_ip Fixed ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getPool Pool}
  • + *
+ *

+ * + * @generated + */ +public class FloatingIpImpl extends MinimalEObjectImpl.Container implements FloatingIp { + /** + * The default value of the '{@link #getInstance_id() Instance id}' attribute. + * + * + * @see #getInstance_id() + * @generated + * @ordered + */ + protected static final String INSTANCE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getInstance_id() Instance id}' attribute. + * + * + * @see #getInstance_id() + * @generated + * @ordered + */ + protected String instance_id = INSTANCE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getIp() Ip}' attribute. + * + * + * @see #getIp() + * @generated + * @ordered + */ + protected static final String IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIp() Ip}' attribute. + * + * + * @see #getIp() + * @generated + * @ordered + */ + protected String ip = IP_EDEFAULT; + + /** + * The default value of the '{@link #getFixed_ip() Fixed ip}' attribute. + * + * + * @see #getFixed_ip() + * @generated + * @ordered + */ + protected static final String FIXED_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFixed_ip() Fixed ip}' attribute. + * + * + * @see #getFixed_ip() + * @generated + * @ordered + */ + protected String fixed_ip = FIXED_IP_EDEFAULT; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getPool() Pool}' attribute. + * + * + * @see #getPool() + * @generated + * @ordered + */ + protected static final String POOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPool() Pool}' attribute. + * + * + * @see #getPool() + * @generated + * @ordered + */ + protected String pool = POOL_EDEFAULT; + + /** + * + * + * @generated + */ + protected FloatingIpImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.FLOATING_IP; + } + + /** + * + * + * @generated + */ + public String getInstance_id() { + return instance_id; + } + + /** + * + * + * @generated + */ + public void setInstance_id(String newInstance_id) { + String oldInstance_id = instance_id; + instance_id = newInstance_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__INSTANCE_ID, oldInstance_id, instance_id)); + } + + /** + * + * + * @generated + */ + public String getIp() { + return ip; + } + + /** + * + * + * @generated + */ + public void setIp(String newIp) { + String oldIp = ip; + ip = newIp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__IP, oldIp, ip)); + } + + /** + * + * + * @generated + */ + public String getFixed_ip() { + return fixed_ip; + } + + /** + * + * + * @generated + */ + public void setFixed_ip(String newFixed_ip) { + String oldFixed_ip = fixed_ip; + fixed_ip = newFixed_ip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__FIXED_IP, oldFixed_ip, fixed_ip)); + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getPool() { + return pool; + } + + /** + * + * + * @generated + */ + public void setPool(String newPool) { + String oldPool = pool; + pool = newPool; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__POOL, oldPool, pool)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.FLOATING_IP__INSTANCE_ID: + return getInstance_id(); + case ComputePackage.FLOATING_IP__IP: + return getIp(); + case ComputePackage.FLOATING_IP__FIXED_IP: + return getFixed_ip(); + case ComputePackage.FLOATING_IP__ID: + return getId(); + case ComputePackage.FLOATING_IP__POOL: + return getPool(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.FLOATING_IP__INSTANCE_ID: + setInstance_id((String)newValue); + return; + case ComputePackage.FLOATING_IP__IP: + setIp((String)newValue); + return; + case ComputePackage.FLOATING_IP__FIXED_IP: + setFixed_ip((String)newValue); + return; + case ComputePackage.FLOATING_IP__ID: + setId((String)newValue); + return; + case ComputePackage.FLOATING_IP__POOL: + setPool((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.FLOATING_IP__INSTANCE_ID: + setInstance_id(INSTANCE_ID_EDEFAULT); + return; + case ComputePackage.FLOATING_IP__IP: + setIp(IP_EDEFAULT); + return; + case ComputePackage.FLOATING_IP__FIXED_IP: + setFixed_ip(FIXED_IP_EDEFAULT); + return; + case ComputePackage.FLOATING_IP__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.FLOATING_IP__POOL: + setPool(POOL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.FLOATING_IP__INSTANCE_ID: + return INSTANCE_ID_EDEFAULT == null ? instance_id != null : !INSTANCE_ID_EDEFAULT.equals(instance_id); + case ComputePackage.FLOATING_IP__IP: + return IP_EDEFAULT == null ? ip != null : !IP_EDEFAULT.equals(ip); + case ComputePackage.FLOATING_IP__FIXED_IP: + return FIXED_IP_EDEFAULT == null ? fixed_ip != null : !FIXED_IP_EDEFAULT.equals(fixed_ip); + case ComputePackage.FLOATING_IP__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.FLOATING_IP__POOL: + return POOL_EDEFAULT == null ? pool != null : !POOL_EDEFAULT.equals(pool); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (instance_id: "); + result.append(instance_id); + result.append(", ip: "); + result.append(ip); + result.append(", fixed_ip: "); + result.append(fixed_ip); + result.append(", id: "); + result.append(id); + result.append(", pool: "); + result.append(pool); + result.append(')'); + return result.toString(); + } + +} //FloatingIpImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ImageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ImageImpl.java new file mode 100644 index 0000000..b873aa6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ImageImpl.java @@ -0,0 +1,887 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Image; +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import org.openecomp.ncomp.openstack.compute.Reference; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Image'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getUpdated Updated}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getCreated Created}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getProgress Progress}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getMinDisk Min Disk}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getMinRam Min Ram}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getOS_EXT_IMG_SIZE_size OS EXT IMG SIZE size}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getServer Server}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getLinks Links}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getMetadata Metadata}
  • + *
+ *

+ * + * @generated + */ +public class ImageImpl extends MinimalEObjectImpl.Container implements Image { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getUpdated() Updated}' attribute. + * + * + * @see #getUpdated() + * @generated + * @ordered + */ + protected static final String UPDATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUpdated() Updated}' attribute. + * + * + * @see #getUpdated() + * @generated + * @ordered + */ + protected String updated = UPDATED_EDEFAULT; + + /** + * The default value of the '{@link #getCreated() Created}' attribute. + * + * + * @see #getCreated() + * @generated + * @ordered + */ + protected static final String CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated() Created}' attribute. + * + * + * @see #getCreated() + * @generated + * @ordered + */ + protected String created = CREATED_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected static final String USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected String user_id = USER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getProgress() Progress}' attribute. + * + * + * @see #getProgress() + * @generated + * @ordered + */ + protected static final Long PROGRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProgress() Progress}' attribute. + * + * + * @see #getProgress() + * @generated + * @ordered + */ + protected Long progress = PROGRESS_EDEFAULT; + + /** + * The default value of the '{@link #getMinDisk() Min Disk}' attribute. + * + * + * @see #getMinDisk() + * @generated + * @ordered + */ + protected static final Long MIN_DISK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMinDisk() Min Disk}' attribute. + * + * + * @see #getMinDisk() + * @generated + * @ordered + */ + protected Long minDisk = MIN_DISK_EDEFAULT; + + /** + * The default value of the '{@link #getMinRam() Min Ram}' attribute. + * + * + * @see #getMinRam() + * @generated + * @ordered + */ + protected static final Long MIN_RAM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMinRam() Min Ram}' attribute. + * + * + * @see #getMinRam() + * @generated + * @ordered + */ + protected Long minRam = MIN_RAM_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_IMG_SIZE_size() OS EXT IMG SIZE size}' attribute. + * + * + * @see #getOS_EXT_IMG_SIZE_size() + * @generated + * @ordered + */ + protected static final Long OS_EXT_IMG_SIZE_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_IMG_SIZE_size() OS EXT IMG SIZE size}' attribute. + * + * + * @see #getOS_EXT_IMG_SIZE_size() + * @generated + * @ordered + */ + protected Long oS_EXT_IMG_SIZE_size = OS_EXT_IMG_SIZE_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getServer() Server}' containment reference. + * + * + * @see #getServer() + * @generated + * @ordered + */ + protected Reference server; + + /** + * The cached value of the '{@link #getLinks() Links}' containment reference list. + * + * + * @see #getLinks() + * @generated + * @ordered + */ + protected EList links; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' containment reference list. + * + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * + * + * @generated + */ + protected ImageImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.IMAGE; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getUpdated() { + return updated; + } + + /** + * + * + * @generated + */ + public void setUpdated(String newUpdated) { + String oldUpdated = updated; + updated = newUpdated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__UPDATED, oldUpdated, updated)); + } + + /** + * + * + * @generated + */ + public String getCreated() { + return created; + } + + /** + * + * + * @generated + */ + public void setCreated(String newCreated) { + String oldCreated = created; + created = newCreated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__CREATED, oldCreated, created)); + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + public String getUser_id() { + return user_id; + } + + /** + * + * + * @generated + */ + public void setUser_id(String newUser_id) { + String oldUser_id = user_id; + user_id = newUser_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__USER_ID, oldUser_id, user_id)); + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__STATUS, oldStatus, status)); + } + + /** + * + * + * @generated + */ + public Long getProgress() { + return progress; + } + + /** + * + * + * @generated + */ + public void setProgress(Long newProgress) { + Long oldProgress = progress; + progress = newProgress; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__PROGRESS, oldProgress, progress)); + } + + /** + * + * + * @generated + */ + public Long getMinDisk() { + return minDisk; + } + + /** + * + * + * @generated + */ + public void setMinDisk(Long newMinDisk) { + Long oldMinDisk = minDisk; + minDisk = newMinDisk; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__MIN_DISK, oldMinDisk, minDisk)); + } + + /** + * + * + * @generated + */ + public Long getMinRam() { + return minRam; + } + + /** + * + * + * @generated + */ + public void setMinRam(Long newMinRam) { + Long oldMinRam = minRam; + minRam = newMinRam; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__MIN_RAM, oldMinRam, minRam)); + } + + /** + * + * + * @generated + */ + public Long getOS_EXT_IMG_SIZE_size() { + return oS_EXT_IMG_SIZE_size; + } + + /** + * + * + * @generated + */ + public void setOS_EXT_IMG_SIZE_size(Long newOS_EXT_IMG_SIZE_size) { + Long oldOS_EXT_IMG_SIZE_size = oS_EXT_IMG_SIZE_size; + oS_EXT_IMG_SIZE_size = newOS_EXT_IMG_SIZE_size; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE, oldOS_EXT_IMG_SIZE_size, oS_EXT_IMG_SIZE_size)); + } + + /** + * + * + * @generated + */ + public Reference getServer() { + return server; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetServer(Reference newServer, NotificationChain msgs) { + Reference oldServer = server; + server = newServer; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__SERVER, oldServer, newServer); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setServer(Reference newServer) { + if (newServer != server) { + NotificationChain msgs = null; + if (server != null) + msgs = ((InternalEObject)server).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.IMAGE__SERVER, null, msgs); + if (newServer != null) + msgs = ((InternalEObject)newServer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.IMAGE__SERVER, null, msgs); + msgs = basicSetServer(newServer, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__SERVER, newServer, newServer)); + } + + /** + * + * + * @generated + */ + public EList getLinks() { + if (links == null) { + links = new EObjectContainmentEList(Link.class, this, ComputePackage.IMAGE__LINKS); + } + return links; + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectContainmentEList(Metadata.class, this, ComputePackage.IMAGE__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.IMAGE__SERVER: + return basicSetServer(null, msgs); + case ComputePackage.IMAGE__LINKS: + return ((InternalEList)getLinks()).basicRemove(otherEnd, msgs); + case ComputePackage.IMAGE__METADATA: + return ((InternalEList)getMetadata()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.IMAGE__ID: + return getId(); + case ComputePackage.IMAGE__NAME: + return getName(); + case ComputePackage.IMAGE__UPDATED: + return getUpdated(); + case ComputePackage.IMAGE__CREATED: + return getCreated(); + case ComputePackage.IMAGE__TENANT_ID: + return getTenant_id(); + case ComputePackage.IMAGE__USER_ID: + return getUser_id(); + case ComputePackage.IMAGE__STATUS: + return getStatus(); + case ComputePackage.IMAGE__PROGRESS: + return getProgress(); + case ComputePackage.IMAGE__MIN_DISK: + return getMinDisk(); + case ComputePackage.IMAGE__MIN_RAM: + return getMinRam(); + case ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE: + return getOS_EXT_IMG_SIZE_size(); + case ComputePackage.IMAGE__SERVER: + return getServer(); + case ComputePackage.IMAGE__LINKS: + return getLinks(); + case ComputePackage.IMAGE__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.IMAGE__ID: + setId((String)newValue); + return; + case ComputePackage.IMAGE__NAME: + setName((String)newValue); + return; + case ComputePackage.IMAGE__UPDATED: + setUpdated((String)newValue); + return; + case ComputePackage.IMAGE__CREATED: + setCreated((String)newValue); + return; + case ComputePackage.IMAGE__TENANT_ID: + setTenant_id((String)newValue); + return; + case ComputePackage.IMAGE__USER_ID: + setUser_id((String)newValue); + return; + case ComputePackage.IMAGE__STATUS: + setStatus((String)newValue); + return; + case ComputePackage.IMAGE__PROGRESS: + setProgress((Long)newValue); + return; + case ComputePackage.IMAGE__MIN_DISK: + setMinDisk((Long)newValue); + return; + case ComputePackage.IMAGE__MIN_RAM: + setMinRam((Long)newValue); + return; + case ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE: + setOS_EXT_IMG_SIZE_size((Long)newValue); + return; + case ComputePackage.IMAGE__SERVER: + setServer((Reference)newValue); + return; + case ComputePackage.IMAGE__LINKS: + getLinks().clear(); + getLinks().addAll((Collection)newValue); + return; + case ComputePackage.IMAGE__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.IMAGE__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.IMAGE__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.IMAGE__UPDATED: + setUpdated(UPDATED_EDEFAULT); + return; + case ComputePackage.IMAGE__CREATED: + setCreated(CREATED_EDEFAULT); + return; + case ComputePackage.IMAGE__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + case ComputePackage.IMAGE__USER_ID: + setUser_id(USER_ID_EDEFAULT); + return; + case ComputePackage.IMAGE__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case ComputePackage.IMAGE__PROGRESS: + setProgress(PROGRESS_EDEFAULT); + return; + case ComputePackage.IMAGE__MIN_DISK: + setMinDisk(MIN_DISK_EDEFAULT); + return; + case ComputePackage.IMAGE__MIN_RAM: + setMinRam(MIN_RAM_EDEFAULT); + return; + case ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE: + setOS_EXT_IMG_SIZE_size(OS_EXT_IMG_SIZE_SIZE_EDEFAULT); + return; + case ComputePackage.IMAGE__SERVER: + setServer((Reference)null); + return; + case ComputePackage.IMAGE__LINKS: + getLinks().clear(); + return; + case ComputePackage.IMAGE__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.IMAGE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.IMAGE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.IMAGE__UPDATED: + return UPDATED_EDEFAULT == null ? updated != null : !UPDATED_EDEFAULT.equals(updated); + case ComputePackage.IMAGE__CREATED: + return CREATED_EDEFAULT == null ? created != null : !CREATED_EDEFAULT.equals(created); + case ComputePackage.IMAGE__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + case ComputePackage.IMAGE__USER_ID: + return USER_ID_EDEFAULT == null ? user_id != null : !USER_ID_EDEFAULT.equals(user_id); + case ComputePackage.IMAGE__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case ComputePackage.IMAGE__PROGRESS: + return PROGRESS_EDEFAULT == null ? progress != null : !PROGRESS_EDEFAULT.equals(progress); + case ComputePackage.IMAGE__MIN_DISK: + return MIN_DISK_EDEFAULT == null ? minDisk != null : !MIN_DISK_EDEFAULT.equals(minDisk); + case ComputePackage.IMAGE__MIN_RAM: + return MIN_RAM_EDEFAULT == null ? minRam != null : !MIN_RAM_EDEFAULT.equals(minRam); + case ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE: + return OS_EXT_IMG_SIZE_SIZE_EDEFAULT == null ? oS_EXT_IMG_SIZE_size != null : !OS_EXT_IMG_SIZE_SIZE_EDEFAULT.equals(oS_EXT_IMG_SIZE_size); + case ComputePackage.IMAGE__SERVER: + return server != null; + case ComputePackage.IMAGE__LINKS: + return links != null && !links.isEmpty(); + case ComputePackage.IMAGE__METADATA: + return metadata != null && !metadata.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", updated: "); + result.append(updated); + result.append(", created: "); + result.append(created); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(", user_id: "); + result.append(user_id); + result.append(", status: "); + result.append(status); + result.append(", progress: "); + result.append(progress); + result.append(", minDisk: "); + result.append(minDisk); + result.append(", minRam: "); + result.append(minRam); + result.append(", OS_EXT_IMG_SIZE_size: "); + result.append(oS_EXT_IMG_SIZE_size); + result.append(')'); + return result.toString(); + } + +} //ImageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/KeyPairImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/KeyPairImpl.java new file mode 100644 index 0000000..dcb166c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/KeyPairImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.KeyPair; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Key Pair'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl#getPublic_key Public key}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl#getFingerprint Fingerprint}
  • + *
+ *

+ * + * @generated + */ +public class KeyPairImpl extends MinimalEObjectImpl.Container implements KeyPair { + /** + * The default value of the '{@link #getPublic_key() Public key}' attribute. + * + * + * @see #getPublic_key() + * @generated + * @ordered + */ + protected static final String PUBLIC_KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublic_key() Public key}' attribute. + * + * + * @see #getPublic_key() + * @generated + * @ordered + */ + protected String public_key = PUBLIC_KEY_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getFingerprint() Fingerprint}' attribute. + * + * + * @see #getFingerprint() + * @generated + * @ordered + */ + protected static final String FINGERPRINT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFingerprint() Fingerprint}' attribute. + * + * + * @see #getFingerprint() + * @generated + * @ordered + */ + protected String fingerprint = FINGERPRINT_EDEFAULT; + + /** + * + * + * @generated + */ + protected KeyPairImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.KEY_PAIR; + } + + /** + * + * + * @generated + */ + public String getPublic_key() { + return public_key; + } + + /** + * + * + * @generated + */ + public void setPublic_key(String newPublic_key) { + String oldPublic_key = public_key; + public_key = newPublic_key; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.KEY_PAIR__PUBLIC_KEY, oldPublic_key, public_key)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.KEY_PAIR__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getFingerprint() { + return fingerprint; + } + + /** + * + * + * @generated + */ + public void setFingerprint(String newFingerprint) { + String oldFingerprint = fingerprint; + fingerprint = newFingerprint; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.KEY_PAIR__FINGERPRINT, oldFingerprint, fingerprint)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.KEY_PAIR__PUBLIC_KEY: + return getPublic_key(); + case ComputePackage.KEY_PAIR__NAME: + return getName(); + case ComputePackage.KEY_PAIR__FINGERPRINT: + return getFingerprint(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.KEY_PAIR__PUBLIC_KEY: + setPublic_key((String)newValue); + return; + case ComputePackage.KEY_PAIR__NAME: + setName((String)newValue); + return; + case ComputePackage.KEY_PAIR__FINGERPRINT: + setFingerprint((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.KEY_PAIR__PUBLIC_KEY: + setPublic_key(PUBLIC_KEY_EDEFAULT); + return; + case ComputePackage.KEY_PAIR__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.KEY_PAIR__FINGERPRINT: + setFingerprint(FINGERPRINT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.KEY_PAIR__PUBLIC_KEY: + return PUBLIC_KEY_EDEFAULT == null ? public_key != null : !PUBLIC_KEY_EDEFAULT.equals(public_key); + case ComputePackage.KEY_PAIR__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.KEY_PAIR__FINGERPRINT: + return FINGERPRINT_EDEFAULT == null ? fingerprint != null : !FINGERPRINT_EDEFAULT.equals(fingerprint); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (public_key: "); + result.append(public_key); + result.append(", name: "); + result.append(name); + result.append(", fingerprint: "); + result.append(fingerprint); + result.append(')'); + return result.toString(); + } + +} //KeyPairImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/LinkImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/LinkImpl.java new file mode 100644 index 0000000..9b7c106 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/LinkImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Link; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Link'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.LinkImpl#getRel Rel}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.LinkImpl#getHref Href}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.LinkImpl#getType Type}
  • + *
+ *

+ * + * @generated + */ +public class LinkImpl extends MinimalEObjectImpl.Container implements Link { + /** + * The default value of the '{@link #getRel() Rel}' attribute. + * + * + * @see #getRel() + * @generated + * @ordered + */ + protected static final String REL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRel() Rel}' attribute. + * + * + * @see #getRel() + * @generated + * @ordered + */ + protected String rel = REL_EDEFAULT; + + /** + * The default value of the '{@link #getHref() Href}' attribute. + * + * + * @see #getHref() + * @generated + * @ordered + */ + protected static final String HREF_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHref() Href}' attribute. + * + * + * @see #getHref() + * @generated + * @ordered + */ + protected String href = HREF_EDEFAULT; + + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected LinkImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.LINK; + } + + /** + * + * + * @generated + */ + public String getRel() { + return rel; + } + + /** + * + * + * @generated + */ + public void setRel(String newRel) { + String oldRel = rel; + rel = newRel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.LINK__REL, oldRel, rel)); + } + + /** + * + * + * @generated + */ + public String getHref() { + return href; + } + + /** + * + * + * @generated + */ + public void setHref(String newHref) { + String oldHref = href; + href = newHref; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.LINK__HREF, oldHref, href)); + } + + /** + * + * + * @generated + */ + public String getType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.LINK__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.LINK__REL: + return getRel(); + case ComputePackage.LINK__HREF: + return getHref(); + case ComputePackage.LINK__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.LINK__REL: + setRel((String)newValue); + return; + case ComputePackage.LINK__HREF: + setHref((String)newValue); + return; + case ComputePackage.LINK__TYPE: + setType((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.LINK__REL: + setRel(REL_EDEFAULT); + return; + case ComputePackage.LINK__HREF: + setHref(HREF_EDEFAULT); + return; + case ComputePackage.LINK__TYPE: + setType(TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.LINK__REL: + return REL_EDEFAULT == null ? rel != null : !REL_EDEFAULT.equals(rel); + case ComputePackage.LINK__HREF: + return HREF_EDEFAULT == null ? href != null : !HREF_EDEFAULT.equals(href); + case ComputePackage.LINK__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (rel: "); + result.append(rel); + result.append(", href: "); + result.append(href); + result.append(", type: "); + result.append(type); + result.append(')'); + return result.toString(); + } + +} //LinkImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/MetadataImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/MetadataImpl.java new file mode 100644 index 0000000..b49d692 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/MetadataImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Metadata; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Metadata'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.MetadataImpl#getKey Key}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.MetadataImpl#getValue Value}
  • + *
+ *

+ * + * @generated + */ +public class MetadataImpl extends MinimalEObjectImpl.Container implements Metadata { + /** + * The default value of the '{@link #getKey() Key}' attribute. + * + * + * @see #getKey() + * @generated + * @ordered + */ + protected static final String KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKey() Key}' attribute. + * + * + * @see #getKey() + * @generated + * @ordered + */ + protected String key = KEY_EDEFAULT; + + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected MetadataImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.METADATA; + } + + /** + * + * + * @generated + */ + public String getKey() { + return key; + } + + /** + * + * + * @generated + */ + public void setKey(String newKey) { + String oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.METADATA__KEY, oldKey, key)); + } + + /** + * + * + * @generated + */ + public String getValue() { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.METADATA__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.METADATA__KEY: + return getKey(); + case ComputePackage.METADATA__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.METADATA__KEY: + setKey((String)newValue); + return; + case ComputePackage.METADATA__VALUE: + setValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.METADATA__KEY: + setKey(KEY_EDEFAULT); + return; + case ComputePackage.METADATA__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.METADATA__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case ComputePackage.METADATA__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (key: "); + result.append(key); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //MetadataImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestFlavorImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestFlavorImpl.java new file mode 100644 index 0000000..8df633f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestFlavorImpl.java @@ -0,0 +1,199 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor; + +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Openstack Request Flavor'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestFlavorImpl#getVmType Vm Type}
  • + *
+ *

+ * + * @generated + */ +public class OpenstackRequestFlavorImpl extends OpenStackRequestImpl implements OpenstackRequestFlavor { + /** + * The cached value of the '{@link #getVmType() Vm Type}' containment reference. + * + * + * @see #getVmType() + * @generated + * @ordered + */ + protected VirtualMachineType vmType; + + /** + * + * + * @generated + */ + protected OpenstackRequestFlavorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_FLAVOR; + } + + /** + * + * + * @generated + */ + public VirtualMachineType getVmType() { + return vmType; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetVmType(VirtualMachineType newVmType, NotificationChain msgs) { + VirtualMachineType oldVmType = vmType; + vmType = newVmType; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE, oldVmType, newVmType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setVmType(VirtualMachineType newVmType) { + if (newVmType != vmType) { + NotificationChain msgs = null; + if (vmType != null) + msgs = ((InternalEObject)vmType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE, null, msgs); + if (newVmType != null) + msgs = ((InternalEObject)newVmType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE, null, msgs); + msgs = basicSetVmType(newVmType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE, newVmType, newVmType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + return basicSetVmType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + return getVmType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + setVmType((VirtualMachineType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + setVmType((VirtualMachineType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + return vmType != null; + } + return super.eIsSet(featureID); + } + +} //OpenstackRequestFlavorImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestKeyPairImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestKeyPairImpl.java new file mode 100644 index 0000000..898ea93 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestKeyPairImpl.java @@ -0,0 +1,194 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair; +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Openstack Request Key Pair'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestKeyPairImpl#getUser User}
  • + *
+ *

+ * + * @generated + */ +public class OpenstackRequestKeyPairImpl extends OpenStackRequestImpl implements OpenstackRequestKeyPair { + /** + * The cached value of the '{@link #getUser() User}' containment reference. + * + * + * @see #getUser() + * @generated + * @ordered + */ + protected User user; + + /** + * + * + * @generated + */ + protected OpenstackRequestKeyPairImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_KEY_PAIR; + } + + /** + * + * + * @generated + */ + public User getUser() { + return user; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetUser(User newUser, NotificationChain msgs) { + User oldUser = user; + user = newUser; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER, oldUser, newUser); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setUser(User newUser) { + if (newUser != user) { + NotificationChain msgs = null; + if (user != null) + msgs = ((InternalEObject)user).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER, null, msgs); + if (newUser != null) + msgs = ((InternalEObject)newUser).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER, null, msgs); + msgs = basicSetUser(newUser, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER, newUser, newUser)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + return basicSetUser(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + return getUser(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + setUser((User)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + setUser((User)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + return user != null; + } + return super.eIsSet(featureID); + } + +} //OpenstackRequestKeyPairImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestNewServerImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestNewServerImpl.java new file mode 100644 index 0000000..cc7aa34 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestNewServerImpl.java @@ -0,0 +1,562 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer; + +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Openstack Request New Server'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getHypervisor Hypervisor}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getUser User}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getNetworks Networks}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getPorts Ports}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getUser_data User data}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getFloatingIp Floating Ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getVmType Vm Type}
  • + *
+ *

+ * + * @generated + */ +public class OpenstackRequestNewServerImpl extends OpenStackRequestImpl implements OpenstackRequestNewServer { + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getHypervisor() Hypervisor}' attribute. + * + * + * @see #getHypervisor() + * @generated + * @ordered + */ + protected static final String HYPERVISOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHypervisor() Hypervisor}' attribute. + * + * + * @see #getHypervisor() + * @generated + * @ordered + */ + protected String hypervisor = HYPERVISOR_EDEFAULT; + + /** + * The default value of the '{@link #getUser() User}' attribute. + * + * + * @see #getUser() + * @generated + * @ordered + */ + protected static final String USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser() User}' attribute. + * + * + * @see #getUser() + * @generated + * @ordered + */ + protected String user = USER_EDEFAULT; + + /** + * The cached value of the '{@link #getNetworks() Networks}' attribute list. + * + * + * @see #getNetworks() + * @generated + * @ordered + */ + protected EList networks; + + /** + * The cached value of the '{@link #getPorts() Ports}' attribute list. + * + * + * @see #getPorts() + * @generated + * @ordered + */ + protected EList ports; + + /** + * The default value of the '{@link #getUser_data() User data}' attribute. + * + * + * @see #getUser_data() + * @generated + * @ordered + */ + protected static final String USER_DATA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser_data() User data}' attribute. + * + * + * @see #getUser_data() + * @generated + * @ordered + */ + protected String user_data = USER_DATA_EDEFAULT; + + /** + * The default value of the '{@link #getFloatingIp() Floating Ip}' attribute. + * + * + * @see #getFloatingIp() + * @generated + * @ordered + */ + protected static final String FLOATING_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFloatingIp() Floating Ip}' attribute. + * + * + * @see #getFloatingIp() + * @generated + * @ordered + */ + protected String floatingIp = FLOATING_IP_EDEFAULT; + + /** + * The cached value of the '{@link #getVmType() Vm Type}' containment reference. + * + * + * @see #getVmType() + * @generated + * @ordered + */ + protected VirtualMachineType vmType; + + /** + * + * + * @generated + */ + protected OpenstackRequestNewServerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_NEW_SERVER; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getHypervisor() { + return hypervisor; + } + + /** + * + * + * @generated + */ + public void setHypervisor(String newHypervisor) { + String oldHypervisor = hypervisor; + hypervisor = newHypervisor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR, oldHypervisor, hypervisor)); + } + + /** + * + * + * @generated + */ + public String getUser() { + return user; + } + + /** + * + * + * @generated + */ + public void setUser(String newUser) { + String oldUser = user; + user = newUser; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER, oldUser, user)); + } + + /** + * + * + * @generated + */ + public EList getNetworks() { + if (networks == null) { + networks = new EDataTypeEList(String.class, this, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS); + } + return networks; + } + + /** + * + * + * @generated + */ + public EList getPorts() { + if (ports == null) { + ports = new EDataTypeEList(String.class, this, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS); + } + return ports; + } + + /** + * + * + * @generated + */ + public String getUser_data() { + return user_data; + } + + /** + * + * + * @generated + */ + public void setUser_data(String newUser_data) { + String oldUser_data = user_data; + user_data = newUser_data; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA, oldUser_data, user_data)); + } + + /** + * + * + * @generated + */ + public String getFloatingIp() { + return floatingIp; + } + + /** + * + * + * @generated + */ + public void setFloatingIp(String newFloatingIp) { + String oldFloatingIp = floatingIp; + floatingIp = newFloatingIp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP, oldFloatingIp, floatingIp)); + } + + /** + * + * + * @generated + */ + public VirtualMachineType getVmType() { + return vmType; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetVmType(VirtualMachineType newVmType, NotificationChain msgs) { + VirtualMachineType oldVmType = vmType; + vmType = newVmType; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE, oldVmType, newVmType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setVmType(VirtualMachineType newVmType) { + if (newVmType != vmType) { + NotificationChain msgs = null; + if (vmType != null) + msgs = ((InternalEObject)vmType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE, null, msgs); + if (newVmType != null) + msgs = ((InternalEObject)newVmType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE, null, msgs); + msgs = basicSetVmType(newVmType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE, newVmType, newVmType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + return basicSetVmType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME: + return getName(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR: + return getHypervisor(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER: + return getUser(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS: + return getNetworks(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS: + return getPorts(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA: + return getUser_data(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP: + return getFloatingIp(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + return getVmType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME: + setName((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR: + setHypervisor((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER: + setUser((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS: + getNetworks().clear(); + getNetworks().addAll((Collection)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS: + getPorts().clear(); + getPorts().addAll((Collection)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA: + setUser_data((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP: + setFloatingIp((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + setVmType((VirtualMachineType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR: + setHypervisor(HYPERVISOR_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER: + setUser(USER_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS: + getNetworks().clear(); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS: + getPorts().clear(); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA: + setUser_data(USER_DATA_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP: + setFloatingIp(FLOATING_IP_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + setVmType((VirtualMachineType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR: + return HYPERVISOR_EDEFAULT == null ? hypervisor != null : !HYPERVISOR_EDEFAULT.equals(hypervisor); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER: + return USER_EDEFAULT == null ? user != null : !USER_EDEFAULT.equals(user); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS: + return networks != null && !networks.isEmpty(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS: + return ports != null && !ports.isEmpty(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA: + return USER_DATA_EDEFAULT == null ? user_data != null : !USER_DATA_EDEFAULT.equals(user_data); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP: + return FLOATING_IP_EDEFAULT == null ? floatingIp != null : !FLOATING_IP_EDEFAULT.equals(floatingIp); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + return vmType != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", hypervisor: "); + result.append(hypervisor); + result.append(", user: "); + result.append(user); + result.append(", networks: "); + result.append(networks); + result.append(", ports: "); + result.append(ports); + result.append(", user_data: "); + result.append(user_data); + result.append(", floatingIp: "); + result.append(floatingIp); + result.append(')'); + return result.toString(); + } + +} //OpenstackRequestNewServerImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestPollImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestPollImpl.java new file mode 100644 index 0000000..3d7787d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestPollImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Openstack Request Poll'. + * + *

+ *

+ * + * @generated + */ +public class OpenstackRequestPollImpl extends OpenStackRequestImpl implements OpenstackRequestPoll { + /** + * + * + * @generated + */ + protected OpenstackRequestPollImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_POLL; + } + +} //OpenstackRequestPollImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java new file mode 100644 index 0000000..4e0ba54 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java @@ -0,0 +1,199 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; + +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Openstack Request Security Group'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestSecurityGroupImpl#getVmType Vm Type}
  • + *
+ *

+ * + * @generated + */ +public class OpenstackRequestSecurityGroupImpl extends OpenStackRequestImpl implements OpenstackRequestSecurityGroup { + /** + * The cached value of the '{@link #getVmType() Vm Type}' containment reference. + * + * + * @see #getVmType() + * @generated + * @ordered + */ + protected VirtualMachineType vmType; + + /** + * + * + * @generated + */ + protected OpenstackRequestSecurityGroupImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_SECURITY_GROUP; + } + + /** + * + * + * @generated + */ + public VirtualMachineType getVmType() { + return vmType; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetVmType(VirtualMachineType newVmType, NotificationChain msgs) { + VirtualMachineType oldVmType = vmType; + vmType = newVmType; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE, oldVmType, newVmType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setVmType(VirtualMachineType newVmType) { + if (newVmType != vmType) { + NotificationChain msgs = null; + if (vmType != null) + msgs = ((InternalEObject)vmType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE, null, msgs); + if (newVmType != null) + msgs = ((InternalEObject)newVmType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE, null, msgs); + msgs = basicSetVmType(newVmType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE, newVmType, newVmType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + return basicSetVmType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + return getVmType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + setVmType((VirtualMachineType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + setVmType((VirtualMachineType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + return vmType != null; + } + return super.eIsSet(featureID); + } + +} //OpenstackRequestSecurityGroupImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestServerActionImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestServerActionImpl.java new file mode 100644 index 0000000..412ac12 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestServerActionImpl.java @@ -0,0 +1,239 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Openstack Request Server Action'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestServerActionImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestServerActionImpl#getAction Action}
  • + *
+ *

+ * + * @generated + */ +public class OpenstackRequestServerActionImpl extends OpenStackRequestImpl implements OpenstackRequestServerAction { + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getAction() Action}' attribute. + * + * + * @see #getAction() + * @generated + * @ordered + */ + protected static final String ACTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAction() Action}' attribute. + * + * + * @see #getAction() + * @generated + * @ordered + */ + protected String action = ACTION_EDEFAULT; + + /** + * + * + * @generated + */ + protected OpenstackRequestServerActionImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_SERVER_ACTION; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getAction() { + return action; + } + + /** + * + * + * @generated + */ + public void setAction(String newAction) { + String oldAction = action; + action = newAction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION, oldAction, action)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME: + return getName(); + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION: + return getAction(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME: + setName((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION: + setAction((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION: + setAction(ACTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION: + return ACTION_EDEFAULT == null ? action != null : !ACTION_EDEFAULT.equals(action); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", action: "); + result.append(action); + result.append(')'); + return result.toString(); + } + +} //OpenstackRequestServerActionImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/PersonalityImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/PersonalityImpl.java new file mode 100644 index 0000000..8b2b26d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/PersonalityImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Personality; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Personality'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.PersonalityImpl#getPath Path}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.PersonalityImpl#getContents Contents}
  • + *
+ *

+ * + * @generated + */ +public class PersonalityImpl extends MinimalEObjectImpl.Container implements Personality { + /** + * The default value of the '{@link #getPath() Path}' attribute. + * + * + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() Path}' attribute. + * + * + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * The default value of the '{@link #getContents() Contents}' attribute. + * + * + * @see #getContents() + * @generated + * @ordered + */ + protected static final String CONTENTS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getContents() Contents}' attribute. + * + * + * @see #getContents() + * @generated + * @ordered + */ + protected String contents = CONTENTS_EDEFAULT; + + /** + * + * + * @generated + */ + protected PersonalityImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.PERSONALITY; + } + + /** + * + * + * @generated + */ + public String getPath() { + return path; + } + + /** + * + * + * @generated + */ + public void setPath(String newPath) { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.PERSONALITY__PATH, oldPath, path)); + } + + /** + * + * + * @generated + */ + public String getContents() { + return contents; + } + + /** + * + * + * @generated + */ + public void setContents(String newContents) { + String oldContents = contents; + contents = newContents; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.PERSONALITY__CONTENTS, oldContents, contents)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.PERSONALITY__PATH: + return getPath(); + case ComputePackage.PERSONALITY__CONTENTS: + return getContents(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.PERSONALITY__PATH: + setPath((String)newValue); + return; + case ComputePackage.PERSONALITY__CONTENTS: + setContents((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.PERSONALITY__PATH: + setPath(PATH_EDEFAULT); + return; + case ComputePackage.PERSONALITY__CONTENTS: + setContents(CONTENTS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.PERSONALITY__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + case ComputePackage.PERSONALITY__CONTENTS: + return CONTENTS_EDEFAULT == null ? contents != null : !CONTENTS_EDEFAULT.equals(contents); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (path: "); + result.append(path); + result.append(", contents: "); + result.append(contents); + result.append(')'); + return result.toString(); + } + +} //PersonalityImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ReferenceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ReferenceImpl.java new file mode 100644 index 0000000..6295315 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ReferenceImpl.java @@ -0,0 +1,243 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Reference; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Reference'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ReferenceImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ReferenceImpl#getLinks Links}
  • + *
+ *

+ * + * @generated + */ +public class ReferenceImpl extends MinimalEObjectImpl.Container implements Reference { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The cached value of the '{@link #getLinks() Links}' containment reference list. + * + * + * @see #getLinks() + * @generated + * @ordered + */ + protected EList links; + + /** + * + * + * @generated + */ + protected ReferenceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.REFERENCE; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.REFERENCE__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public EList getLinks() { + if (links == null) { + links = new EObjectContainmentEList(Link.class, this, ComputePackage.REFERENCE__LINKS); + } + return links; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.REFERENCE__LINKS: + return ((InternalEList)getLinks()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.REFERENCE__ID: + return getId(); + case ComputePackage.REFERENCE__LINKS: + return getLinks(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.REFERENCE__ID: + setId((String)newValue); + return; + case ComputePackage.REFERENCE__LINKS: + getLinks().clear(); + getLinks().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.REFERENCE__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.REFERENCE__LINKS: + getLinks().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.REFERENCE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.REFERENCE__LINKS: + return links != null && !links.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(')'); + return result.toString(); + } + +} //ReferenceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityGroupImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityGroupImpl.java new file mode 100644 index 0000000..c99d77c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityGroupImpl.java @@ -0,0 +1,352 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.SecurityRule; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Security Group'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl#getRules Rules}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl#getDescription Description}
  • + *
+ *

+ * + * @generated + */ +public class SecurityGroupImpl extends NamedEntityImpl implements SecurityGroup { + /** + * The cached value of the '{@link #getRules() Rules}' containment reference list. + * + * + * @see #getRules() + * @generated + * @ordered + */ + protected EList rules; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * + * + * @generated + */ + protected SecurityGroupImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.SECURITY_GROUP; + } + + /** + * + * + * @generated + */ + public EList getRules() { + if (rules == null) { + rules = new EObjectContainmentEList(SecurityRule.class, this, ComputePackage.SECURITY_GROUP__RULES); + } + return rules; + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_GROUP__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_GROUP__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getDescription() { + return description; + } + + /** + * + * + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_GROUP__DESCRIPTION, oldDescription, description)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + return ((InternalEList)getRules()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + return getRules(); + case ComputePackage.SECURITY_GROUP__TENANT_ID: + return getTenant_id(); + case ComputePackage.SECURITY_GROUP__ID: + return getId(); + case ComputePackage.SECURITY_GROUP__DESCRIPTION: + return getDescription(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + getRules().clear(); + getRules().addAll((Collection)newValue); + return; + case ComputePackage.SECURITY_GROUP__TENANT_ID: + setTenant_id((String)newValue); + return; + case ComputePackage.SECURITY_GROUP__ID: + setId((String)newValue); + return; + case ComputePackage.SECURITY_GROUP__DESCRIPTION: + setDescription((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + getRules().clear(); + return; + case ComputePackage.SECURITY_GROUP__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + case ComputePackage.SECURITY_GROUP__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.SECURITY_GROUP__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + return rules != null && !rules.isEmpty(); + case ComputePackage.SECURITY_GROUP__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + case ComputePackage.SECURITY_GROUP__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.SECURITY_GROUP__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (tenant_id: "); + result.append(tenant_id); + result.append(", id: "); + result.append(id); + result.append(", description: "); + result.append(description); + result.append(')'); + return result.toString(); + } + +} //SecurityGroupImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRangeImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRangeImpl.java new file mode 100644 index 0000000..8796364 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRangeImpl.java @@ -0,0 +1,184 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.SecurityRange; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Security Range'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityRangeImpl#getCidr Cidr}
  • + *
+ *

+ * + * @generated + */ +public class SecurityRangeImpl extends MinimalEObjectImpl.Container implements SecurityRange { + /** + * The default value of the '{@link #getCidr() Cidr}' attribute. + * + * + * @see #getCidr() + * @generated + * @ordered + */ + protected static final String CIDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCidr() Cidr}' attribute. + * + * + * @see #getCidr() + * @generated + * @ordered + */ + protected String cidr = CIDR_EDEFAULT; + + /** + * + * + * @generated + */ + protected SecurityRangeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.SECURITY_RANGE; + } + + /** + * + * + * @generated + */ + public String getCidr() { + return cidr; + } + + /** + * + * + * @generated + */ + public void setCidr(String newCidr) { + String oldCidr = cidr; + cidr = newCidr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RANGE__CIDR, oldCidr, cidr)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.SECURITY_RANGE__CIDR: + return getCidr(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.SECURITY_RANGE__CIDR: + setCidr((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_RANGE__CIDR: + setCidr(CIDR_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_RANGE__CIDR: + return CIDR_EDEFAULT == null ? cidr != null : !CIDR_EDEFAULT.equals(cidr); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (cidr: "); + result.append(cidr); + result.append(')'); + return result.toString(); + } + +} //SecurityRangeImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRuleImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRuleImpl.java new file mode 100644 index 0000000..cbb2ccf --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRuleImpl.java @@ -0,0 +1,548 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.SecurityRange; +import org.openecomp.ncomp.openstack.compute.SecurityRule; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Security Rule'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getFrom_port From port}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getGroup Group}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getIp_protocol Ip protocol}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getTo_port To port}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getParent_group_id Parent group id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getIp_range Ip range}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getId Id}
  • + *
+ *

+ * + * @generated + */ +public class SecurityRuleImpl extends MinimalEObjectImpl.Container implements SecurityRule { + /** + * The default value of the '{@link #getFrom_port() From port}' attribute. + * + * + * @see #getFrom_port() + * @generated + * @ordered + */ + protected static final Integer FROM_PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFrom_port() From port}' attribute. + * + * + * @see #getFrom_port() + * @generated + * @ordered + */ + protected Integer from_port = FROM_PORT_EDEFAULT; + + /** + * The cached value of the '{@link #getGroup() Group}' containment reference. + * + * + * @see #getGroup() + * @generated + * @ordered + */ + protected SecurityGroup group; + + /** + * The default value of the '{@link #getIp_protocol() Ip protocol}' attribute. + * + * + * @see #getIp_protocol() + * @generated + * @ordered + */ + protected static final String IP_PROTOCOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIp_protocol() Ip protocol}' attribute. + * + * + * @see #getIp_protocol() + * @generated + * @ordered + */ + protected String ip_protocol = IP_PROTOCOL_EDEFAULT; + + /** + * The default value of the '{@link #getTo_port() To port}' attribute. + * + * + * @see #getTo_port() + * @generated + * @ordered + */ + protected static final Integer TO_PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTo_port() To port}' attribute. + * + * + * @see #getTo_port() + * @generated + * @ordered + */ + protected Integer to_port = TO_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getParent_group_id() Parent group id}' attribute. + * + * + * @see #getParent_group_id() + * @generated + * @ordered + */ + protected static final String PARENT_GROUP_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getParent_group_id() Parent group id}' attribute. + * + * + * @see #getParent_group_id() + * @generated + * @ordered + */ + protected String parent_group_id = PARENT_GROUP_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getIp_range() Ip range}' containment reference. + * + * + * @see #getIp_range() + * @generated + * @ordered + */ + protected SecurityRange ip_range; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected SecurityRuleImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.SECURITY_RULE; + } + + /** + * + * + * @generated + */ + public Integer getFrom_port() { + return from_port; + } + + /** + * + * + * @generated + */ + public void setFrom_port(Integer newFrom_port) { + Integer oldFrom_port = from_port; + from_port = newFrom_port; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__FROM_PORT, oldFrom_port, from_port)); + } + + /** + * + * + * @generated + */ + public SecurityGroup getGroup() { + return group; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetGroup(SecurityGroup newGroup, NotificationChain msgs) { + SecurityGroup oldGroup = group; + group = newGroup; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__GROUP, oldGroup, newGroup); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setGroup(SecurityGroup newGroup) { + if (newGroup != group) { + NotificationChain msgs = null; + if (group != null) + msgs = ((InternalEObject)group).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SECURITY_RULE__GROUP, null, msgs); + if (newGroup != null) + msgs = ((InternalEObject)newGroup).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SECURITY_RULE__GROUP, null, msgs); + msgs = basicSetGroup(newGroup, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__GROUP, newGroup, newGroup)); + } + + /** + * + * + * @generated + */ + public String getIp_protocol() { + return ip_protocol; + } + + /** + * + * + * @generated + */ + public void setIp_protocol(String newIp_protocol) { + String oldIp_protocol = ip_protocol; + ip_protocol = newIp_protocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__IP_PROTOCOL, oldIp_protocol, ip_protocol)); + } + + /** + * + * + * @generated + */ + public Integer getTo_port() { + return to_port; + } + + /** + * + * + * @generated + */ + public void setTo_port(Integer newTo_port) { + Integer oldTo_port = to_port; + to_port = newTo_port; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__TO_PORT, oldTo_port, to_port)); + } + + /** + * + * + * @generated + */ + public String getParent_group_id() { + return parent_group_id; + } + + /** + * + * + * @generated + */ + public void setParent_group_id(String newParent_group_id) { + String oldParent_group_id = parent_group_id; + parent_group_id = newParent_group_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__PARENT_GROUP_ID, oldParent_group_id, parent_group_id)); + } + + /** + * + * + * @generated + */ + public SecurityRange getIp_range() { + return ip_range; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetIp_range(SecurityRange newIp_range, NotificationChain msgs) { + SecurityRange oldIp_range = ip_range; + ip_range = newIp_range; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__IP_RANGE, oldIp_range, newIp_range); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setIp_range(SecurityRange newIp_range) { + if (newIp_range != ip_range) { + NotificationChain msgs = null; + if (ip_range != null) + msgs = ((InternalEObject)ip_range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SECURITY_RULE__IP_RANGE, null, msgs); + if (newIp_range != null) + msgs = ((InternalEObject)newIp_range).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SECURITY_RULE__IP_RANGE, null, msgs); + msgs = basicSetIp_range(newIp_range, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__IP_RANGE, newIp_range, newIp_range)); + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__GROUP: + return basicSetGroup(null, msgs); + case ComputePackage.SECURITY_RULE__IP_RANGE: + return basicSetIp_range(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__FROM_PORT: + return getFrom_port(); + case ComputePackage.SECURITY_RULE__GROUP: + return getGroup(); + case ComputePackage.SECURITY_RULE__IP_PROTOCOL: + return getIp_protocol(); + case ComputePackage.SECURITY_RULE__TO_PORT: + return getTo_port(); + case ComputePackage.SECURITY_RULE__PARENT_GROUP_ID: + return getParent_group_id(); + case ComputePackage.SECURITY_RULE__IP_RANGE: + return getIp_range(); + case ComputePackage.SECURITY_RULE__ID: + return getId(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__FROM_PORT: + setFrom_port((Integer)newValue); + return; + case ComputePackage.SECURITY_RULE__GROUP: + setGroup((SecurityGroup)newValue); + return; + case ComputePackage.SECURITY_RULE__IP_PROTOCOL: + setIp_protocol((String)newValue); + return; + case ComputePackage.SECURITY_RULE__TO_PORT: + setTo_port((Integer)newValue); + return; + case ComputePackage.SECURITY_RULE__PARENT_GROUP_ID: + setParent_group_id((String)newValue); + return; + case ComputePackage.SECURITY_RULE__IP_RANGE: + setIp_range((SecurityRange)newValue); + return; + case ComputePackage.SECURITY_RULE__ID: + setId((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__FROM_PORT: + setFrom_port(FROM_PORT_EDEFAULT); + return; + case ComputePackage.SECURITY_RULE__GROUP: + setGroup((SecurityGroup)null); + return; + case ComputePackage.SECURITY_RULE__IP_PROTOCOL: + setIp_protocol(IP_PROTOCOL_EDEFAULT); + return; + case ComputePackage.SECURITY_RULE__TO_PORT: + setTo_port(TO_PORT_EDEFAULT); + return; + case ComputePackage.SECURITY_RULE__PARENT_GROUP_ID: + setParent_group_id(PARENT_GROUP_ID_EDEFAULT); + return; + case ComputePackage.SECURITY_RULE__IP_RANGE: + setIp_range((SecurityRange)null); + return; + case ComputePackage.SECURITY_RULE__ID: + setId(ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__FROM_PORT: + return FROM_PORT_EDEFAULT == null ? from_port != null : !FROM_PORT_EDEFAULT.equals(from_port); + case ComputePackage.SECURITY_RULE__GROUP: + return group != null; + case ComputePackage.SECURITY_RULE__IP_PROTOCOL: + return IP_PROTOCOL_EDEFAULT == null ? ip_protocol != null : !IP_PROTOCOL_EDEFAULT.equals(ip_protocol); + case ComputePackage.SECURITY_RULE__TO_PORT: + return TO_PORT_EDEFAULT == null ? to_port != null : !TO_PORT_EDEFAULT.equals(to_port); + case ComputePackage.SECURITY_RULE__PARENT_GROUP_ID: + return PARENT_GROUP_ID_EDEFAULT == null ? parent_group_id != null : !PARENT_GROUP_ID_EDEFAULT.equals(parent_group_id); + case ComputePackage.SECURITY_RULE__IP_RANGE: + return ip_range != null; + case ComputePackage.SECURITY_RULE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (from_port: "); + result.append(from_port); + result.append(", ip_protocol: "); + result.append(ip_protocol); + result.append(", to_port: "); + result.append(to_port); + result.append(", parent_group_id: "); + result.append(parent_group_id); + result.append(", id: "); + result.append(id); + result.append(')'); + return result.toString(); + } + +} //SecurityRuleImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ServerImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ServerImpl.java new file mode 100644 index 0000000..e7a43ae --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ServerImpl.java @@ -0,0 +1,1688 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.Addresses; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Fault; +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import org.openecomp.ncomp.openstack.compute.Reference; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.Server; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Server'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getUser_id User id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getUpdated Updated}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getCreated Created}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getHostId Host Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getAccessIPv4 Access IPv4}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getAccessIPv6 Access IPv6}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getConfig_drive Config drive}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getKey_name Key name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getProgress Progress}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_DCF_diskConfig OS DCF disk Config}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_STS_power_state OS EXT STS power state}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_STS_vm_state OS EXT STS vm state}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_STS_task_state OS EXT STS task state}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_SRV_ATTR_host OS EXT SRV ATTR host}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_SRV_ATTR_instance_name OS EXT SRV ATTR instance name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_SRV_ATTR_hypervisor_hostname OS EXT SRV ATTR hypervisor hostname}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_SRV_USG_launched_at OS SRV USG launched at}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_SRV_USG_terminated_at OS SRV USG terminated at}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getImage Image}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getFlavor Flavor}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getAddresses Addresses}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getSecurity_groups Security groups}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getMetadata Metadata}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getLinks Links}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getFault Fault}
  • + *
+ *

+ * + * @generated + */ +public class ServerImpl extends MinimalEObjectImpl.Container implements Server { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected static final String USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser_id() User id}' attribute. + * + * + * @see #getUser_id() + * @generated + * @ordered + */ + protected String user_id = USER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getUpdated() Updated}' attribute. + * + * + * @see #getUpdated() + * @generated + * @ordered + */ + protected static final String UPDATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUpdated() Updated}' attribute. + * + * + * @see #getUpdated() + * @generated + * @ordered + */ + protected String updated = UPDATED_EDEFAULT; + + /** + * The default value of the '{@link #getCreated() Created}' attribute. + * + * + * @see #getCreated() + * @generated + * @ordered + */ + protected static final String CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated() Created}' attribute. + * + * + * @see #getCreated() + * @generated + * @ordered + */ + protected String created = CREATED_EDEFAULT; + + /** + * The default value of the '{@link #getHostId() Host Id}' attribute. + * + * + * @see #getHostId() + * @generated + * @ordered + */ + protected static final String HOST_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHostId() Host Id}' attribute. + * + * + * @see #getHostId() + * @generated + * @ordered + */ + protected String hostId = HOST_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAccessIPv4() Access IPv4}' attribute. + * + * + * @see #getAccessIPv4() + * @generated + * @ordered + */ + protected static final String ACCESS_IPV4_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAccessIPv4() Access IPv4}' attribute. + * + * + * @see #getAccessIPv4() + * @generated + * @ordered + */ + protected String accessIPv4 = ACCESS_IPV4_EDEFAULT; + + /** + * The default value of the '{@link #getAccessIPv6() Access IPv6}' attribute. + * + * + * @see #getAccessIPv6() + * @generated + * @ordered + */ + protected static final String ACCESS_IPV6_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAccessIPv6() Access IPv6}' attribute. + * + * + * @see #getAccessIPv6() + * @generated + * @ordered + */ + protected String accessIPv6 = ACCESS_IPV6_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getConfig_drive() Config drive}' attribute. + * + * + * @see #getConfig_drive() + * @generated + * @ordered + */ + protected static final String CONFIG_DRIVE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConfig_drive() Config drive}' attribute. + * + * + * @see #getConfig_drive() + * @generated + * @ordered + */ + protected String config_drive = CONFIG_DRIVE_EDEFAULT; + + /** + * The default value of the '{@link #getKey_name() Key name}' attribute. + * + * + * @see #getKey_name() + * @generated + * @ordered + */ + protected static final String KEY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKey_name() Key name}' attribute. + * + * + * @see #getKey_name() + * @generated + * @ordered + */ + protected String key_name = KEY_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getProgress() Progress}' attribute. + * + * + * @see #getProgress() + * @generated + * @ordered + */ + protected static final int PROGRESS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getProgress() Progress}' attribute. + * + * + * @see #getProgress() + * @generated + * @ordered + */ + protected int progress = PROGRESS_EDEFAULT; + + /** + * The default value of the '{@link #getOS_DCF_diskConfig() OS DCF disk Config}' attribute. + * + * + * @see #getOS_DCF_diskConfig() + * @generated + * @ordered + */ + protected static final String OS_DCF_DISK_CONFIG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_DCF_diskConfig() OS DCF disk Config}' attribute. + * + * + * @see #getOS_DCF_diskConfig() + * @generated + * @ordered + */ + protected String oS_DCF_diskConfig = OS_DCF_DISK_CONFIG_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_STS_power_state() OS EXT STS power state}' attribute. + * + * + * @see #getOS_EXT_STS_power_state() + * @generated + * @ordered + */ + protected static final int OS_EXT_STS_POWER_STATE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getOS_EXT_STS_power_state() OS EXT STS power state}' attribute. + * + * + * @see #getOS_EXT_STS_power_state() + * @generated + * @ordered + */ + protected int oS_EXT_STS_power_state = OS_EXT_STS_POWER_STATE_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_STS_vm_state() OS EXT STS vm state}' attribute. + * + * + * @see #getOS_EXT_STS_vm_state() + * @generated + * @ordered + */ + protected static final String OS_EXT_STS_VM_STATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_STS_vm_state() OS EXT STS vm state}' attribute. + * + * + * @see #getOS_EXT_STS_vm_state() + * @generated + * @ordered + */ + protected String oS_EXT_STS_vm_state = OS_EXT_STS_VM_STATE_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_STS_task_state() OS EXT STS task state}' attribute. + * + * + * @see #getOS_EXT_STS_task_state() + * @generated + * @ordered + */ + protected static final String OS_EXT_STS_TASK_STATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_STS_task_state() OS EXT STS task state}' attribute. + * + * + * @see #getOS_EXT_STS_task_state() + * @generated + * @ordered + */ + protected String oS_EXT_STS_task_state = OS_EXT_STS_TASK_STATE_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_SRV_ATTR_host() OS EXT SRV ATTR host}' attribute. + * + * + * @see #getOS_EXT_SRV_ATTR_host() + * @generated + * @ordered + */ + protected static final String OS_EXT_SRV_ATTR_HOST_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_SRV_ATTR_host() OS EXT SRV ATTR host}' attribute. + * + * + * @see #getOS_EXT_SRV_ATTR_host() + * @generated + * @ordered + */ + protected String oS_EXT_SRV_ATTR_host = OS_EXT_SRV_ATTR_HOST_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_SRV_ATTR_instance_name() OS EXT SRV ATTR instance name}' attribute. + * + * + * @see #getOS_EXT_SRV_ATTR_instance_name() + * @generated + * @ordered + */ + protected static final String OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_SRV_ATTR_instance_name() OS EXT SRV ATTR instance name}' attribute. + * + * + * @see #getOS_EXT_SRV_ATTR_instance_name() + * @generated + * @ordered + */ + protected String oS_EXT_SRV_ATTR_instance_name = OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_SRV_ATTR_hypervisor_hostname() OS EXT SRV ATTR hypervisor hostname}' attribute. + * + * + * @see #getOS_EXT_SRV_ATTR_hypervisor_hostname() + * @generated + * @ordered + */ + protected static final String OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_SRV_ATTR_hypervisor_hostname() OS EXT SRV ATTR hypervisor hostname}' attribute. + * + * + * @see #getOS_EXT_SRV_ATTR_hypervisor_hostname() + * @generated + * @ordered + */ + protected String oS_EXT_SRV_ATTR_hypervisor_hostname = OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT; + + /** + * The default value of the '{@link #getOS_SRV_USG_launched_at() OS SRV USG launched at}' attribute. + * + * + * @see #getOS_SRV_USG_launched_at() + * @generated + * @ordered + */ + protected static final String OS_SRV_USG_LAUNCHED_AT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_SRV_USG_launched_at() OS SRV USG launched at}' attribute. + * + * + * @see #getOS_SRV_USG_launched_at() + * @generated + * @ordered + */ + protected String oS_SRV_USG_launched_at = OS_SRV_USG_LAUNCHED_AT_EDEFAULT; + + /** + * The default value of the '{@link #getOS_SRV_USG_terminated_at() OS SRV USG terminated at}' attribute. + * + * + * @see #getOS_SRV_USG_terminated_at() + * @generated + * @ordered + */ + protected static final String OS_SRV_USG_TERMINATED_AT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_SRV_USG_terminated_at() OS SRV USG terminated at}' attribute. + * + * + * @see #getOS_SRV_USG_terminated_at() + * @generated + * @ordered + */ + protected String oS_SRV_USG_terminated_at = OS_SRV_USG_TERMINATED_AT_EDEFAULT; + + /** + * The cached value of the '{@link #getImage() Image}' containment reference. + * + * + * @see #getImage() + * @generated + * @ordered + */ + protected Reference image; + + /** + * The cached value of the '{@link #getFlavor() Flavor}' containment reference. + * + * + * @see #getFlavor() + * @generated + * @ordered + */ + protected Reference flavor; + + /** + * The cached value of the '{@link #getAddresses() Addresses}' containment reference list. + * + * + * @see #getAddresses() + * @generated + * @ordered + */ + protected EList addresses; + + /** + * The cached value of the '{@link #getSecurity_groups() Security groups}' containment reference list. + * + * + * @see #getSecurity_groups() + * @generated + * @ordered + */ + protected EList security_groups; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' containment reference list. + * + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * The cached value of the '{@link #getLinks() Links}' containment reference list. + * + * + * @see #getLinks() + * @generated + * @ordered + */ + protected EList links; + + /** + * The cached value of the '{@link #getFault() Fault}' containment reference. + * + * + * @see #getFault() + * @generated + * @ordered + */ + protected Fault fault; + + /** + * + * + * @generated + */ + protected ServerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.SERVER; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + public String getUser_id() { + return user_id; + } + + /** + * + * + * @generated + */ + public void setUser_id(String newUser_id) { + String oldUser_id = user_id; + user_id = newUser_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__USER_ID, oldUser_id, user_id)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getUpdated() { + return updated; + } + + /** + * + * + * @generated + */ + public void setUpdated(String newUpdated) { + String oldUpdated = updated; + updated = newUpdated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__UPDATED, oldUpdated, updated)); + } + + /** + * + * + * @generated + */ + public String getCreated() { + return created; + } + + /** + * + * + * @generated + */ + public void setCreated(String newCreated) { + String oldCreated = created; + created = newCreated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__CREATED, oldCreated, created)); + } + + /** + * + * + * @generated + */ + public String getHostId() { + return hostId; + } + + /** + * + * + * @generated + */ + public void setHostId(String newHostId) { + String oldHostId = hostId; + hostId = newHostId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__HOST_ID, oldHostId, hostId)); + } + + /** + * + * + * @generated + */ + public String getAccessIPv4() { + return accessIPv4; + } + + /** + * + * + * @generated + */ + public void setAccessIPv4(String newAccessIPv4) { + String oldAccessIPv4 = accessIPv4; + accessIPv4 = newAccessIPv4; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__ACCESS_IPV4, oldAccessIPv4, accessIPv4)); + } + + /** + * + * + * @generated + */ + public String getAccessIPv6() { + return accessIPv6; + } + + /** + * + * + * @generated + */ + public void setAccessIPv6(String newAccessIPv6) { + String oldAccessIPv6 = accessIPv6; + accessIPv6 = newAccessIPv6; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__ACCESS_IPV6, oldAccessIPv6, accessIPv6)); + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__STATUS, oldStatus, status)); + } + + /** + * + * + * @generated + */ + public String getConfig_drive() { + return config_drive; + } + + /** + * + * + * @generated + */ + public void setConfig_drive(String newConfig_drive) { + String oldConfig_drive = config_drive; + config_drive = newConfig_drive; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__CONFIG_DRIVE, oldConfig_drive, config_drive)); + } + + /** + * + * + * @generated + */ + public String getKey_name() { + return key_name; + } + + /** + * + * + * @generated + */ + public void setKey_name(String newKey_name) { + String oldKey_name = key_name; + key_name = newKey_name; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__KEY_NAME, oldKey_name, key_name)); + } + + /** + * + * + * @generated + */ + public int getProgress() { + return progress; + } + + /** + * + * + * @generated + */ + public void setProgress(int newProgress) { + int oldProgress = progress; + progress = newProgress; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__PROGRESS, oldProgress, progress)); + } + + /** + * + * + * @generated + */ + public String getOS_DCF_diskConfig() { + return oS_DCF_diskConfig; + } + + /** + * + * + * @generated + */ + public void setOS_DCF_diskConfig(String newOS_DCF_diskConfig) { + String oldOS_DCF_diskConfig = oS_DCF_diskConfig; + oS_DCF_diskConfig = newOS_DCF_diskConfig; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_DCF_DISK_CONFIG, oldOS_DCF_diskConfig, oS_DCF_diskConfig)); + } + + /** + * + * + * @generated + */ + public int getOS_EXT_STS_power_state() { + return oS_EXT_STS_power_state; + } + + /** + * + * + * @generated + */ + public void setOS_EXT_STS_power_state(int newOS_EXT_STS_power_state) { + int oldOS_EXT_STS_power_state = oS_EXT_STS_power_state; + oS_EXT_STS_power_state = newOS_EXT_STS_power_state; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_STS_POWER_STATE, oldOS_EXT_STS_power_state, oS_EXT_STS_power_state)); + } + + /** + * + * + * @generated + */ + public String getOS_EXT_STS_vm_state() { + return oS_EXT_STS_vm_state; + } + + /** + * + * + * @generated + */ + public void setOS_EXT_STS_vm_state(String newOS_EXT_STS_vm_state) { + String oldOS_EXT_STS_vm_state = oS_EXT_STS_vm_state; + oS_EXT_STS_vm_state = newOS_EXT_STS_vm_state; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_STS_VM_STATE, oldOS_EXT_STS_vm_state, oS_EXT_STS_vm_state)); + } + + /** + * + * + * @generated + */ + public String getOS_EXT_STS_task_state() { + return oS_EXT_STS_task_state; + } + + /** + * + * + * @generated + */ + public void setOS_EXT_STS_task_state(String newOS_EXT_STS_task_state) { + String oldOS_EXT_STS_task_state = oS_EXT_STS_task_state; + oS_EXT_STS_task_state = newOS_EXT_STS_task_state; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_STS_TASK_STATE, oldOS_EXT_STS_task_state, oS_EXT_STS_task_state)); + } + + /** + * + * + * @generated + */ + public String getOS_EXT_SRV_ATTR_host() { + return oS_EXT_SRV_ATTR_host; + } + + /** + * + * + * @generated + */ + public void setOS_EXT_SRV_ATTR_host(String newOS_EXT_SRV_ATTR_host) { + String oldOS_EXT_SRV_ATTR_host = oS_EXT_SRV_ATTR_host; + oS_EXT_SRV_ATTR_host = newOS_EXT_SRV_ATTR_host; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST, oldOS_EXT_SRV_ATTR_host, oS_EXT_SRV_ATTR_host)); + } + + /** + * + * + * @generated + */ + public String getOS_EXT_SRV_ATTR_instance_name() { + return oS_EXT_SRV_ATTR_instance_name; + } + + /** + * + * + * @generated + */ + public void setOS_EXT_SRV_ATTR_instance_name(String newOS_EXT_SRV_ATTR_instance_name) { + String oldOS_EXT_SRV_ATTR_instance_name = oS_EXT_SRV_ATTR_instance_name; + oS_EXT_SRV_ATTR_instance_name = newOS_EXT_SRV_ATTR_instance_name; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME, oldOS_EXT_SRV_ATTR_instance_name, oS_EXT_SRV_ATTR_instance_name)); + } + + /** + * + * + * @generated + */ + public String getOS_EXT_SRV_ATTR_hypervisor_hostname() { + return oS_EXT_SRV_ATTR_hypervisor_hostname; + } + + /** + * + * + * @generated + */ + public void setOS_EXT_SRV_ATTR_hypervisor_hostname(String newOS_EXT_SRV_ATTR_hypervisor_hostname) { + String oldOS_EXT_SRV_ATTR_hypervisor_hostname = oS_EXT_SRV_ATTR_hypervisor_hostname; + oS_EXT_SRV_ATTR_hypervisor_hostname = newOS_EXT_SRV_ATTR_hypervisor_hostname; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME, oldOS_EXT_SRV_ATTR_hypervisor_hostname, oS_EXT_SRV_ATTR_hypervisor_hostname)); + } + + /** + * + * + * @generated + */ + public String getOS_SRV_USG_launched_at() { + return oS_SRV_USG_launched_at; + } + + /** + * + * + * @generated + */ + public void setOS_SRV_USG_launched_at(String newOS_SRV_USG_launched_at) { + String oldOS_SRV_USG_launched_at = oS_SRV_USG_launched_at; + oS_SRV_USG_launched_at = newOS_SRV_USG_launched_at; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT, oldOS_SRV_USG_launched_at, oS_SRV_USG_launched_at)); + } + + /** + * + * + * @generated + */ + public String getOS_SRV_USG_terminated_at() { + return oS_SRV_USG_terminated_at; + } + + /** + * + * + * @generated + */ + public void setOS_SRV_USG_terminated_at(String newOS_SRV_USG_terminated_at) { + String oldOS_SRV_USG_terminated_at = oS_SRV_USG_terminated_at; + oS_SRV_USG_terminated_at = newOS_SRV_USG_terminated_at; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT, oldOS_SRV_USG_terminated_at, oS_SRV_USG_terminated_at)); + } + + /** + * + * + * @generated + */ + public Reference getImage() { + return image; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetImage(Reference newImage, NotificationChain msgs) { + Reference oldImage = image; + image = newImage; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__IMAGE, oldImage, newImage); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setImage(Reference newImage) { + if (newImage != image) { + NotificationChain msgs = null; + if (image != null) + msgs = ((InternalEObject)image).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__IMAGE, null, msgs); + if (newImage != null) + msgs = ((InternalEObject)newImage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__IMAGE, null, msgs); + msgs = basicSetImage(newImage, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__IMAGE, newImage, newImage)); + } + + /** + * + * + * @generated + */ + public Reference getFlavor() { + return flavor; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetFlavor(Reference newFlavor, NotificationChain msgs) { + Reference oldFlavor = flavor; + flavor = newFlavor; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__FLAVOR, oldFlavor, newFlavor); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setFlavor(Reference newFlavor) { + if (newFlavor != flavor) { + NotificationChain msgs = null; + if (flavor != null) + msgs = ((InternalEObject)flavor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__FLAVOR, null, msgs); + if (newFlavor != null) + msgs = ((InternalEObject)newFlavor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__FLAVOR, null, msgs); + msgs = basicSetFlavor(newFlavor, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__FLAVOR, newFlavor, newFlavor)); + } + + /** + * + * + * @generated + */ + public EList getAddresses() { + if (addresses == null) { + addresses = new EObjectContainmentEList(Addresses.class, this, ComputePackage.SERVER__ADDRESSES); + } + return addresses; + } + + /** + * + * + * @generated + */ + public EList getSecurity_groups() { + if (security_groups == null) { + security_groups = new EObjectContainmentEList(SecurityGroup.class, this, ComputePackage.SERVER__SECURITY_GROUPS); + } + return security_groups; + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectContainmentEList(Metadata.class, this, ComputePackage.SERVER__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + public EList getLinks() { + if (links == null) { + links = new EObjectContainmentEList(Link.class, this, ComputePackage.SERVER__LINKS); + } + return links; + } + + /** + * + * + * @generated + */ + public Fault getFault() { + return fault; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetFault(Fault newFault, NotificationChain msgs) { + Fault oldFault = fault; + fault = newFault; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__FAULT, oldFault, newFault); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setFault(Fault newFault) { + if (newFault != fault) { + NotificationChain msgs = null; + if (fault != null) + msgs = ((InternalEObject)fault).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__FAULT, null, msgs); + if (newFault != null) + msgs = ((InternalEObject)newFault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__FAULT, null, msgs); + msgs = basicSetFault(newFault, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__FAULT, newFault, newFault)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.SERVER__IMAGE: + return basicSetImage(null, msgs); + case ComputePackage.SERVER__FLAVOR: + return basicSetFlavor(null, msgs); + case ComputePackage.SERVER__ADDRESSES: + return ((InternalEList)getAddresses()).basicRemove(otherEnd, msgs); + case ComputePackage.SERVER__SECURITY_GROUPS: + return ((InternalEList)getSecurity_groups()).basicRemove(otherEnd, msgs); + case ComputePackage.SERVER__METADATA: + return ((InternalEList)getMetadata()).basicRemove(otherEnd, msgs); + case ComputePackage.SERVER__LINKS: + return ((InternalEList)getLinks()).basicRemove(otherEnd, msgs); + case ComputePackage.SERVER__FAULT: + return basicSetFault(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.SERVER__ID: + return getId(); + case ComputePackage.SERVER__TENANT_ID: + return getTenant_id(); + case ComputePackage.SERVER__USER_ID: + return getUser_id(); + case ComputePackage.SERVER__NAME: + return getName(); + case ComputePackage.SERVER__UPDATED: + return getUpdated(); + case ComputePackage.SERVER__CREATED: + return getCreated(); + case ComputePackage.SERVER__HOST_ID: + return getHostId(); + case ComputePackage.SERVER__ACCESS_IPV4: + return getAccessIPv4(); + case ComputePackage.SERVER__ACCESS_IPV6: + return getAccessIPv6(); + case ComputePackage.SERVER__STATUS: + return getStatus(); + case ComputePackage.SERVER__CONFIG_DRIVE: + return getConfig_drive(); + case ComputePackage.SERVER__KEY_NAME: + return getKey_name(); + case ComputePackage.SERVER__PROGRESS: + return getProgress(); + case ComputePackage.SERVER__OS_DCF_DISK_CONFIG: + return getOS_DCF_diskConfig(); + case ComputePackage.SERVER__OS_EXT_STS_POWER_STATE: + return getOS_EXT_STS_power_state(); + case ComputePackage.SERVER__OS_EXT_STS_VM_STATE: + return getOS_EXT_STS_vm_state(); + case ComputePackage.SERVER__OS_EXT_STS_TASK_STATE: + return getOS_EXT_STS_task_state(); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST: + return getOS_EXT_SRV_ATTR_host(); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME: + return getOS_EXT_SRV_ATTR_instance_name(); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME: + return getOS_EXT_SRV_ATTR_hypervisor_hostname(); + case ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT: + return getOS_SRV_USG_launched_at(); + case ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT: + return getOS_SRV_USG_terminated_at(); + case ComputePackage.SERVER__IMAGE: + return getImage(); + case ComputePackage.SERVER__FLAVOR: + return getFlavor(); + case ComputePackage.SERVER__ADDRESSES: + return getAddresses(); + case ComputePackage.SERVER__SECURITY_GROUPS: + return getSecurity_groups(); + case ComputePackage.SERVER__METADATA: + return getMetadata(); + case ComputePackage.SERVER__LINKS: + return getLinks(); + case ComputePackage.SERVER__FAULT: + return getFault(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.SERVER__ID: + setId((String)newValue); + return; + case ComputePackage.SERVER__TENANT_ID: + setTenant_id((String)newValue); + return; + case ComputePackage.SERVER__USER_ID: + setUser_id((String)newValue); + return; + case ComputePackage.SERVER__NAME: + setName((String)newValue); + return; + case ComputePackage.SERVER__UPDATED: + setUpdated((String)newValue); + return; + case ComputePackage.SERVER__CREATED: + setCreated((String)newValue); + return; + case ComputePackage.SERVER__HOST_ID: + setHostId((String)newValue); + return; + case ComputePackage.SERVER__ACCESS_IPV4: + setAccessIPv4((String)newValue); + return; + case ComputePackage.SERVER__ACCESS_IPV6: + setAccessIPv6((String)newValue); + return; + case ComputePackage.SERVER__STATUS: + setStatus((String)newValue); + return; + case ComputePackage.SERVER__CONFIG_DRIVE: + setConfig_drive((String)newValue); + return; + case ComputePackage.SERVER__KEY_NAME: + setKey_name((String)newValue); + return; + case ComputePackage.SERVER__PROGRESS: + setProgress((Integer)newValue); + return; + case ComputePackage.SERVER__OS_DCF_DISK_CONFIG: + setOS_DCF_diskConfig((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_STS_POWER_STATE: + setOS_EXT_STS_power_state((Integer)newValue); + return; + case ComputePackage.SERVER__OS_EXT_STS_VM_STATE: + setOS_EXT_STS_vm_state((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_STS_TASK_STATE: + setOS_EXT_STS_task_state((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST: + setOS_EXT_SRV_ATTR_host((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME: + setOS_EXT_SRV_ATTR_instance_name((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME: + setOS_EXT_SRV_ATTR_hypervisor_hostname((String)newValue); + return; + case ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT: + setOS_SRV_USG_launched_at((String)newValue); + return; + case ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT: + setOS_SRV_USG_terminated_at((String)newValue); + return; + case ComputePackage.SERVER__IMAGE: + setImage((Reference)newValue); + return; + case ComputePackage.SERVER__FLAVOR: + setFlavor((Reference)newValue); + return; + case ComputePackage.SERVER__ADDRESSES: + getAddresses().clear(); + getAddresses().addAll((Collection)newValue); + return; + case ComputePackage.SERVER__SECURITY_GROUPS: + getSecurity_groups().clear(); + getSecurity_groups().addAll((Collection)newValue); + return; + case ComputePackage.SERVER__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + case ComputePackage.SERVER__LINKS: + getLinks().clear(); + getLinks().addAll((Collection)newValue); + return; + case ComputePackage.SERVER__FAULT: + setFault((Fault)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.SERVER__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.SERVER__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + case ComputePackage.SERVER__USER_ID: + setUser_id(USER_ID_EDEFAULT); + return; + case ComputePackage.SERVER__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.SERVER__UPDATED: + setUpdated(UPDATED_EDEFAULT); + return; + case ComputePackage.SERVER__CREATED: + setCreated(CREATED_EDEFAULT); + return; + case ComputePackage.SERVER__HOST_ID: + setHostId(HOST_ID_EDEFAULT); + return; + case ComputePackage.SERVER__ACCESS_IPV4: + setAccessIPv4(ACCESS_IPV4_EDEFAULT); + return; + case ComputePackage.SERVER__ACCESS_IPV6: + setAccessIPv6(ACCESS_IPV6_EDEFAULT); + return; + case ComputePackage.SERVER__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case ComputePackage.SERVER__CONFIG_DRIVE: + setConfig_drive(CONFIG_DRIVE_EDEFAULT); + return; + case ComputePackage.SERVER__KEY_NAME: + setKey_name(KEY_NAME_EDEFAULT); + return; + case ComputePackage.SERVER__PROGRESS: + setProgress(PROGRESS_EDEFAULT); + return; + case ComputePackage.SERVER__OS_DCF_DISK_CONFIG: + setOS_DCF_diskConfig(OS_DCF_DISK_CONFIG_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_STS_POWER_STATE: + setOS_EXT_STS_power_state(OS_EXT_STS_POWER_STATE_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_STS_VM_STATE: + setOS_EXT_STS_vm_state(OS_EXT_STS_VM_STATE_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_STS_TASK_STATE: + setOS_EXT_STS_task_state(OS_EXT_STS_TASK_STATE_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST: + setOS_EXT_SRV_ATTR_host(OS_EXT_SRV_ATTR_HOST_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME: + setOS_EXT_SRV_ATTR_instance_name(OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME: + setOS_EXT_SRV_ATTR_hypervisor_hostname(OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT); + return; + case ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT: + setOS_SRV_USG_launched_at(OS_SRV_USG_LAUNCHED_AT_EDEFAULT); + return; + case ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT: + setOS_SRV_USG_terminated_at(OS_SRV_USG_TERMINATED_AT_EDEFAULT); + return; + case ComputePackage.SERVER__IMAGE: + setImage((Reference)null); + return; + case ComputePackage.SERVER__FLAVOR: + setFlavor((Reference)null); + return; + case ComputePackage.SERVER__ADDRESSES: + getAddresses().clear(); + return; + case ComputePackage.SERVER__SECURITY_GROUPS: + getSecurity_groups().clear(); + return; + case ComputePackage.SERVER__METADATA: + getMetadata().clear(); + return; + case ComputePackage.SERVER__LINKS: + getLinks().clear(); + return; + case ComputePackage.SERVER__FAULT: + setFault((Fault)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.SERVER__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.SERVER__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + case ComputePackage.SERVER__USER_ID: + return USER_ID_EDEFAULT == null ? user_id != null : !USER_ID_EDEFAULT.equals(user_id); + case ComputePackage.SERVER__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.SERVER__UPDATED: + return UPDATED_EDEFAULT == null ? updated != null : !UPDATED_EDEFAULT.equals(updated); + case ComputePackage.SERVER__CREATED: + return CREATED_EDEFAULT == null ? created != null : !CREATED_EDEFAULT.equals(created); + case ComputePackage.SERVER__HOST_ID: + return HOST_ID_EDEFAULT == null ? hostId != null : !HOST_ID_EDEFAULT.equals(hostId); + case ComputePackage.SERVER__ACCESS_IPV4: + return ACCESS_IPV4_EDEFAULT == null ? accessIPv4 != null : !ACCESS_IPV4_EDEFAULT.equals(accessIPv4); + case ComputePackage.SERVER__ACCESS_IPV6: + return ACCESS_IPV6_EDEFAULT == null ? accessIPv6 != null : !ACCESS_IPV6_EDEFAULT.equals(accessIPv6); + case ComputePackage.SERVER__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case ComputePackage.SERVER__CONFIG_DRIVE: + return CONFIG_DRIVE_EDEFAULT == null ? config_drive != null : !CONFIG_DRIVE_EDEFAULT.equals(config_drive); + case ComputePackage.SERVER__KEY_NAME: + return KEY_NAME_EDEFAULT == null ? key_name != null : !KEY_NAME_EDEFAULT.equals(key_name); + case ComputePackage.SERVER__PROGRESS: + return progress != PROGRESS_EDEFAULT; + case ComputePackage.SERVER__OS_DCF_DISK_CONFIG: + return OS_DCF_DISK_CONFIG_EDEFAULT == null ? oS_DCF_diskConfig != null : !OS_DCF_DISK_CONFIG_EDEFAULT.equals(oS_DCF_diskConfig); + case ComputePackage.SERVER__OS_EXT_STS_POWER_STATE: + return oS_EXT_STS_power_state != OS_EXT_STS_POWER_STATE_EDEFAULT; + case ComputePackage.SERVER__OS_EXT_STS_VM_STATE: + return OS_EXT_STS_VM_STATE_EDEFAULT == null ? oS_EXT_STS_vm_state != null : !OS_EXT_STS_VM_STATE_EDEFAULT.equals(oS_EXT_STS_vm_state); + case ComputePackage.SERVER__OS_EXT_STS_TASK_STATE: + return OS_EXT_STS_TASK_STATE_EDEFAULT == null ? oS_EXT_STS_task_state != null : !OS_EXT_STS_TASK_STATE_EDEFAULT.equals(oS_EXT_STS_task_state); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST: + return OS_EXT_SRV_ATTR_HOST_EDEFAULT == null ? oS_EXT_SRV_ATTR_host != null : !OS_EXT_SRV_ATTR_HOST_EDEFAULT.equals(oS_EXT_SRV_ATTR_host); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME: + return OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT == null ? oS_EXT_SRV_ATTR_instance_name != null : !OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT.equals(oS_EXT_SRV_ATTR_instance_name); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME: + return OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT == null ? oS_EXT_SRV_ATTR_hypervisor_hostname != null : !OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT.equals(oS_EXT_SRV_ATTR_hypervisor_hostname); + case ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT: + return OS_SRV_USG_LAUNCHED_AT_EDEFAULT == null ? oS_SRV_USG_launched_at != null : !OS_SRV_USG_LAUNCHED_AT_EDEFAULT.equals(oS_SRV_USG_launched_at); + case ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT: + return OS_SRV_USG_TERMINATED_AT_EDEFAULT == null ? oS_SRV_USG_terminated_at != null : !OS_SRV_USG_TERMINATED_AT_EDEFAULT.equals(oS_SRV_USG_terminated_at); + case ComputePackage.SERVER__IMAGE: + return image != null; + case ComputePackage.SERVER__FLAVOR: + return flavor != null; + case ComputePackage.SERVER__ADDRESSES: + return addresses != null && !addresses.isEmpty(); + case ComputePackage.SERVER__SECURITY_GROUPS: + return security_groups != null && !security_groups.isEmpty(); + case ComputePackage.SERVER__METADATA: + return metadata != null && !metadata.isEmpty(); + case ComputePackage.SERVER__LINKS: + return links != null && !links.isEmpty(); + case ComputePackage.SERVER__FAULT: + return fault != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(", user_id: "); + result.append(user_id); + result.append(", name: "); + result.append(name); + result.append(", updated: "); + result.append(updated); + result.append(", created: "); + result.append(created); + result.append(", hostId: "); + result.append(hostId); + result.append(", accessIPv4: "); + result.append(accessIPv4); + result.append(", accessIPv6: "); + result.append(accessIPv6); + result.append(", status: "); + result.append(status); + result.append(", config_drive: "); + result.append(config_drive); + result.append(", key_name: "); + result.append(key_name); + result.append(", progress: "); + result.append(progress); + result.append(", OS_DCF_diskConfig: "); + result.append(oS_DCF_diskConfig); + result.append(", OS_EXT_STS_power_state: "); + result.append(oS_EXT_STS_power_state); + result.append(", OS_EXT_STS_vm_state: "); + result.append(oS_EXT_STS_vm_state); + result.append(", OS_EXT_STS_task_state: "); + result.append(oS_EXT_STS_task_state); + result.append(", OS_EXT_SRV_ATTR_host: "); + result.append(oS_EXT_SRV_ATTR_host); + result.append(", OS_EXT_SRV_ATTR_instance_name: "); + result.append(oS_EXT_SRV_ATTR_instance_name); + result.append(", OS_EXT_SRV_ATTR_hypervisor_hostname: "); + result.append(oS_EXT_SRV_ATTR_hypervisor_hostname); + result.append(", OS_SRV_USG_launched_at: "); + result.append(oS_SRV_USG_launched_at); + result.append(", OS_SRV_USG_terminated_at: "); + result.append(oS_SRV_USG_terminated_at); + result.append(')'); + return result.toString(); + } + +} //ServerImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeAttachmentImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeAttachmentImpl.java new file mode 100644 index 0000000..abdd4a5 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeAttachmentImpl.java @@ -0,0 +1,346 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.VolumeAttachment; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Volume Attachment'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl#getDevice Device}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl#getServer_id Server id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl#getVolume_id Volume id}
  • + *
+ *

+ * + * @generated + */ +public class VolumeAttachmentImpl extends MinimalEObjectImpl.Container implements VolumeAttachment { + /** + * The default value of the '{@link #getDevice() Device}' attribute. + * + * + * @see #getDevice() + * @generated + * @ordered + */ + protected static final String DEVICE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDevice() Device}' attribute. + * + * + * @see #getDevice() + * @generated + * @ordered + */ + protected String device = DEVICE_EDEFAULT; + + /** + * The default value of the '{@link #getServer_id() Server id}' attribute. + * + * + * @see #getServer_id() + * @generated + * @ordered + */ + protected static final String SERVER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServer_id() Server id}' attribute. + * + * + * @see #getServer_id() + * @generated + * @ordered + */ + protected String server_id = SERVER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getVolume_id() Volume id}' attribute. + * + * + * @see #getVolume_id() + * @generated + * @ordered + */ + protected static final String VOLUME_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVolume_id() Volume id}' attribute. + * + * + * @see #getVolume_id() + * @generated + * @ordered + */ + protected String volume_id = VOLUME_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected VolumeAttachmentImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.VOLUME_ATTACHMENT; + } + + /** + * + * + * @generated + */ + public String getDevice() { + return device; + } + + /** + * + * + * @generated + */ + public void setDevice(String newDevice) { + String oldDevice = device; + device = newDevice; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME_ATTACHMENT__DEVICE, oldDevice, device)); + } + + /** + * + * + * @generated + */ + public String getServer_id() { + return server_id; + } + + /** + * + * + * @generated + */ + public void setServer_id(String newServer_id) { + String oldServer_id = server_id; + server_id = newServer_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME_ATTACHMENT__SERVER_ID, oldServer_id, server_id)); + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME_ATTACHMENT__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getVolume_id() { + return volume_id; + } + + /** + * + * + * @generated + */ + public void setVolume_id(String newVolume_id) { + String oldVolume_id = volume_id; + volume_id = newVolume_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID, oldVolume_id, volume_id)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.VOLUME_ATTACHMENT__DEVICE: + return getDevice(); + case ComputePackage.VOLUME_ATTACHMENT__SERVER_ID: + return getServer_id(); + case ComputePackage.VOLUME_ATTACHMENT__ID: + return getId(); + case ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID: + return getVolume_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.VOLUME_ATTACHMENT__DEVICE: + setDevice((String)newValue); + return; + case ComputePackage.VOLUME_ATTACHMENT__SERVER_ID: + setServer_id((String)newValue); + return; + case ComputePackage.VOLUME_ATTACHMENT__ID: + setId((String)newValue); + return; + case ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID: + setVolume_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.VOLUME_ATTACHMENT__DEVICE: + setDevice(DEVICE_EDEFAULT); + return; + case ComputePackage.VOLUME_ATTACHMENT__SERVER_ID: + setServer_id(SERVER_ID_EDEFAULT); + return; + case ComputePackage.VOLUME_ATTACHMENT__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID: + setVolume_id(VOLUME_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.VOLUME_ATTACHMENT__DEVICE: + return DEVICE_EDEFAULT == null ? device != null : !DEVICE_EDEFAULT.equals(device); + case ComputePackage.VOLUME_ATTACHMENT__SERVER_ID: + return SERVER_ID_EDEFAULT == null ? server_id != null : !SERVER_ID_EDEFAULT.equals(server_id); + case ComputePackage.VOLUME_ATTACHMENT__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID: + return VOLUME_ID_EDEFAULT == null ? volume_id != null : !VOLUME_ID_EDEFAULT.equals(volume_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (device: "); + result.append(device); + result.append(", server_id: "); + result.append(server_id); + result.append(", id: "); + result.append(id); + result.append(", volume_id: "); + result.append(volume_id); + result.append(')'); + return result.toString(); + } + +} //VolumeAttachmentImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeImpl.java new file mode 100644 index 0000000..d443043 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeImpl.java @@ -0,0 +1,713 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Metadata; +import org.openecomp.ncomp.openstack.compute.Volume; +import org.openecomp.ncomp.openstack.compute.VolumeAttachment; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Volume'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getDisplay_name Display name}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getAttachments Attachments}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getAvailability_zone Availability zone}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getCreated_at Created at}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getVolume_type Volume type}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getMetadata Metadata}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getSize Size}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getSnapshot_id Snapshot id}
  • + *
  • {@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getDisplay_description Display description}
  • + *
+ *

+ * + * @generated + */ +public class VolumeImpl extends NamedEntityImpl implements Volume { + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getDisplay_name() Display name}' attribute. + * + * + * @see #getDisplay_name() + * @generated + * @ordered + */ + protected static final String DISPLAY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisplay_name() Display name}' attribute. + * + * + * @see #getDisplay_name() + * @generated + * @ordered + */ + protected String display_name = DISPLAY_NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getAttachments() Attachments}' containment reference list. + * + * + * @see #getAttachments() + * @generated + * @ordered + */ + protected EList attachments; + + /** + * The default value of the '{@link #getAvailability_zone() Availability zone}' attribute. + * + * + * @see #getAvailability_zone() + * @generated + * @ordered + */ + protected static final String AVAILABILITY_ZONE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAvailability_zone() Availability zone}' attribute. + * + * + * @see #getAvailability_zone() + * @generated + * @ordered + */ + protected String availability_zone = AVAILABILITY_ZONE_EDEFAULT; + + /** + * The default value of the '{@link #getCreated_at() Created at}' attribute. + * + * + * @see #getCreated_at() + * @generated + * @ordered + */ + protected static final String CREATED_AT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated_at() Created at}' attribute. + * + * + * @see #getCreated_at() + * @generated + * @ordered + */ + protected String created_at = CREATED_AT_EDEFAULT; + + /** + * The default value of the '{@link #getVolume_type() Volume type}' attribute. + * + * + * @see #getVolume_type() + * @generated + * @ordered + */ + protected static final String VOLUME_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVolume_type() Volume type}' attribute. + * + * + * @see #getVolume_type() + * @generated + * @ordered + */ + protected String volume_type = VOLUME_TYPE_EDEFAULT; + + /** + * The cached value of the '{@link #getMetadata() Metadata}' containment reference list. + * + * + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList metadata; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getSize() Size}' attribute. + * + * + * @see #getSize() + * @generated + * @ordered + */ + protected static final int SIZE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getSize() Size}' attribute. + * + * + * @see #getSize() + * @generated + * @ordered + */ + protected int size = SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getSnapshot_id() Snapshot id}' attribute. + * + * + * @see #getSnapshot_id() + * @generated + * @ordered + */ + protected static final String SNAPSHOT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSnapshot_id() Snapshot id}' attribute. + * + * + * @see #getSnapshot_id() + * @generated + * @ordered + */ + protected String snapshot_id = SNAPSHOT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getDisplay_description() Display description}' attribute. + * + * + * @see #getDisplay_description() + * @generated + * @ordered + */ + protected static final String DISPLAY_DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisplay_description() Display description}' attribute. + * + * + * @see #getDisplay_description() + * @generated + * @ordered + */ + protected String display_description = DISPLAY_DESCRIPTION_EDEFAULT; + + /** + * + * + * @generated + */ + protected VolumeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.VOLUME; + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__STATUS, oldStatus, status)); + } + + /** + * + * + * @generated + */ + public String getDisplay_name() { + return display_name; + } + + /** + * + * + * @generated + */ + public void setDisplay_name(String newDisplay_name) { + String oldDisplay_name = display_name; + display_name = newDisplay_name; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__DISPLAY_NAME, oldDisplay_name, display_name)); + } + + /** + * + * + * @generated + */ + public EList getAttachments() { + if (attachments == null) { + attachments = new EObjectContainmentEList(VolumeAttachment.class, this, ComputePackage.VOLUME__ATTACHMENTS); + } + return attachments; + } + + /** + * + * + * @generated + */ + public String getAvailability_zone() { + return availability_zone; + } + + /** + * + * + * @generated + */ + public void setAvailability_zone(String newAvailability_zone) { + String oldAvailability_zone = availability_zone; + availability_zone = newAvailability_zone; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__AVAILABILITY_ZONE, oldAvailability_zone, availability_zone)); + } + + /** + * + * + * @generated + */ + public String getCreated_at() { + return created_at; + } + + /** + * + * + * @generated + */ + public void setCreated_at(String newCreated_at) { + String oldCreated_at = created_at; + created_at = newCreated_at; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__CREATED_AT, oldCreated_at, created_at)); + } + + /** + * + * + * @generated + */ + public String getVolume_type() { + return volume_type; + } + + /** + * + * + * @generated + */ + public void setVolume_type(String newVolume_type) { + String oldVolume_type = volume_type; + volume_type = newVolume_type; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__VOLUME_TYPE, oldVolume_type, volume_type)); + } + + /** + * + * + * @generated + */ + public EList getMetadata() { + if (metadata == null) { + metadata = new EObjectContainmentEList(Metadata.class, this, ComputePackage.VOLUME__METADATA); + } + return metadata; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public int getSize() { + return size; + } + + /** + * + * + * @generated + */ + public void setSize(int newSize) { + int oldSize = size; + size = newSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__SIZE, oldSize, size)); + } + + /** + * + * + * @generated + */ + public String getSnapshot_id() { + return snapshot_id; + } + + /** + * + * + * @generated + */ + public void setSnapshot_id(String newSnapshot_id) { + String oldSnapshot_id = snapshot_id; + snapshot_id = newSnapshot_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__SNAPSHOT_ID, oldSnapshot_id, snapshot_id)); + } + + /** + * + * + * @generated + */ + public String getDisplay_description() { + return display_description; + } + + /** + * + * + * @generated + */ + public void setDisplay_description(String newDisplay_description) { + String oldDisplay_description = display_description; + display_description = newDisplay_description; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__DISPLAY_DESCRIPTION, oldDisplay_description, display_description)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.VOLUME__ATTACHMENTS: + return ((InternalEList)getAttachments()).basicRemove(otherEnd, msgs); + case ComputePackage.VOLUME__METADATA: + return ((InternalEList)getMetadata()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.VOLUME__STATUS: + return getStatus(); + case ComputePackage.VOLUME__DISPLAY_NAME: + return getDisplay_name(); + case ComputePackage.VOLUME__ATTACHMENTS: + return getAttachments(); + case ComputePackage.VOLUME__AVAILABILITY_ZONE: + return getAvailability_zone(); + case ComputePackage.VOLUME__CREATED_AT: + return getCreated_at(); + case ComputePackage.VOLUME__VOLUME_TYPE: + return getVolume_type(); + case ComputePackage.VOLUME__METADATA: + return getMetadata(); + case ComputePackage.VOLUME__ID: + return getId(); + case ComputePackage.VOLUME__SIZE: + return getSize(); + case ComputePackage.VOLUME__SNAPSHOT_ID: + return getSnapshot_id(); + case ComputePackage.VOLUME__DISPLAY_DESCRIPTION: + return getDisplay_description(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.VOLUME__STATUS: + setStatus((String)newValue); + return; + case ComputePackage.VOLUME__DISPLAY_NAME: + setDisplay_name((String)newValue); + return; + case ComputePackage.VOLUME__ATTACHMENTS: + getAttachments().clear(); + getAttachments().addAll((Collection)newValue); + return; + case ComputePackage.VOLUME__AVAILABILITY_ZONE: + setAvailability_zone((String)newValue); + return; + case ComputePackage.VOLUME__CREATED_AT: + setCreated_at((String)newValue); + return; + case ComputePackage.VOLUME__VOLUME_TYPE: + setVolume_type((String)newValue); + return; + case ComputePackage.VOLUME__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection)newValue); + return; + case ComputePackage.VOLUME__ID: + setId((String)newValue); + return; + case ComputePackage.VOLUME__SIZE: + setSize((Integer)newValue); + return; + case ComputePackage.VOLUME__SNAPSHOT_ID: + setSnapshot_id((String)newValue); + return; + case ComputePackage.VOLUME__DISPLAY_DESCRIPTION: + setDisplay_description((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.VOLUME__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case ComputePackage.VOLUME__DISPLAY_NAME: + setDisplay_name(DISPLAY_NAME_EDEFAULT); + return; + case ComputePackage.VOLUME__ATTACHMENTS: + getAttachments().clear(); + return; + case ComputePackage.VOLUME__AVAILABILITY_ZONE: + setAvailability_zone(AVAILABILITY_ZONE_EDEFAULT); + return; + case ComputePackage.VOLUME__CREATED_AT: + setCreated_at(CREATED_AT_EDEFAULT); + return; + case ComputePackage.VOLUME__VOLUME_TYPE: + setVolume_type(VOLUME_TYPE_EDEFAULT); + return; + case ComputePackage.VOLUME__METADATA: + getMetadata().clear(); + return; + case ComputePackage.VOLUME__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.VOLUME__SIZE: + setSize(SIZE_EDEFAULT); + return; + case ComputePackage.VOLUME__SNAPSHOT_ID: + setSnapshot_id(SNAPSHOT_ID_EDEFAULT); + return; + case ComputePackage.VOLUME__DISPLAY_DESCRIPTION: + setDisplay_description(DISPLAY_DESCRIPTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.VOLUME__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case ComputePackage.VOLUME__DISPLAY_NAME: + return DISPLAY_NAME_EDEFAULT == null ? display_name != null : !DISPLAY_NAME_EDEFAULT.equals(display_name); + case ComputePackage.VOLUME__ATTACHMENTS: + return attachments != null && !attachments.isEmpty(); + case ComputePackage.VOLUME__AVAILABILITY_ZONE: + return AVAILABILITY_ZONE_EDEFAULT == null ? availability_zone != null : !AVAILABILITY_ZONE_EDEFAULT.equals(availability_zone); + case ComputePackage.VOLUME__CREATED_AT: + return CREATED_AT_EDEFAULT == null ? created_at != null : !CREATED_AT_EDEFAULT.equals(created_at); + case ComputePackage.VOLUME__VOLUME_TYPE: + return VOLUME_TYPE_EDEFAULT == null ? volume_type != null : !VOLUME_TYPE_EDEFAULT.equals(volume_type); + case ComputePackage.VOLUME__METADATA: + return metadata != null && !metadata.isEmpty(); + case ComputePackage.VOLUME__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.VOLUME__SIZE: + return size != SIZE_EDEFAULT; + case ComputePackage.VOLUME__SNAPSHOT_ID: + return SNAPSHOT_ID_EDEFAULT == null ? snapshot_id != null : !SNAPSHOT_ID_EDEFAULT.equals(snapshot_id); + case ComputePackage.VOLUME__DISPLAY_DESCRIPTION: + return DISPLAY_DESCRIPTION_EDEFAULT == null ? display_description != null : !DISPLAY_DESCRIPTION_EDEFAULT.equals(display_description); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (status: "); + result.append(status); + result.append(", display_name: "); + result.append(display_name); + result.append(", availability_zone: "); + result.append(availability_zone); + result.append(", created_at: "); + result.append(created_at); + result.append(", volume_type: "); + result.append(volume_type); + result.append(", id: "); + result.append(id); + result.append(", size: "); + result.append(size); + result.append(", snapshot_id: "); + result.append(snapshot_id); + result.append(", display_description: "); + result.append(display_description); + result.append(')'); + return result.toString(); + } + +} //VolumeImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeAdapterFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeAdapterFactory.java new file mode 100644 index 0000000..2836eef --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeAdapterFactory.java @@ -0,0 +1,595 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.util; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.openstack.compute.*; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage + * @generated + */ +public class ComputeAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static ComputePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public ComputeAdapterFactory() { + if (modelPackage == null) { + modelPackage = ComputePackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected ComputeSwitch modelSwitch = + new ComputeSwitch() { + @Override + public Adapter caseComputeService(ComputeService object) { + return createComputeServiceAdapter(); + } + @Override + public Adapter caseOpenstackRequestNewServer(OpenstackRequestNewServer object) { + return createOpenstackRequestNewServerAdapter(); + } + @Override + public Adapter caseOpenstackRequestKeyPair(OpenstackRequestKeyPair object) { + return createOpenstackRequestKeyPairAdapter(); + } + @Override + public Adapter caseOpenstackRequestFlavor(OpenstackRequestFlavor object) { + return createOpenstackRequestFlavorAdapter(); + } + @Override + public Adapter caseOpenstackRequestSecurityGroup(OpenstackRequestSecurityGroup object) { + return createOpenstackRequestSecurityGroupAdapter(); + } + @Override + public Adapter caseOpenstackRequestServerAction(OpenstackRequestServerAction object) { + return createOpenstackRequestServerActionAdapter(); + } + @Override + public Adapter caseOpenstackRequestPoll(OpenstackRequestPoll object) { + return createOpenstackRequestPollAdapter(); + } + @Override + public Adapter caseServer(Server object) { + return createServerAdapter(); + } + @Override + public Adapter caseImage(Image object) { + return createImageAdapter(); + } + @Override + public Adapter caseFlavor(Flavor object) { + return createFlavorAdapter(); + } + @Override + public Adapter caseAddresses(Addresses object) { + return createAddressesAdapter(); + } + @Override + public Adapter caseAddress(Address object) { + return createAddressAdapter(); + } + @Override + public Adapter caseLink(Link object) { + return createLinkAdapter(); + } + @Override + public Adapter caseMetadata(Metadata object) { + return createMetadataAdapter(); + } + @Override + public Adapter caseFault(Fault object) { + return createFaultAdapter(); + } + @Override + public Adapter casePersonality(Personality object) { + return createPersonalityAdapter(); + } + @Override + public Adapter caseReference(Reference object) { + return createReferenceAdapter(); + } + @Override + public Adapter caseVolume(Volume object) { + return createVolumeAdapter(); + } + @Override + public Adapter caseVolumeAttachment(VolumeAttachment object) { + return createVolumeAttachmentAdapter(); + } + @Override + public Adapter caseFloatingIp(FloatingIp object) { + return createFloatingIpAdapter(); + } + @Override + public Adapter caseSecurityGroup(SecurityGroup object) { + return createSecurityGroupAdapter(); + } + @Override + public Adapter caseSecurityRule(SecurityRule object) { + return createSecurityRuleAdapter(); + } + @Override + public Adapter caseSecurityRange(SecurityRange object) { + return createSecurityRangeAdapter(); + } + @Override + public Adapter caseKeyPair(KeyPair object) { + return createKeyPairAdapter(); + } + @Override + public Adapter caseOpenStackRequest(OpenStackRequest object) { + return createOpenStackRequestAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.ComputeService Service}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.ComputeService + * @generated + */ + public Adapter createComputeServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer Openstack Request New Server}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer + * @generated + */ + public Adapter createOpenstackRequestNewServerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair Openstack Request Key Pair}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair + * @generated + */ + public Adapter createOpenstackRequestKeyPairAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor Openstack Request Flavor}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor + * @generated + */ + public Adapter createOpenstackRequestFlavorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup Openstack Request Security Group}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup + * @generated + */ + public Adapter createOpenstackRequestSecurityGroupAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction Openstack Request Server Action}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction + * @generated + */ + public Adapter createOpenstackRequestServerActionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll Openstack Request Poll}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll + * @generated + */ + public Adapter createOpenstackRequestPollAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Server Server}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Server + * @generated + */ + public Adapter createServerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Image Image}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Image + * @generated + */ + public Adapter createImageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Flavor Flavor}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Flavor + * @generated + */ + public Adapter createFlavorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Addresses Addresses}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Addresses + * @generated + */ + public Adapter createAddressesAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Address Address}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Address + * @generated + */ + public Adapter createAddressAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Link Link}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Link + * @generated + */ + public Adapter createLinkAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Metadata Metadata}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Metadata + * @generated + */ + public Adapter createMetadataAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Fault Fault}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Fault + * @generated + */ + public Adapter createFaultAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Personality Personality}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Personality + * @generated + */ + public Adapter createPersonalityAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Reference Reference}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Reference + * @generated + */ + public Adapter createReferenceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Volume Volume}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.Volume + * @generated + */ + public Adapter createVolumeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment Volume Attachment}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.VolumeAttachment + * @generated + */ + public Adapter createVolumeAttachmentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.FloatingIp Floating Ip}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.FloatingIp + * @generated + */ + public Adapter createFloatingIpAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup Security Group}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.SecurityGroup + * @generated + */ + public Adapter createSecurityGroupAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.SecurityRule Security Rule}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.SecurityRule + * @generated + */ + public Adapter createSecurityRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.SecurityRange Security Range}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.SecurityRange + * @generated + */ + public Adapter createSecurityRangeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.KeyPair Key Pair}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.KeyPair + * @generated + */ + public Adapter createKeyPairAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest Open Stack Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.core.OpenStackRequest + * @generated + */ + public Adapter createOpenStackRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //ComputeAdapterFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeSwitch.java new file mode 100644 index 0000000..4eba2cb --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeSwitch.java @@ -0,0 +1,656 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.util; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.openstack.compute.*; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage + * @generated + */ +public class ComputeSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static ComputePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public ComputeSwitch() { + if (modelPackage == null) { + modelPackage = ComputePackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case ComputePackage.COMPUTE_SERVICE: { + ComputeService computeService = (ComputeService)theEObject; + T result = caseComputeService(computeService); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER: { + OpenstackRequestNewServer openstackRequestNewServer = (OpenstackRequestNewServer)theEObject; + T result = caseOpenstackRequestNewServer(openstackRequestNewServer); + if (result == null) result = caseOpenStackRequest(openstackRequestNewServer); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR: { + OpenstackRequestKeyPair openstackRequestKeyPair = (OpenstackRequestKeyPair)theEObject; + T result = caseOpenstackRequestKeyPair(openstackRequestKeyPair); + if (result == null) result = caseOpenStackRequest(openstackRequestKeyPair); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.OPENSTACK_REQUEST_FLAVOR: { + OpenstackRequestFlavor openstackRequestFlavor = (OpenstackRequestFlavor)theEObject; + T result = caseOpenstackRequestFlavor(openstackRequestFlavor); + if (result == null) result = caseOpenStackRequest(openstackRequestFlavor); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP: { + OpenstackRequestSecurityGroup openstackRequestSecurityGroup = (OpenstackRequestSecurityGroup)theEObject; + T result = caseOpenstackRequestSecurityGroup(openstackRequestSecurityGroup); + if (result == null) result = caseOpenStackRequest(openstackRequestSecurityGroup); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION: { + OpenstackRequestServerAction openstackRequestServerAction = (OpenstackRequestServerAction)theEObject; + T result = caseOpenstackRequestServerAction(openstackRequestServerAction); + if (result == null) result = caseOpenStackRequest(openstackRequestServerAction); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.OPENSTACK_REQUEST_POLL: { + OpenstackRequestPoll openstackRequestPoll = (OpenstackRequestPoll)theEObject; + T result = caseOpenstackRequestPoll(openstackRequestPoll); + if (result == null) result = caseOpenStackRequest(openstackRequestPoll); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.SERVER: { + Server server = (Server)theEObject; + T result = caseServer(server); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.IMAGE: { + Image image = (Image)theEObject; + T result = caseImage(image); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.FLAVOR: { + Flavor flavor = (Flavor)theEObject; + T result = caseFlavor(flavor); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.ADDRESSES: { + Addresses addresses = (Addresses)theEObject; + T result = caseAddresses(addresses); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.ADDRESS: { + Address address = (Address)theEObject; + T result = caseAddress(address); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.LINK: { + Link link = (Link)theEObject; + T result = caseLink(link); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.METADATA: { + Metadata metadata = (Metadata)theEObject; + T result = caseMetadata(metadata); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.FAULT: { + Fault fault = (Fault)theEObject; + T result = caseFault(fault); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.PERSONALITY: { + Personality personality = (Personality)theEObject; + T result = casePersonality(personality); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.REFERENCE: { + Reference reference = (Reference)theEObject; + T result = caseReference(reference); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.VOLUME: { + Volume volume = (Volume)theEObject; + T result = caseVolume(volume); + if (result == null) result = caseNamedEntity(volume); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.VOLUME_ATTACHMENT: { + VolumeAttachment volumeAttachment = (VolumeAttachment)theEObject; + T result = caseVolumeAttachment(volumeAttachment); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.FLOATING_IP: { + FloatingIp floatingIp = (FloatingIp)theEObject; + T result = caseFloatingIp(floatingIp); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.SECURITY_GROUP: { + SecurityGroup securityGroup = (SecurityGroup)theEObject; + T result = caseSecurityGroup(securityGroup); + if (result == null) result = caseNamedEntity(securityGroup); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.SECURITY_RULE: { + SecurityRule securityRule = (SecurityRule)theEObject; + T result = caseSecurityRule(securityRule); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.SECURITY_RANGE: { + SecurityRange securityRange = (SecurityRange)theEObject; + T result = caseSecurityRange(securityRange); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ComputePackage.KEY_PAIR: { + KeyPair keyPair = (KeyPair)theEObject; + T result = caseKeyPair(keyPair); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseComputeService(ComputeService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Openstack Request New Server'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Openstack Request New Server'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenstackRequestNewServer(OpenstackRequestNewServer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Openstack Request Key Pair'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Openstack Request Key Pair'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenstackRequestKeyPair(OpenstackRequestKeyPair object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Openstack Request Flavor'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Openstack Request Flavor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenstackRequestFlavor(OpenstackRequestFlavor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Openstack Request Security Group'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Openstack Request Security Group'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenstackRequestSecurityGroup(OpenstackRequestSecurityGroup object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Openstack Request Server Action'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Openstack Request Server Action'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenstackRequestServerAction(OpenstackRequestServerAction object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Openstack Request Poll'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Openstack Request Poll'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenstackRequestPoll(OpenstackRequestPoll object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Server'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Server'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseServer(Server object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Image'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Image'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseImage(Image object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Flavor'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Flavor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFlavor(Flavor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Addresses'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Addresses'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAddresses(Addresses object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Address'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Address'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAddress(Address object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Link'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Link'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLink(Link object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Metadata'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Metadata'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMetadata(Metadata object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Fault'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Fault'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFault(Fault object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Personality'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Personality'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePersonality(Personality object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Reference'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Reference'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseReference(Reference object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Volume'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Volume'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVolume(Volume object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Volume Attachment'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Volume Attachment'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVolumeAttachment(VolumeAttachment object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Floating Ip'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Floating Ip'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFloatingIp(FloatingIp object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Security Group'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Security Group'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSecurityGroup(SecurityGroup object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Security Rule'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Security Rule'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSecurityRule(SecurityRule object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Security Range'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Security Range'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSecurityRange(SecurityRange object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Key Pair'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Key Pair'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseKeyPair(KeyPair object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Open Stack Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Open Stack Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenStackRequest(OpenStackRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Named Entity'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Entity'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedEntity(NamedEntity object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //ComputeSwitch diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CoreFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CoreFactory.java new file mode 100644 index 0000000..6724e3c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CoreFactory.java @@ -0,0 +1,90 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.openstack.core.CorePackage + * @generated + */ +public interface CoreFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + CoreFactory eINSTANCE = org.openecomp.ncomp.openstack.core.impl.CoreFactoryImpl.init(); + + /** + * Returns a new object of class 'Openstack Request Delete'. + * + * + * @return a new object of class 'Openstack Request Delete'. + * @generated + */ + OpenstackRequestDelete createOpenstackRequestDelete(); + + /** + * Returns a new object of class 'Openstack Request Poll'. + * + * + * @return a new object of class 'Openstack Request Poll'. + * @generated + */ + OpenstackRequestPoll createOpenstackRequestPoll(); + + /** + * Returns a new object of class 'Virtual Machine Type'. + * + * + * @return a new object of class 'Virtual Machine Type'. + * @generated + */ + VirtualMachineType createVirtualMachineType(); + + /** + * Returns a new object of class 'Security Rule'. + * + * + * @return a new object of class 'Security Rule'. + * @generated + */ + SecurityRule createSecurityRule(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + CorePackage getCorePackage(); + +} //CoreFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CorePackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CorePackage.java new file mode 100644 index 0000000..a67d8db --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CorePackage.java @@ -0,0 +1,999 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.openecomp.ncomp.openstack.core.CoreFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-openstack-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.openstack'" + * @generated + */ +public interface CorePackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "core"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.openstack.core"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "core"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + CorePackage eINSTANCE = org.openecomp.ncomp.openstack.core.impl.CorePackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl Open Stack Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getOpenStackRequest() + * @generated + */ + int OPEN_STACK_REQUEST = 0; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_REQUEST__PROJECT_NAME = 0; + + /** + * The number of structural features of the 'Open Stack Request' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_REQUEST_FEATURE_COUNT = 1; + + /** + * The number of operations of the 'Open Stack Request' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_REQUEST_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.core.impl.OpenstackRequestDeleteImpl Openstack Request Delete}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.OpenstackRequestDeleteImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getOpenstackRequestDelete() + * @generated + */ + int OPENSTACK_REQUEST_DELETE = 1; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_DELETE__PROJECT_NAME = OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Object Type' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_DELETE__OBJECT_TYPE = OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Object Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_DELETE__OBJECT_NAME = OPEN_STACK_REQUEST_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Openstack Request Delete' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_DELETE_FEATURE_COUNT = OPEN_STACK_REQUEST_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Openstack Request Delete' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_DELETE_OPERATION_COUNT = OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.core.impl.OpenstackRequestPollImpl Openstack Request Poll}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.OpenstackRequestPollImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getOpenstackRequestPoll() + * @generated + */ + int OPENSTACK_REQUEST_POLL = 2; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_POLL__PROJECT_NAME = OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The number of structural features of the 'Openstack Request Poll' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_POLL_FEATURE_COUNT = OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of operations of the 'Openstack Request Poll' class. + * + * + * @generated + * @ordered + */ + int OPENSTACK_REQUEST_POLL_OPERATION_COUNT = OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl Virtual Machine Type}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getVirtualMachineType() + * @generated + */ + int VIRTUAL_MACHINE_TYPE = 3; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__NAME = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__LAST_POLLED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__LAST_CHANGED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__CREATED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__DESCRIPTION = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Number Of Cores' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Memory Size MB' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Root Disk Size GB' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Disk Size GB' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Volume Size GB' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Image Name' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__IMAGE_NAME = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Flavor Name' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__FLAVOR_NAME = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Need Public Ip' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Deployment Status' attribute. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Incoming Security Rules' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Outbound Security Rules' containment reference list. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The number of structural features of the 'Virtual Machine Type' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE_FEATURE_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 12; + + /** + * The number of operations of the 'Virtual Machine Type' class. + * + * + * @generated + * @ordered + */ + int VIRTUAL_MACHINE_TYPE_OPERATION_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.core.impl.SecurityRuleImpl Security Rule}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.SecurityRuleImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getSecurityRule() + * @generated + */ + int SECURITY_RULE = 4; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__NAME = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__LAST_POLLED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__LAST_CHANGED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__CREATED = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Port Range Start' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__PORT_RANGE_START = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Port Range End' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__PORT_RANGE_END = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Prefix' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__PREFIX = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Ip Protocol' attribute. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE__IP_PROTOCOL = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Security Rule' class. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE_FEATURE_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The number of operations of the 'Security Rule' class. + * + * + * @generated + * @ordered + */ + int SECURITY_RULE_OPERATION_COUNT = org.openecomp.ncomp.core.CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.core.SecurityRuleProtocol Security Rule Protocol}' enum. + * + * + * @see org.openecomp.ncomp.openstack.core.SecurityRuleProtocol + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getSecurityRuleProtocol() + * @generated + */ + int SECURITY_RULE_PROTOCOL = 5; + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest Open Stack Request}'. + * + * + * @return the meta object for class 'Open Stack Request'. + * @see org.openecomp.ncomp.openstack.core.OpenStackRequest + * @generated + */ + EClass getOpenStackRequest(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest#getProjectName Project Name}'. + * + * + * @return the meta object for the attribute 'Project Name'. + * @see org.openecomp.ncomp.openstack.core.OpenStackRequest#getProjectName() + * @see #getOpenStackRequest() + * @generated + */ + EAttribute getOpenStackRequest_ProjectName(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete Openstack Request Delete}'. + * + * + * @return the meta object for class 'Openstack Request Delete'. + * @see org.openecomp.ncomp.openstack.core.OpenstackRequestDelete + * @generated + */ + EClass getOpenstackRequestDelete(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectType Object Type}'. + * + * + * @return the meta object for the attribute 'Object Type'. + * @see org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectType() + * @see #getOpenstackRequestDelete() + * @generated + */ + EAttribute getOpenstackRequestDelete_ObjectType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectName Object Name}'. + * + * + * @return the meta object for the attribute 'Object Name'. + * @see org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectName() + * @see #getOpenstackRequestDelete() + * @generated + */ + EAttribute getOpenstackRequestDelete_ObjectName(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestPoll Openstack Request Poll}'. + * + * + * @return the meta object for class 'Openstack Request Poll'. + * @see org.openecomp.ncomp.openstack.core.OpenstackRequestPoll + * @generated + */ + EClass getOpenstackRequestPoll(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType Virtual Machine Type}'. + * + * + * @return the meta object for class 'Virtual Machine Type'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType + * @generated + */ + EClass getVirtualMachineType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDescription Description}'. + * + * + * @return the meta object for the attribute 'Description'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getDescription() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_Description(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getNumberOfCores Number Of Cores}'. + * + * + * @return the meta object for the attribute 'Number Of Cores'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getNumberOfCores() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_NumberOfCores(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getMemorySizeMB Memory Size MB}'. + * + * + * @return the meta object for the attribute 'Memory Size MB'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getMemorySizeMB() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_MemorySizeMB(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getRootDiskSizeGB Root Disk Size GB}'. + * + * + * @return the meta object for the attribute 'Root Disk Size GB'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getRootDiskSizeGB() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_RootDiskSizeGB(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDiskSizeGB Disk Size GB}'. + * + * + * @return the meta object for the attribute 'Disk Size GB'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getDiskSizeGB() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_DiskSizeGB(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getVolumeSizeGB Volume Size GB}'. + * + * + * @return the meta object for the attribute 'Volume Size GB'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getVolumeSizeGB() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_VolumeSizeGB(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getImageName Image Name}'. + * + * + * @return the meta object for the attribute 'Image Name'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getImageName() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_ImageName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getFlavorName Flavor Name}'. + * + * + * @return the meta object for the attribute 'Flavor Name'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getFlavorName() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_FlavorName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#isNeedPublicIp Need Public Ip}'. + * + * + * @return the meta object for the attribute 'Need Public Ip'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#isNeedPublicIp() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_NeedPublicIp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDeploymentStatus Deployment Status}'. + * + * + * @return the meta object for the attribute 'Deployment Status'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getDeploymentStatus() + * @see #getVirtualMachineType() + * @generated + */ + EAttribute getVirtualMachineType_DeploymentStatus(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getIncomingSecurityRules Incoming Security Rules}'. + * + * + * @return the meta object for the containment reference list 'Incoming Security Rules'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getIncomingSecurityRules() + * @see #getVirtualMachineType() + * @generated + */ + EReference getVirtualMachineType_IncomingSecurityRules(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getOutboundSecurityRules Outbound Security Rules}'. + * + * + * @return the meta object for the containment reference list 'Outbound Security Rules'. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType#getOutboundSecurityRules() + * @see #getVirtualMachineType() + * @generated + */ + EReference getVirtualMachineType_OutboundSecurityRules(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.core.SecurityRule Security Rule}'. + * + * + * @return the meta object for class 'Security Rule'. + * @see org.openecomp.ncomp.openstack.core.SecurityRule + * @generated + */ + EClass getSecurityRule(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeStart Port Range Start}'. + * + * + * @return the meta object for the attribute 'Port Range Start'. + * @see org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeStart() + * @see #getSecurityRule() + * @generated + */ + EAttribute getSecurityRule_PortRangeStart(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeEnd Port Range End}'. + * + * + * @return the meta object for the attribute 'Port Range End'. + * @see org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeEnd() + * @see #getSecurityRule() + * @generated + */ + EAttribute getSecurityRule_PortRangeEnd(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getPrefix Prefix}'. + * + * + * @return the meta object for the attribute 'Prefix'. + * @see org.openecomp.ncomp.openstack.core.SecurityRule#getPrefix() + * @see #getSecurityRule() + * @generated + */ + EAttribute getSecurityRule_Prefix(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getIpProtocol Ip Protocol}'. + * + * + * @return the meta object for the attribute 'Ip Protocol'. + * @see org.openecomp.ncomp.openstack.core.SecurityRule#getIpProtocol() + * @see #getSecurityRule() + * @generated + */ + EAttribute getSecurityRule_IpProtocol(); + + /** + * Returns the meta object for enum '{@link org.openecomp.ncomp.openstack.core.SecurityRuleProtocol Security Rule Protocol}'. + * + * + * @return the meta object for enum 'Security Rule Protocol'. + * @see org.openecomp.ncomp.openstack.core.SecurityRuleProtocol + * @generated + */ + EEnum getSecurityRuleProtocol(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + CoreFactory getCoreFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl Open Stack Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getOpenStackRequest() + * @generated + */ + EClass OPEN_STACK_REQUEST = eINSTANCE.getOpenStackRequest(); + + /** + * The meta object literal for the 'Project Name' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_REQUEST__PROJECT_NAME = eINSTANCE.getOpenStackRequest_ProjectName(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.core.impl.OpenstackRequestDeleteImpl Openstack Request Delete}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.OpenstackRequestDeleteImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getOpenstackRequestDelete() + * @generated + */ + EClass OPENSTACK_REQUEST_DELETE = eINSTANCE.getOpenstackRequestDelete(); + + /** + * The meta object literal for the 'Object Type' attribute feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_DELETE__OBJECT_TYPE = eINSTANCE.getOpenstackRequestDelete_ObjectType(); + + /** + * The meta object literal for the 'Object Name' attribute feature. + * + * + * @generated + */ + EAttribute OPENSTACK_REQUEST_DELETE__OBJECT_NAME = eINSTANCE.getOpenstackRequestDelete_ObjectName(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.core.impl.OpenstackRequestPollImpl Openstack Request Poll}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.OpenstackRequestPollImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getOpenstackRequestPoll() + * @generated + */ + EClass OPENSTACK_REQUEST_POLL = eINSTANCE.getOpenstackRequestPoll(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl Virtual Machine Type}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getVirtualMachineType() + * @generated + */ + EClass VIRTUAL_MACHINE_TYPE = eINSTANCE.getVirtualMachineType(); + + /** + * The meta object literal for the 'Description' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__DESCRIPTION = eINSTANCE.getVirtualMachineType_Description(); + + /** + * The meta object literal for the 'Number Of Cores' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES = eINSTANCE.getVirtualMachineType_NumberOfCores(); + + /** + * The meta object literal for the 'Memory Size MB' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB = eINSTANCE.getVirtualMachineType_MemorySizeMB(); + + /** + * The meta object literal for the 'Root Disk Size GB' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB = eINSTANCE.getVirtualMachineType_RootDiskSizeGB(); + + /** + * The meta object literal for the 'Disk Size GB' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB = eINSTANCE.getVirtualMachineType_DiskSizeGB(); + + /** + * The meta object literal for the 'Volume Size GB' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB = eINSTANCE.getVirtualMachineType_VolumeSizeGB(); + + /** + * The meta object literal for the 'Image Name' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__IMAGE_NAME = eINSTANCE.getVirtualMachineType_ImageName(); + + /** + * The meta object literal for the 'Flavor Name' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__FLAVOR_NAME = eINSTANCE.getVirtualMachineType_FlavorName(); + + /** + * The meta object literal for the 'Need Public Ip' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP = eINSTANCE.getVirtualMachineType_NeedPublicIp(); + + /** + * The meta object literal for the 'Deployment Status' attribute feature. + * + * + * @generated + */ + EAttribute VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS = eINSTANCE.getVirtualMachineType_DeploymentStatus(); + + /** + * The meta object literal for the 'Incoming Security Rules' containment reference list feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES = eINSTANCE.getVirtualMachineType_IncomingSecurityRules(); + + /** + * The meta object literal for the 'Outbound Security Rules' containment reference list feature. + * + * + * @generated + */ + EReference VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES = eINSTANCE.getVirtualMachineType_OutboundSecurityRules(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.core.impl.SecurityRuleImpl Security Rule}' class. + * + * + * @see org.openecomp.ncomp.openstack.core.impl.SecurityRuleImpl + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getSecurityRule() + * @generated + */ + EClass SECURITY_RULE = eINSTANCE.getSecurityRule(); + + /** + * The meta object literal for the 'Port Range Start' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RULE__PORT_RANGE_START = eINSTANCE.getSecurityRule_PortRangeStart(); + + /** + * The meta object literal for the 'Port Range End' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RULE__PORT_RANGE_END = eINSTANCE.getSecurityRule_PortRangeEnd(); + + /** + * The meta object literal for the 'Prefix' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RULE__PREFIX = eINSTANCE.getSecurityRule_Prefix(); + + /** + * The meta object literal for the 'Ip Protocol' attribute feature. + * + * + * @generated + */ + EAttribute SECURITY_RULE__IP_PROTOCOL = eINSTANCE.getSecurityRule_IpProtocol(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.core.SecurityRuleProtocol Security Rule Protocol}' enum. + * + * + * @see org.openecomp.ncomp.openstack.core.SecurityRuleProtocol + * @see org.openecomp.ncomp.openstack.core.impl.CorePackageImpl#getSecurityRuleProtocol() + * @generated + */ + EEnum SECURITY_RULE_PROTOCOL = eINSTANCE.getSecurityRuleProtocol(); + + } + +} //CorePackage diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenStackRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenStackRequest.java new file mode 100644 index 0000000..9bd9329 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenStackRequest.java @@ -0,0 +1,71 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Open Stack Request'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.core.OpenStackRequest#getProjectName Project Name}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenStackRequest() + * @model abstract="true" + * @generated + */ +public interface OpenStackRequest extends EObject { + /** + * Returns the value of the 'Project Name' attribute. + * + *

+ * If the meaning of the 'Project Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Project Name' attribute. + * @see #setProjectName(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenStackRequest_ProjectName() + * @model unique="false" + * @generated + */ + String getProjectName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest#getProjectName Project Name}' attribute. + * + * + * @param value the new value of the 'Project Name' attribute. + * @see #getProjectName() + * @generated + */ + void setProjectName(String value); + +} // OpenStackRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestDelete.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestDelete.java new file mode 100644 index 0000000..ec7b0ba --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestDelete.java @@ -0,0 +1,97 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + + +/** + * + * A representation of the model object 'Openstack Request Delete'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectType Object Type}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectName Object Name}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenstackRequestDelete() + * @model + * @generated + */ +public interface OpenstackRequestDelete extends OpenStackRequest { + /** + * Returns the value of the 'Object Type' attribute. + * + *

+ * If the meaning of the 'Object Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Object Type' attribute. + * @see #setObjectType(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenstackRequestDelete_ObjectType() + * @model unique="false" + * @generated + */ + String getObjectType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectType Object Type}' attribute. + * + * + * @param value the new value of the 'Object Type' attribute. + * @see #getObjectType() + * @generated + */ + void setObjectType(String value); + + /** + * Returns the value of the 'Object Name' attribute. + * + *

+ * If the meaning of the 'Object Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Object Name' attribute. + * @see #setObjectName(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenstackRequestDelete_ObjectName() + * @model unique="false" + * @generated + */ + String getObjectName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectName Object Name}' attribute. + * + * + * @param value the new value of the 'Object Name' attribute. + * @see #getObjectName() + * @generated + */ + void setObjectName(String value); + +} // OpenstackRequestDelete diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestPoll.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestPoll.java new file mode 100644 index 0000000..2b7db9a --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestPoll.java @@ -0,0 +1,38 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + + +/** + * + * A representation of the model object 'Openstack Request Poll'. + * + * + * + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenstackRequestPoll() + * @model + * @generated + */ +public interface OpenstackRequestPoll extends OpenStackRequest { +} // OpenstackRequestPoll diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRule.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRule.java new file mode 100644 index 0000000..ed5b13c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRule.java @@ -0,0 +1,155 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Security Rule'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeStart Port Range Start}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeEnd Port Range End}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.SecurityRule#getPrefix Prefix}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.SecurityRule#getIpProtocol Ip Protocol}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRule() + * @model + * @generated + */ +public interface SecurityRule extends NamedEntity { + /** + * Returns the value of the 'Port Range Start' attribute. + * + *

+ * If the meaning of the 'Port Range Start' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Port Range Start' attribute. + * @see #setPortRangeStart(Integer) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRule_PortRangeStart() + * @model unique="false" + * @generated + */ + Integer getPortRangeStart(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeStart Port Range Start}' attribute. + * + * + * @param value the new value of the 'Port Range Start' attribute. + * @see #getPortRangeStart() + * @generated + */ + void setPortRangeStart(Integer value); + + /** + * Returns the value of the 'Port Range End' attribute. + * + *

+ * If the meaning of the 'Port Range End' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Port Range End' attribute. + * @see #setPortRangeEnd(Integer) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRule_PortRangeEnd() + * @model unique="false" + * @generated + */ + Integer getPortRangeEnd(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeEnd Port Range End}' attribute. + * + * + * @param value the new value of the 'Port Range End' attribute. + * @see #getPortRangeEnd() + * @generated + */ + void setPortRangeEnd(Integer value); + + /** + * Returns the value of the 'Prefix' attribute. + * + *

+ * If the meaning of the 'Prefix' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Prefix' attribute. + * @see #setPrefix(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRule_Prefix() + * @model unique="false" + * @generated + */ + String getPrefix(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getPrefix Prefix}' attribute. + * + * + * @param value the new value of the 'Prefix' attribute. + * @see #getPrefix() + * @generated + */ + void setPrefix(String value); + + /** + * Returns the value of the 'Ip Protocol' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.openstack.core.SecurityRuleProtocol}. + * + *

+ * If the meaning of the 'Ip Protocol' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ip Protocol' attribute. + * @see org.openecomp.ncomp.openstack.core.SecurityRuleProtocol + * @see #setIpProtocol(SecurityRuleProtocol) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRule_IpProtocol() + * @model unique="false" + * @generated + */ + SecurityRuleProtocol getIpProtocol(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getIpProtocol Ip Protocol}' attribute. + * + * + * @param value the new value of the 'Ip Protocol' attribute. + * @see org.openecomp.ncomp.openstack.core.SecurityRuleProtocol + * @see #getIpProtocol() + * @generated + */ + void setIpProtocol(SecurityRuleProtocol value); + +} // SecurityRule diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRuleProtocol.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRuleProtocol.java new file mode 100644 index 0000000..1650fbb --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRuleProtocol.java @@ -0,0 +1,283 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Security Rule Protocol', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRuleProtocol() + * @model + * @generated + */ +public enum SecurityRuleProtocol implements Enumerator { + /** + * The 'None' literal object. + * + * + * @see #NONE_VALUE + * @generated + * @ordered + */ + NONE(1000, "none", "none"), + + /** + * The 'Tcp' literal object. + * + * + * @see #TCP_VALUE + * @generated + * @ordered + */ + TCP(17, "tcp", "tcp"), + + /** + * The 'Udp' literal object. + * + * + * @see #UDP_VALUE + * @generated + * @ordered + */ + UDP(6, "udp", "udp"), + + /** + * The 'Imcp' literal object. + * + * + * @see #IMCP_VALUE + * @generated + * @ordered + */ + IMCP(0, "imcp", "imcp"); + + /** + * The 'None' literal value. + * + *

+ * If the meaning of 'None' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #NONE + * @model name="none" + * @generated + * @ordered + */ + public static final int NONE_VALUE = 1000; + + /** + * The 'Tcp' literal value. + * + *

+ * If the meaning of 'Tcp' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #TCP + * @model name="tcp" + * @generated + * @ordered + */ + public static final int TCP_VALUE = 17; + + /** + * The 'Udp' literal value. + * + *

+ * If the meaning of 'Udp' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #UDP + * @model name="udp" + * @generated + * @ordered + */ + public static final int UDP_VALUE = 6; + + /** + * The 'Imcp' literal value. + * + *

+ * If the meaning of 'Imcp' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #IMCP + * @model name="imcp" + * @generated + * @ordered + */ + public static final int IMCP_VALUE = 0; + + /** + * An array of all the 'Security Rule Protocol' enumerators. + * + * + * @generated + */ + private static final SecurityRuleProtocol[] VALUES_ARRAY = + new SecurityRuleProtocol[] { + NONE, + TCP, + UDP, + IMCP, + }; + + /** + * A public read-only list of all the 'Security Rule Protocol' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Security Rule Protocol' literal with the specified literal value. + * + * + * @generated + */ + public static SecurityRuleProtocol get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SecurityRuleProtocol result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Security Rule Protocol' literal with the specified name. + * + * + * @generated + */ + public static SecurityRuleProtocol getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + SecurityRuleProtocol result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Security Rule Protocol' literal with the specified integer value. + * + * + * @generated + */ + public static SecurityRuleProtocol get(int value) { + switch (value) { + case NONE_VALUE: return NONE; + case TCP_VALUE: return TCP; + case UDP_VALUE: return UDP; + case IMCP_VALUE: return IMCP; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private SecurityRuleProtocol(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //SecurityRuleProtocol diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/VirtualMachineType.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/VirtualMachineType.java new file mode 100644 index 0000000..131f6e8 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/VirtualMachineType.java @@ -0,0 +1,354 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + +import org.openecomp.ncomp.core.DeploymentStatus; +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Virtual Machine Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDescription Description}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getNumberOfCores Number Of Cores}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getMemorySizeMB Memory Size MB}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getRootDiskSizeGB Root Disk Size GB}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDiskSizeGB Disk Size GB}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getVolumeSizeGB Volume Size GB}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getImageName Image Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getFlavorName Flavor Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#isNeedPublicIp Need Public Ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDeploymentStatus Deployment Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getIncomingSecurityRules Incoming Security Rules}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getOutboundSecurityRules Outbound Security Rules}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType() + * @model + * @generated + */ +public interface VirtualMachineType extends NamedEntity { + /** + * Returns the value of the 'Description' attribute. + * + *

+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Number Of Cores' attribute. + * + *

+ * If the meaning of the 'Number Of Cores' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Number Of Cores' attribute. + * @see #setNumberOfCores(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_NumberOfCores() + * @model unique="false" + * @generated + */ + int getNumberOfCores(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getNumberOfCores Number Of Cores}' attribute. + * + * + * @param value the new value of the 'Number Of Cores' attribute. + * @see #getNumberOfCores() + * @generated + */ + void setNumberOfCores(int value); + + /** + * Returns the value of the 'Memory Size MB' attribute. + * + *

+ * If the meaning of the 'Memory Size MB' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory Size MB' attribute. + * @see #setMemorySizeMB(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_MemorySizeMB() + * @model unique="false" + * @generated + */ + int getMemorySizeMB(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getMemorySizeMB Memory Size MB}' attribute. + * + * + * @param value the new value of the 'Memory Size MB' attribute. + * @see #getMemorySizeMB() + * @generated + */ + void setMemorySizeMB(int value); + + /** + * Returns the value of the 'Root Disk Size GB' attribute. + * + *

+ * If the meaning of the 'Root Disk Size GB' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Root Disk Size GB' attribute. + * @see #setRootDiskSizeGB(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_RootDiskSizeGB() + * @model unique="false" + * @generated + */ + int getRootDiskSizeGB(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getRootDiskSizeGB Root Disk Size GB}' attribute. + * + * + * @param value the new value of the 'Root Disk Size GB' attribute. + * @see #getRootDiskSizeGB() + * @generated + */ + void setRootDiskSizeGB(int value); + + /** + * Returns the value of the 'Disk Size GB' attribute. + * + *

+ * If the meaning of the 'Disk Size GB' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Disk Size GB' attribute. + * @see #setDiskSizeGB(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_DiskSizeGB() + * @model unique="false" + * @generated + */ + int getDiskSizeGB(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDiskSizeGB Disk Size GB}' attribute. + * + * + * @param value the new value of the 'Disk Size GB' attribute. + * @see #getDiskSizeGB() + * @generated + */ + void setDiskSizeGB(int value); + + /** + * Returns the value of the 'Volume Size GB' attribute. + * + *

+ * If the meaning of the 'Volume Size GB' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Volume Size GB' attribute. + * @see #setVolumeSizeGB(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_VolumeSizeGB() + * @model unique="false" + * @generated + */ + int getVolumeSizeGB(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getVolumeSizeGB Volume Size GB}' attribute. + * + * + * @param value the new value of the 'Volume Size GB' attribute. + * @see #getVolumeSizeGB() + * @generated + */ + void setVolumeSizeGB(int value); + + /** + * Returns the value of the 'Image Name' attribute. + * + *

+ * If the meaning of the 'Image Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Image Name' attribute. + * @see #setImageName(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_ImageName() + * @model unique="false" + * @generated + */ + String getImageName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getImageName Image Name}' attribute. + * + * + * @param value the new value of the 'Image Name' attribute. + * @see #getImageName() + * @generated + */ + void setImageName(String value); + + /** + * Returns the value of the 'Flavor Name' attribute. + * + *

+ * If the meaning of the 'Flavor Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Flavor Name' attribute. + * @see #setFlavorName(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_FlavorName() + * @model unique="false" + * @generated + */ + String getFlavorName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getFlavorName Flavor Name}' attribute. + * + * + * @param value the new value of the 'Flavor Name' attribute. + * @see #getFlavorName() + * @generated + */ + void setFlavorName(String value); + + /** + * Returns the value of the 'Need Public Ip' attribute. + * + *

+ * If the meaning of the 'Need Public Ip' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Need Public Ip' attribute. + * @see #setNeedPublicIp(boolean) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_NeedPublicIp() + * @model unique="false" + * @generated + */ + boolean isNeedPublicIp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#isNeedPublicIp Need Public Ip}' attribute. + * + * + * @param value the new value of the 'Need Public Ip' attribute. + * @see #isNeedPublicIp() + * @generated + */ + void setNeedPublicIp(boolean value); + + /** + * Returns the value of the 'Deployment Status' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.DeploymentStatus}. + * + *

+ * If the meaning of the 'Deployment Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Deployment Status' attribute. + * @see org.openecomp.ncomp.core.DeploymentStatus + * @see #setDeploymentStatus(DeploymentStatus) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_DeploymentStatus() + * @model unique="false" + * @generated + */ + DeploymentStatus getDeploymentStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDeploymentStatus Deployment Status}' attribute. + * + * + * @param value the new value of the 'Deployment Status' attribute. + * @see org.openecomp.ncomp.core.DeploymentStatus + * @see #getDeploymentStatus() + * @generated + */ + void setDeploymentStatus(DeploymentStatus value); + + /** + * Returns the value of the 'Incoming Security Rules' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.core.SecurityRule}. + * + *

+ * If the meaning of the 'Incoming Security Rules' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Incoming Security Rules' containment reference list. + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_IncomingSecurityRules() + * @model containment="true" + * @generated + */ + EList getIncomingSecurityRules(); + + /** + * Returns the value of the 'Outbound Security Rules' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.core.SecurityRule}. + * + *

+ * If the meaning of the 'Outbound Security Rules' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Outbound Security Rules' containment reference list. + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_OutboundSecurityRules() + * @model containment="true" + * @generated + */ + EList getOutboundSecurityRules(); + +} // VirtualMachineType diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/CoreFactoryImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/CoreFactoryImpl.java new file mode 100644 index 0000000..e01fe4f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/CoreFactoryImpl.java @@ -0,0 +1,200 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.impl; + +import org.openecomp.ncomp.openstack.core.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class CoreFactoryImpl extends EFactoryImpl implements CoreFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static CoreFactory init() { + try { + CoreFactory theCoreFactory = (CoreFactory)EPackage.Registry.INSTANCE.getEFactory(CorePackage.eNS_URI); + if (theCoreFactory != null) { + return theCoreFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new CoreFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public CoreFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case CorePackage.OPENSTACK_REQUEST_DELETE: return createOpenstackRequestDelete(); + case CorePackage.OPENSTACK_REQUEST_POLL: return createOpenstackRequestPoll(); + case CorePackage.VIRTUAL_MACHINE_TYPE: return createVirtualMachineType(); + case CorePackage.SECURITY_RULE: return createSecurityRule(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case CorePackage.SECURITY_RULE_PROTOCOL: + return createSecurityRuleProtocolFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case CorePackage.SECURITY_RULE_PROTOCOL: + return convertSecurityRuleProtocolToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public OpenstackRequestDelete createOpenstackRequestDelete() { + OpenstackRequestDeleteImpl openstackRequestDelete = new OpenstackRequestDeleteImpl(); + return openstackRequestDelete; + } + + /** + * + * + * @generated + */ + public OpenstackRequestPoll createOpenstackRequestPoll() { + OpenstackRequestPollImpl openstackRequestPoll = new OpenstackRequestPollImpl(); + return openstackRequestPoll; + } + + /** + * + * + * @generated + */ + public VirtualMachineType createVirtualMachineType() { + VirtualMachineTypeImpl virtualMachineType = new VirtualMachineTypeImpl(); + return virtualMachineType; + } + + /** + * + * + * @generated + */ + public SecurityRule createSecurityRule() { + SecurityRuleImpl securityRule = new SecurityRuleImpl(); + return securityRule; + } + + /** + * + * + * @generated + */ + public SecurityRuleProtocol createSecurityRuleProtocolFromString(EDataType eDataType, String initialValue) { + SecurityRuleProtocol result = SecurityRuleProtocol.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertSecurityRuleProtocolToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public CorePackage getCorePackage() { + return (CorePackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static CorePackage getPackage() { + return CorePackage.eINSTANCE; + } + +} //CoreFactoryImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/CorePackageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/CorePackageImpl.java new file mode 100644 index 0000000..220d828 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/CorePackageImpl.java @@ -0,0 +1,519 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.impl; + +import org.openecomp.ncomp.openstack.core.CoreFactory; +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.openecomp.ncomp.openstack.core.OpenStackRequest; +import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete; +import org.openecomp.ncomp.openstack.core.OpenstackRequestPoll; +import org.openecomp.ncomp.openstack.core.SecurityRule; +import org.openecomp.ncomp.openstack.core.SecurityRuleProtocol; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class CorePackageImpl extends EPackageImpl implements CorePackage { + /** + * + * + * @generated + */ + private EClass openStackRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass openstackRequestDeleteEClass = null; + + /** + * + * + * @generated + */ + private EClass openstackRequestPollEClass = null; + + /** + * + * + * @generated + */ + private EClass virtualMachineTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass securityRuleEClass = null; + + /** + * + * + * @generated + */ + private EEnum securityRuleProtocolEEnum = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.core.CorePackage#eNS_URI + * @see #init() + * @generated + */ + private CorePackageImpl() { + super(eNS_URI, CoreFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link CorePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CorePackage init() { + if (isInited) return (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + + // Obtain or create and register package + CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CorePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + org.openecomp.ncomp.core.CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCorePackage.createPackageContents(); + + // Initialize created meta-data + theCorePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCorePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CorePackage.eNS_URI, theCorePackage); + return theCorePackage; + } + + /** + * + * + * @generated + */ + public EClass getOpenStackRequest() { + return openStackRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackRequest_ProjectName() { + return (EAttribute)openStackRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestDelete() { + return openstackRequestDeleteEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestDelete_ObjectType() { + return (EAttribute)openstackRequestDeleteEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestDelete_ObjectName() { + return (EAttribute)openstackRequestDeleteEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestPoll() { + return openstackRequestPollEClass; + } + + /** + * + * + * @generated + */ + public EClass getVirtualMachineType() { + return virtualMachineTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_Description() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_NumberOfCores() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_MemorySizeMB() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_RootDiskSizeGB() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_DiskSizeGB() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_VolumeSizeGB() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_ImageName() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_FlavorName() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_NeedPublicIp() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_DeploymentStatus() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineType_IncomingSecurityRules() { + return (EReference)virtualMachineTypeEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineType_OutboundSecurityRules() { + return (EReference)virtualMachineTypeEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EClass getSecurityRule() { + return securityRuleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_PortRangeStart() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_PortRangeEnd() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_Prefix() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_IpProtocol() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EEnum getSecurityRuleProtocol() { + return securityRuleProtocolEEnum; + } + + /** + * + * + * @generated + */ + public CoreFactory getCoreFactory() { + return (CoreFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + openStackRequestEClass = createEClass(OPEN_STACK_REQUEST); + createEAttribute(openStackRequestEClass, OPEN_STACK_REQUEST__PROJECT_NAME); + + openstackRequestDeleteEClass = createEClass(OPENSTACK_REQUEST_DELETE); + createEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_TYPE); + createEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_NAME); + + openstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL); + + virtualMachineTypeEClass = createEClass(VIRTUAL_MACHINE_TYPE); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DESCRIPTION); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__IMAGE_NAME); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__FLAVOR_NAME); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS); + createEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES); + createEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES); + + securityRuleEClass = createEClass(SECURITY_RULE); + createEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_START); + createEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_END); + createEAttribute(securityRuleEClass, SECURITY_RULE__PREFIX); + createEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL); + + // Create enums + securityRuleProtocolEEnum = createEEnum(SECURITY_RULE_PROTOCOL); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + openstackRequestDeleteEClass.getESuperTypes().add(this.getOpenStackRequest()); + openstackRequestPollEClass.getESuperTypes().add(this.getOpenStackRequest()); + virtualMachineTypeEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + securityRuleEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(openStackRequestEClass, OpenStackRequest.class, "OpenStackRequest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenStackRequest_ProjectName(), theEcorePackage.getEString(), "projectName", null, 0, 1, OpenStackRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestDeleteEClass, OpenstackRequestDelete.class, "OpenstackRequestDelete", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenstackRequestDelete_ObjectType(), theEcorePackage.getEString(), "objectType", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestDelete_ObjectName(), theEcorePackage.getEString(), "objectName", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestPollEClass, OpenstackRequestPoll.class, "OpenstackRequestPoll", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(virtualMachineTypeEClass, VirtualMachineType.class, "VirtualMachineType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVirtualMachineType_Description(), theEcorePackage.getEString(), "description", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_NumberOfCores(), theEcorePackage.getEInt(), "numberOfCores", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_MemorySizeMB(), theEcorePackage.getEInt(), "memorySizeMB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_RootDiskSizeGB(), theEcorePackage.getEInt(), "rootDiskSizeGB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_DiskSizeGB(), theEcorePackage.getEInt(), "diskSizeGB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_VolumeSizeGB(), theEcorePackage.getEInt(), "volumeSizeGB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_ImageName(), theEcorePackage.getEString(), "imageName", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_FlavorName(), theEcorePackage.getEString(), "flavorName", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_NeedPublicIp(), theEcorePackage.getEBoolean(), "needPublicIp", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_DeploymentStatus(), theCorePackage_1.getDeploymentStatus(), "deploymentStatus", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineType_IncomingSecurityRules(), this.getSecurityRule(), null, "incomingSecurityRules", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineType_OutboundSecurityRules(), this.getSecurityRule(), null, "outboundSecurityRules", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityRuleEClass, SecurityRule.class, "SecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSecurityRule_PortRangeStart(), theEcorePackage.getEIntegerObject(), "portRangeStart", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_PortRangeEnd(), theEcorePackage.getEIntegerObject(), "portRangeEnd", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Prefix(), theEcorePackage.getEString(), "prefix", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_IpProtocol(), this.getSecurityRuleProtocol(), "ipProtocol", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(securityRuleProtocolEEnum, SecurityRuleProtocol.class, "SecurityRuleProtocol"); + addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.NONE); + addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.TCP); + addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.UDP); + addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.IMCP); + + // Create resource + createResource(eNS_URI); + } + +} //CorePackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenStackRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenStackRequestImpl.java new file mode 100644 index 0000000..e83f9ec --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenStackRequestImpl.java @@ -0,0 +1,184 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.impl; + +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Open Stack Request'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl#getProjectName Project Name}
  • + *
+ *

+ * + * @generated + */ +public abstract class OpenStackRequestImpl extends MinimalEObjectImpl.Container implements OpenStackRequest { + /** + * The default value of the '{@link #getProjectName() Project Name}' attribute. + * + * + * @see #getProjectName() + * @generated + * @ordered + */ + protected static final String PROJECT_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProjectName() Project Name}' attribute. + * + * + * @see #getProjectName() + * @generated + * @ordered + */ + protected String projectName = PROJECT_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected OpenStackRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CorePackage.Literals.OPEN_STACK_REQUEST; + } + + /** + * + * + * @generated + */ + public String getProjectName() { + return projectName; + } + + /** + * + * + * @generated + */ + public void setProjectName(String newProjectName) { + String oldProjectName = projectName; + projectName = newProjectName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME, oldProjectName, projectName)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME: + return getProjectName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME: + setProjectName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME: + setProjectName(PROJECT_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME: + return PROJECT_NAME_EDEFAULT == null ? projectName != null : !PROJECT_NAME_EDEFAULT.equals(projectName); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (projectName: "); + result.append(projectName); + result.append(')'); + return result.toString(); + } + +} //OpenStackRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenstackRequestDeleteImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenstackRequestDeleteImpl.java new file mode 100644 index 0000000..18291e7 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenstackRequestDeleteImpl.java @@ -0,0 +1,237 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.impl; + +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Openstack Request Delete'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.core.impl.OpenstackRequestDeleteImpl#getObjectType Object Type}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.OpenstackRequestDeleteImpl#getObjectName Object Name}
  • + *
+ *

+ * + * @generated + */ +public class OpenstackRequestDeleteImpl extends OpenStackRequestImpl implements OpenstackRequestDelete { + /** + * The default value of the '{@link #getObjectType() Object Type}' attribute. + * + * + * @see #getObjectType() + * @generated + * @ordered + */ + protected static final String OBJECT_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getObjectType() Object Type}' attribute. + * + * + * @see #getObjectType() + * @generated + * @ordered + */ + protected String objectType = OBJECT_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getObjectName() Object Name}' attribute. + * + * + * @see #getObjectName() + * @generated + * @ordered + */ + protected static final String OBJECT_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getObjectName() Object Name}' attribute. + * + * + * @see #getObjectName() + * @generated + * @ordered + */ + protected String objectName = OBJECT_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected OpenstackRequestDeleteImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CorePackage.Literals.OPENSTACK_REQUEST_DELETE; + } + + /** + * + * + * @generated + */ + public String getObjectType() { + return objectType; + } + + /** + * + * + * @generated + */ + public void setObjectType(String newObjectType) { + String oldObjectType = objectType; + objectType = newObjectType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE, oldObjectType, objectType)); + } + + /** + * + * + * @generated + */ + public String getObjectName() { + return objectName; + } + + /** + * + * + * @generated + */ + public void setObjectName(String newObjectName) { + String oldObjectName = objectName; + objectName = newObjectName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME, oldObjectName, objectName)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE: + return getObjectType(); + case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME: + return getObjectName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE: + setObjectType((String)newValue); + return; + case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME: + setObjectName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE: + setObjectType(OBJECT_TYPE_EDEFAULT); + return; + case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME: + setObjectName(OBJECT_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE: + return OBJECT_TYPE_EDEFAULT == null ? objectType != null : !OBJECT_TYPE_EDEFAULT.equals(objectType); + case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME: + return OBJECT_NAME_EDEFAULT == null ? objectName != null : !OBJECT_NAME_EDEFAULT.equals(objectName); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (objectType: "); + result.append(objectType); + result.append(", objectName: "); + result.append(objectName); + result.append(')'); + return result.toString(); + } + +} //OpenstackRequestDeleteImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenstackRequestPollImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenstackRequestPollImpl.java new file mode 100644 index 0000000..a28f3c8 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenstackRequestPollImpl.java @@ -0,0 +1,60 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.impl; + +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.openecomp.ncomp.openstack.core.OpenstackRequestPoll; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Openstack Request Poll'. + * + *

+ *

+ * + * @generated + */ +public class OpenstackRequestPollImpl extends OpenStackRequestImpl implements OpenstackRequestPoll { + /** + * + * + * @generated + */ + protected OpenstackRequestPollImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CorePackage.Literals.OPENSTACK_REQUEST_POLL; + } + +} //OpenstackRequestPollImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/SecurityRuleImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/SecurityRuleImpl.java new file mode 100644 index 0000000..4b85fff --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/SecurityRuleImpl.java @@ -0,0 +1,348 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.openecomp.ncomp.openstack.core.SecurityRule; +import org.openecomp.ncomp.openstack.core.SecurityRuleProtocol; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Security Rule'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.core.impl.SecurityRuleImpl#getPortRangeStart Port Range Start}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.SecurityRuleImpl#getPortRangeEnd Port Range End}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.SecurityRuleImpl#getPrefix Prefix}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.SecurityRuleImpl#getIpProtocol Ip Protocol}
  • + *
+ *

+ * + * @generated + */ +public class SecurityRuleImpl extends NamedEntityImpl implements SecurityRule { + /** + * The default value of the '{@link #getPortRangeStart() Port Range Start}' attribute. + * + * + * @see #getPortRangeStart() + * @generated + * @ordered + */ + protected static final Integer PORT_RANGE_START_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPortRangeStart() Port Range Start}' attribute. + * + * + * @see #getPortRangeStart() + * @generated + * @ordered + */ + protected Integer portRangeStart = PORT_RANGE_START_EDEFAULT; + + /** + * The default value of the '{@link #getPortRangeEnd() Port Range End}' attribute. + * + * + * @see #getPortRangeEnd() + * @generated + * @ordered + */ + protected static final Integer PORT_RANGE_END_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPortRangeEnd() Port Range End}' attribute. + * + * + * @see #getPortRangeEnd() + * @generated + * @ordered + */ + protected Integer portRangeEnd = PORT_RANGE_END_EDEFAULT; + + /** + * The default value of the '{@link #getPrefix() Prefix}' attribute. + * + * + * @see #getPrefix() + * @generated + * @ordered + */ + protected static final String PREFIX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPrefix() Prefix}' attribute. + * + * + * @see #getPrefix() + * @generated + * @ordered + */ + protected String prefix = PREFIX_EDEFAULT; + + /** + * The default value of the '{@link #getIpProtocol() Ip Protocol}' attribute. + * + * + * @see #getIpProtocol() + * @generated + * @ordered + */ + protected static final SecurityRuleProtocol IP_PROTOCOL_EDEFAULT = SecurityRuleProtocol.NONE; + + /** + * The cached value of the '{@link #getIpProtocol() Ip Protocol}' attribute. + * + * + * @see #getIpProtocol() + * @generated + * @ordered + */ + protected SecurityRuleProtocol ipProtocol = IP_PROTOCOL_EDEFAULT; + + /** + * + * + * @generated + */ + protected SecurityRuleImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CorePackage.Literals.SECURITY_RULE; + } + + /** + * + * + * @generated + */ + public Integer getPortRangeStart() { + return portRangeStart; + } + + /** + * + * + * @generated + */ + public void setPortRangeStart(Integer newPortRangeStart) { + Integer oldPortRangeStart = portRangeStart; + portRangeStart = newPortRangeStart; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.SECURITY_RULE__PORT_RANGE_START, oldPortRangeStart, portRangeStart)); + } + + /** + * + * + * @generated + */ + public Integer getPortRangeEnd() { + return portRangeEnd; + } + + /** + * + * + * @generated + */ + public void setPortRangeEnd(Integer newPortRangeEnd) { + Integer oldPortRangeEnd = portRangeEnd; + portRangeEnd = newPortRangeEnd; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.SECURITY_RULE__PORT_RANGE_END, oldPortRangeEnd, portRangeEnd)); + } + + /** + * + * + * @generated + */ + public String getPrefix() { + return prefix; + } + + /** + * + * + * @generated + */ + public void setPrefix(String newPrefix) { + String oldPrefix = prefix; + prefix = newPrefix; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.SECURITY_RULE__PREFIX, oldPrefix, prefix)); + } + + /** + * + * + * @generated + */ + public SecurityRuleProtocol getIpProtocol() { + return ipProtocol; + } + + /** + * + * + * @generated + */ + public void setIpProtocol(SecurityRuleProtocol newIpProtocol) { + SecurityRuleProtocol oldIpProtocol = ipProtocol; + ipProtocol = newIpProtocol == null ? IP_PROTOCOL_EDEFAULT : newIpProtocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.SECURITY_RULE__IP_PROTOCOL, oldIpProtocol, ipProtocol)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CorePackage.SECURITY_RULE__PORT_RANGE_START: + return getPortRangeStart(); + case CorePackage.SECURITY_RULE__PORT_RANGE_END: + return getPortRangeEnd(); + case CorePackage.SECURITY_RULE__PREFIX: + return getPrefix(); + case CorePackage.SECURITY_RULE__IP_PROTOCOL: + return getIpProtocol(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CorePackage.SECURITY_RULE__PORT_RANGE_START: + setPortRangeStart((Integer)newValue); + return; + case CorePackage.SECURITY_RULE__PORT_RANGE_END: + setPortRangeEnd((Integer)newValue); + return; + case CorePackage.SECURITY_RULE__PREFIX: + setPrefix((String)newValue); + return; + case CorePackage.SECURITY_RULE__IP_PROTOCOL: + setIpProtocol((SecurityRuleProtocol)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CorePackage.SECURITY_RULE__PORT_RANGE_START: + setPortRangeStart(PORT_RANGE_START_EDEFAULT); + return; + case CorePackage.SECURITY_RULE__PORT_RANGE_END: + setPortRangeEnd(PORT_RANGE_END_EDEFAULT); + return; + case CorePackage.SECURITY_RULE__PREFIX: + setPrefix(PREFIX_EDEFAULT); + return; + case CorePackage.SECURITY_RULE__IP_PROTOCOL: + setIpProtocol(IP_PROTOCOL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CorePackage.SECURITY_RULE__PORT_RANGE_START: + return PORT_RANGE_START_EDEFAULT == null ? portRangeStart != null : !PORT_RANGE_START_EDEFAULT.equals(portRangeStart); + case CorePackage.SECURITY_RULE__PORT_RANGE_END: + return PORT_RANGE_END_EDEFAULT == null ? portRangeEnd != null : !PORT_RANGE_END_EDEFAULT.equals(portRangeEnd); + case CorePackage.SECURITY_RULE__PREFIX: + return PREFIX_EDEFAULT == null ? prefix != null : !PREFIX_EDEFAULT.equals(prefix); + case CorePackage.SECURITY_RULE__IP_PROTOCOL: + return ipProtocol != IP_PROTOCOL_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (portRangeStart: "); + result.append(portRangeStart); + result.append(", portRangeEnd: "); + result.append(portRangeEnd); + result.append(", prefix: "); + result.append(prefix); + result.append(", ipProtocol: "); + result.append(ipProtocol); + result.append(')'); + return result.toString(); + } + +} //SecurityRuleImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/VirtualMachineTypeImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/VirtualMachineTypeImpl.java new file mode 100644 index 0000000..014c99d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/VirtualMachineTypeImpl.java @@ -0,0 +1,760 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.impl; + +import org.openecomp.ncomp.core.DeploymentStatus; +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.openecomp.ncomp.openstack.core.SecurityRule; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Virtual Machine Type'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getDescription Description}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getNumberOfCores Number Of Cores}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getMemorySizeMB Memory Size MB}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getRootDiskSizeGB Root Disk Size GB}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getDiskSizeGB Disk Size GB}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getVolumeSizeGB Volume Size GB}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getImageName Image Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getFlavorName Flavor Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#isNeedPublicIp Need Public Ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getDeploymentStatus Deployment Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getIncomingSecurityRules Incoming Security Rules}
  • + *
  • {@link org.openecomp.ncomp.openstack.core.impl.VirtualMachineTypeImpl#getOutboundSecurityRules Outbound Security Rules}
  • + *
+ *

+ * + * @generated + */ +public class VirtualMachineTypeImpl extends NamedEntityImpl implements VirtualMachineType { + /** + * The default value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The default value of the '{@link #getNumberOfCores() Number Of Cores}' attribute. + * + * + * @see #getNumberOfCores() + * @generated + * @ordered + */ + protected static final int NUMBER_OF_CORES_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getNumberOfCores() Number Of Cores}' attribute. + * + * + * @see #getNumberOfCores() + * @generated + * @ordered + */ + protected int numberOfCores = NUMBER_OF_CORES_EDEFAULT; + + /** + * The default value of the '{@link #getMemorySizeMB() Memory Size MB}' attribute. + * + * + * @see #getMemorySizeMB() + * @generated + * @ordered + */ + protected static final int MEMORY_SIZE_MB_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMemorySizeMB() Memory Size MB}' attribute. + * + * + * @see #getMemorySizeMB() + * @generated + * @ordered + */ + protected int memorySizeMB = MEMORY_SIZE_MB_EDEFAULT; + + /** + * The default value of the '{@link #getRootDiskSizeGB() Root Disk Size GB}' attribute. + * + * + * @see #getRootDiskSizeGB() + * @generated + * @ordered + */ + protected static final int ROOT_DISK_SIZE_GB_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRootDiskSizeGB() Root Disk Size GB}' attribute. + * + * + * @see #getRootDiskSizeGB() + * @generated + * @ordered + */ + protected int rootDiskSizeGB = ROOT_DISK_SIZE_GB_EDEFAULT; + + /** + * The default value of the '{@link #getDiskSizeGB() Disk Size GB}' attribute. + * + * + * @see #getDiskSizeGB() + * @generated + * @ordered + */ + protected static final int DISK_SIZE_GB_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getDiskSizeGB() Disk Size GB}' attribute. + * + * + * @see #getDiskSizeGB() + * @generated + * @ordered + */ + protected int diskSizeGB = DISK_SIZE_GB_EDEFAULT; + + /** + * The default value of the '{@link #getVolumeSizeGB() Volume Size GB}' attribute. + * + * + * @see #getVolumeSizeGB() + * @generated + * @ordered + */ + protected static final int VOLUME_SIZE_GB_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVolumeSizeGB() Volume Size GB}' attribute. + * + * + * @see #getVolumeSizeGB() + * @generated + * @ordered + */ + protected int volumeSizeGB = VOLUME_SIZE_GB_EDEFAULT; + + /** + * The default value of the '{@link #getImageName() Image Name}' attribute. + * + * + * @see #getImageName() + * @generated + * @ordered + */ + protected static final String IMAGE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getImageName() Image Name}' attribute. + * + * + * @see #getImageName() + * @generated + * @ordered + */ + protected String imageName = IMAGE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getFlavorName() Flavor Name}' attribute. + * + * + * @see #getFlavorName() + * @generated + * @ordered + */ + protected static final String FLAVOR_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFlavorName() Flavor Name}' attribute. + * + * + * @see #getFlavorName() + * @generated + * @ordered + */ + protected String flavorName = FLAVOR_NAME_EDEFAULT; + + /** + * The default value of the '{@link #isNeedPublicIp() Need Public Ip}' attribute. + * + * + * @see #isNeedPublicIp() + * @generated + * @ordered + */ + protected static final boolean NEED_PUBLIC_IP_EDEFAULT = false; + + /** + * The cached value of the '{@link #isNeedPublicIp() Need Public Ip}' attribute. + * + * + * @see #isNeedPublicIp() + * @generated + * @ordered + */ + protected boolean needPublicIp = NEED_PUBLIC_IP_EDEFAULT; + + /** + * The default value of the '{@link #getDeploymentStatus() Deployment Status}' attribute. + * + * + * @see #getDeploymentStatus() + * @generated + * @ordered + */ + protected static final DeploymentStatus DEPLOYMENT_STATUS_EDEFAULT = DeploymentStatus.UNDEPLOYED; + + /** + * The cached value of the '{@link #getDeploymentStatus() Deployment Status}' attribute. + * + * + * @see #getDeploymentStatus() + * @generated + * @ordered + */ + protected DeploymentStatus deploymentStatus = DEPLOYMENT_STATUS_EDEFAULT; + + /** + * The cached value of the '{@link #getIncomingSecurityRules() Incoming Security Rules}' containment reference list. + * + * + * @see #getIncomingSecurityRules() + * @generated + * @ordered + */ + protected EList incomingSecurityRules; + + /** + * The cached value of the '{@link #getOutboundSecurityRules() Outbound Security Rules}' containment reference list. + * + * + * @see #getOutboundSecurityRules() + * @generated + * @ordered + */ + protected EList outboundSecurityRules; + + /** + * + * + * @generated + */ + protected VirtualMachineTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CorePackage.Literals.VIRTUAL_MACHINE_TYPE; + } + + /** + * + * + * @generated + */ + public String getDescription() { + return description; + } + + /** + * + * + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__DESCRIPTION, oldDescription, description)); + } + + /** + * + * + * @generated + */ + public int getNumberOfCores() { + return numberOfCores; + } + + /** + * + * + * @generated + */ + public void setNumberOfCores(int newNumberOfCores) { + int oldNumberOfCores = numberOfCores; + numberOfCores = newNumberOfCores; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES, oldNumberOfCores, numberOfCores)); + } + + /** + * + * + * @generated + */ + public int getMemorySizeMB() { + return memorySizeMB; + } + + /** + * + * + * @generated + */ + public void setMemorySizeMB(int newMemorySizeMB) { + int oldMemorySizeMB = memorySizeMB; + memorySizeMB = newMemorySizeMB; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB, oldMemorySizeMB, memorySizeMB)); + } + + /** + * + * + * @generated + */ + public int getRootDiskSizeGB() { + return rootDiskSizeGB; + } + + /** + * + * + * @generated + */ + public void setRootDiskSizeGB(int newRootDiskSizeGB) { + int oldRootDiskSizeGB = rootDiskSizeGB; + rootDiskSizeGB = newRootDiskSizeGB; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB, oldRootDiskSizeGB, rootDiskSizeGB)); + } + + /** + * + * + * @generated + */ + public int getDiskSizeGB() { + return diskSizeGB; + } + + /** + * + * + * @generated + */ + public void setDiskSizeGB(int newDiskSizeGB) { + int oldDiskSizeGB = diskSizeGB; + diskSizeGB = newDiskSizeGB; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB, oldDiskSizeGB, diskSizeGB)); + } + + /** + * + * + * @generated + */ + public int getVolumeSizeGB() { + return volumeSizeGB; + } + + /** + * + * + * @generated + */ + public void setVolumeSizeGB(int newVolumeSizeGB) { + int oldVolumeSizeGB = volumeSizeGB; + volumeSizeGB = newVolumeSizeGB; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB, oldVolumeSizeGB, volumeSizeGB)); + } + + /** + * + * + * @generated + */ + public String getImageName() { + return imageName; + } + + /** + * + * + * @generated + */ + public void setImageName(String newImageName) { + String oldImageName = imageName; + imageName = newImageName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__IMAGE_NAME, oldImageName, imageName)); + } + + /** + * + * + * @generated + */ + public String getFlavorName() { + return flavorName; + } + + /** + * + * + * @generated + */ + public void setFlavorName(String newFlavorName) { + String oldFlavorName = flavorName; + flavorName = newFlavorName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__FLAVOR_NAME, oldFlavorName, flavorName)); + } + + /** + * + * + * @generated + */ + public boolean isNeedPublicIp() { + return needPublicIp; + } + + /** + * + * + * @generated + */ + public void setNeedPublicIp(boolean newNeedPublicIp) { + boolean oldNeedPublicIp = needPublicIp; + needPublicIp = newNeedPublicIp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP, oldNeedPublicIp, needPublicIp)); + } + + /** + * + * + * @generated + */ + public DeploymentStatus getDeploymentStatus() { + return deploymentStatus; + } + + /** + * + * + * @generated + */ + public void setDeploymentStatus(DeploymentStatus newDeploymentStatus) { + DeploymentStatus oldDeploymentStatus = deploymentStatus; + deploymentStatus = newDeploymentStatus == null ? DEPLOYMENT_STATUS_EDEFAULT : newDeploymentStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS, oldDeploymentStatus, deploymentStatus)); + } + + /** + * + * + * @generated + */ + public EList getIncomingSecurityRules() { + if (incomingSecurityRules == null) { + incomingSecurityRules = new EObjectContainmentEList(SecurityRule.class, this, CorePackage.VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES); + } + return incomingSecurityRules; + } + + /** + * + * + * @generated + */ + public EList getOutboundSecurityRules() { + if (outboundSecurityRules == null) { + outboundSecurityRules = new EObjectContainmentEList(SecurityRule.class, this, CorePackage.VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES); + } + return outboundSecurityRules; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case CorePackage.VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES: + return ((InternalEList)getIncomingSecurityRules()).basicRemove(otherEnd, msgs); + case CorePackage.VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES: + return ((InternalEList)getOutboundSecurityRules()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case CorePackage.VIRTUAL_MACHINE_TYPE__DESCRIPTION: + return getDescription(); + case CorePackage.VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES: + return getNumberOfCores(); + case CorePackage.VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB: + return getMemorySizeMB(); + case CorePackage.VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB: + return getRootDiskSizeGB(); + case CorePackage.VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB: + return getDiskSizeGB(); + case CorePackage.VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB: + return getVolumeSizeGB(); + case CorePackage.VIRTUAL_MACHINE_TYPE__IMAGE_NAME: + return getImageName(); + case CorePackage.VIRTUAL_MACHINE_TYPE__FLAVOR_NAME: + return getFlavorName(); + case CorePackage.VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP: + return isNeedPublicIp(); + case CorePackage.VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS: + return getDeploymentStatus(); + case CorePackage.VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES: + return getIncomingSecurityRules(); + case CorePackage.VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES: + return getOutboundSecurityRules(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case CorePackage.VIRTUAL_MACHINE_TYPE__DESCRIPTION: + setDescription((String)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES: + setNumberOfCores((Integer)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB: + setMemorySizeMB((Integer)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB: + setRootDiskSizeGB((Integer)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB: + setDiskSizeGB((Integer)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB: + setVolumeSizeGB((Integer)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__IMAGE_NAME: + setImageName((String)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__FLAVOR_NAME: + setFlavorName((String)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP: + setNeedPublicIp((Boolean)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS: + setDeploymentStatus((DeploymentStatus)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES: + getIncomingSecurityRules().clear(); + getIncomingSecurityRules().addAll((Collection)newValue); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES: + getOutboundSecurityRules().clear(); + getOutboundSecurityRules().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case CorePackage.VIRTUAL_MACHINE_TYPE__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES: + setNumberOfCores(NUMBER_OF_CORES_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB: + setMemorySizeMB(MEMORY_SIZE_MB_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB: + setRootDiskSizeGB(ROOT_DISK_SIZE_GB_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB: + setDiskSizeGB(DISK_SIZE_GB_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB: + setVolumeSizeGB(VOLUME_SIZE_GB_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__IMAGE_NAME: + setImageName(IMAGE_NAME_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__FLAVOR_NAME: + setFlavorName(FLAVOR_NAME_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP: + setNeedPublicIp(NEED_PUBLIC_IP_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS: + setDeploymentStatus(DEPLOYMENT_STATUS_EDEFAULT); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES: + getIncomingSecurityRules().clear(); + return; + case CorePackage.VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES: + getOutboundSecurityRules().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case CorePackage.VIRTUAL_MACHINE_TYPE__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case CorePackage.VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES: + return numberOfCores != NUMBER_OF_CORES_EDEFAULT; + case CorePackage.VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB: + return memorySizeMB != MEMORY_SIZE_MB_EDEFAULT; + case CorePackage.VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB: + return rootDiskSizeGB != ROOT_DISK_SIZE_GB_EDEFAULT; + case CorePackage.VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB: + return diskSizeGB != DISK_SIZE_GB_EDEFAULT; + case CorePackage.VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB: + return volumeSizeGB != VOLUME_SIZE_GB_EDEFAULT; + case CorePackage.VIRTUAL_MACHINE_TYPE__IMAGE_NAME: + return IMAGE_NAME_EDEFAULT == null ? imageName != null : !IMAGE_NAME_EDEFAULT.equals(imageName); + case CorePackage.VIRTUAL_MACHINE_TYPE__FLAVOR_NAME: + return FLAVOR_NAME_EDEFAULT == null ? flavorName != null : !FLAVOR_NAME_EDEFAULT.equals(flavorName); + case CorePackage.VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP: + return needPublicIp != NEED_PUBLIC_IP_EDEFAULT; + case CorePackage.VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS: + return deploymentStatus != DEPLOYMENT_STATUS_EDEFAULT; + case CorePackage.VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES: + return incomingSecurityRules != null && !incomingSecurityRules.isEmpty(); + case CorePackage.VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES: + return outboundSecurityRules != null && !outboundSecurityRules.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", numberOfCores: "); + result.append(numberOfCores); + result.append(", memorySizeMB: "); + result.append(memorySizeMB); + result.append(", rootDiskSizeGB: "); + result.append(rootDiskSizeGB); + result.append(", diskSizeGB: "); + result.append(diskSizeGB); + result.append(", volumeSizeGB: "); + result.append(volumeSizeGB); + result.append(", imageName: "); + result.append(imageName); + result.append(", flavorName: "); + result.append(flavorName); + result.append(", needPublicIp: "); + result.append(needPublicIp); + result.append(", deploymentStatus: "); + result.append(deploymentStatus); + result.append(')'); + return result.toString(); + } + +} //VirtualMachineTypeImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreAdapterFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreAdapterFactory.java new file mode 100644 index 0000000..f8d6933 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreAdapterFactory.java @@ -0,0 +1,233 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.util; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.openstack.core.*; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.ncomp.openstack.core.CorePackage + * @generated + */ +public class CoreAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static CorePackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public CoreAdapterFactory() { + if (modelPackage == null) { + modelPackage = CorePackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected CoreSwitch modelSwitch = + new CoreSwitch() { + @Override + public Adapter caseOpenStackRequest(OpenStackRequest object) { + return createOpenStackRequestAdapter(); + } + @Override + public Adapter caseOpenstackRequestDelete(OpenstackRequestDelete object) { + return createOpenstackRequestDeleteAdapter(); + } + @Override + public Adapter caseOpenstackRequestPoll(OpenstackRequestPoll object) { + return createOpenstackRequestPollAdapter(); + } + @Override + public Adapter caseVirtualMachineType(VirtualMachineType object) { + return createVirtualMachineTypeAdapter(); + } + @Override + public Adapter caseSecurityRule(SecurityRule object) { + return createSecurityRuleAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest Open Stack Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.core.OpenStackRequest + * @generated + */ + public Adapter createOpenStackRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete Openstack Request Delete}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.core.OpenstackRequestDelete + * @generated + */ + public Adapter createOpenstackRequestDeleteAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestPoll Openstack Request Poll}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.core.OpenstackRequestPoll + * @generated + */ + public Adapter createOpenstackRequestPollAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType Virtual Machine Type}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.core.VirtualMachineType + * @generated + */ + public Adapter createVirtualMachineTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.SecurityRule Security Rule}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.core.SecurityRule + * @generated + */ + public Adapter createSecurityRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //CoreAdapterFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreSwitch.java new file mode 100644 index 0000000..2360076 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreSwitch.java @@ -0,0 +1,236 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.util; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.openstack.core.*; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.openecomp.ncomp.openstack.core.CorePackage + * @generated + */ +public class CoreSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static CorePackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public CoreSwitch() { + if (modelPackage == null) { + modelPackage = CorePackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case CorePackage.OPEN_STACK_REQUEST: { + OpenStackRequest openStackRequest = (OpenStackRequest)theEObject; + T result = caseOpenStackRequest(openStackRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CorePackage.OPENSTACK_REQUEST_DELETE: { + OpenstackRequestDelete openstackRequestDelete = (OpenstackRequestDelete)theEObject; + T result = caseOpenstackRequestDelete(openstackRequestDelete); + if (result == null) result = caseOpenStackRequest(openstackRequestDelete); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CorePackage.OPENSTACK_REQUEST_POLL: { + OpenstackRequestPoll openstackRequestPoll = (OpenstackRequestPoll)theEObject; + T result = caseOpenstackRequestPoll(openstackRequestPoll); + if (result == null) result = caseOpenStackRequest(openstackRequestPoll); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CorePackage.VIRTUAL_MACHINE_TYPE: { + VirtualMachineType virtualMachineType = (VirtualMachineType)theEObject; + T result = caseVirtualMachineType(virtualMachineType); + if (result == null) result = caseNamedEntity(virtualMachineType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case CorePackage.SECURITY_RULE: { + SecurityRule securityRule = (SecurityRule)theEObject; + T result = caseSecurityRule(securityRule); + if (result == null) result = caseNamedEntity(securityRule); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Open Stack Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Open Stack Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenStackRequest(OpenStackRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Openstack Request Delete'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Openstack Request Delete'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenstackRequestDelete(OpenstackRequestDelete object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Openstack Request Poll'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Openstack Request Poll'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenstackRequestPoll(OpenstackRequestPoll object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Virtual Machine Type'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Virtual Machine Type'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVirtualMachineType(VirtualMachineType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Security Rule'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Security Rule'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSecurityRule(SecurityRule object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Named Entity'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Entity'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedEntity(NamedEntity object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //CoreSwitch diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenStackControllerImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenStackControllerImpl.java new file mode 100644 index 0000000..b0fcb92 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenStackControllerImpl.java @@ -0,0 +1,269 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.impl; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.OpenStackController; +import org.openecomp.ncomp.openstack.OpenstackPackage; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; +import org.openecomp.ncomp.openstack.location.OpenStackLocation; +import java.lang.reflect.InvocationTargetException; +import java.util.Collection; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.json.JSONObject; + +/** + * + * An implementation of the model object 'Open Stack Controller'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.impl.OpenStackControllerImpl#getLocations Locations}
  • + *
  • {@link org.openecomp.ncomp.openstack.impl.OpenStackControllerImpl#getVmTypes Vm Types}
  • + *
  • {@link org.openecomp.ncomp.openstack.impl.OpenStackControllerImpl#getUsers Users}
  • + *
+ *

+ * + * @generated + */ +public class OpenStackControllerImpl extends MinimalEObjectImpl.Container implements OpenStackController { + /** + * The cached value of the '{@link #getLocations() Locations}' containment reference list. + * + * + * @see #getLocations() + * @generated + * @ordered + */ + protected EList locations; + + /** + * The cached value of the '{@link #getVmTypes() Vm Types}' containment reference list. + * + * + * @see #getVmTypes() + * @generated + * @ordered + */ + protected EList vmTypes; + + /** + * The cached value of the '{@link #getUsers() Users}' containment reference list. + * + * + * @see #getUsers() + * @generated + * @ordered + */ + protected EList users; + + /** + * + * + * @generated + */ + protected OpenStackControllerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return OpenstackPackage.Literals.OPEN_STACK_CONTROLLER; + } + + /** + * + * + * @generated + */ + public EList getLocations() { + if (locations == null) { + locations = new EObjectContainmentEList(OpenStackLocation.class, this, OpenstackPackage.OPEN_STACK_CONTROLLER__LOCATIONS); + } + return locations; + } + + /** + * + * + * @generated + */ + public EList getVmTypes() { + if (vmTypes == null) { + vmTypes = new EObjectContainmentEList(VirtualMachineType.class, this, OpenstackPackage.OPEN_STACK_CONTROLLER__VM_TYPES); + } + return vmTypes; + } + + /** + * + * + * @generated + */ + public EList getUsers() { + if (users == null) { + users = new EObjectContainmentEList(User.class, this, OpenstackPackage.OPEN_STACK_CONTROLLER__USERS); + } + return users; + } + + /** + * + * + * @generated + */ + public void uploadOpenstackConfiguration(JSONObject cx, OpenStackLocation loc) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OpenstackPackage.OPEN_STACK_CONTROLLER__LOCATIONS: + return ((InternalEList)getLocations()).basicRemove(otherEnd, msgs); + case OpenstackPackage.OPEN_STACK_CONTROLLER__VM_TYPES: + return ((InternalEList)getVmTypes()).basicRemove(otherEnd, msgs); + case OpenstackPackage.OPEN_STACK_CONTROLLER__USERS: + return ((InternalEList)getUsers()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OpenstackPackage.OPEN_STACK_CONTROLLER__LOCATIONS: + return getLocations(); + case OpenstackPackage.OPEN_STACK_CONTROLLER__VM_TYPES: + return getVmTypes(); + case OpenstackPackage.OPEN_STACK_CONTROLLER__USERS: + return getUsers(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OpenstackPackage.OPEN_STACK_CONTROLLER__LOCATIONS: + getLocations().clear(); + getLocations().addAll((Collection)newValue); + return; + case OpenstackPackage.OPEN_STACK_CONTROLLER__VM_TYPES: + getVmTypes().clear(); + getVmTypes().addAll((Collection)newValue); + return; + case OpenstackPackage.OPEN_STACK_CONTROLLER__USERS: + getUsers().clear(); + getUsers().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OpenstackPackage.OPEN_STACK_CONTROLLER__LOCATIONS: + getLocations().clear(); + return; + case OpenstackPackage.OPEN_STACK_CONTROLLER__VM_TYPES: + getVmTypes().clear(); + return; + case OpenstackPackage.OPEN_STACK_CONTROLLER__USERS: + getUsers().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OpenstackPackage.OPEN_STACK_CONTROLLER__LOCATIONS: + return locations != null && !locations.isEmpty(); + case OpenstackPackage.OPEN_STACK_CONTROLLER__VM_TYPES: + return vmTypes != null && !vmTypes.isEmpty(); + case OpenstackPackage.OPEN_STACK_CONTROLLER__USERS: + return users != null && !users.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case OpenstackPackage.OPEN_STACK_CONTROLLER___UPLOAD_OPENSTACK_CONFIGURATION__JSONOBJECT_OPENSTACKLOCATION: + uploadOpenstackConfiguration((JSONObject)arguments.get(0), (OpenStackLocation)arguments.get(1)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //OpenStackControllerImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenstackFactoryImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenstackFactoryImpl.java new file mode 100644 index 0000000..02a56d5 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenstackFactoryImpl.java @@ -0,0 +1,116 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.impl; + +import org.openecomp.ncomp.openstack.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class OpenstackFactoryImpl extends EFactoryImpl implements OpenstackFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static OpenstackFactory init() { + try { + OpenstackFactory theOpenstackFactory = (OpenstackFactory)EPackage.Registry.INSTANCE.getEFactory(OpenstackPackage.eNS_URI); + if (theOpenstackFactory != null) { + return theOpenstackFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new OpenstackFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public OpenstackFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case OpenstackPackage.OPEN_STACK_CONTROLLER: return createOpenStackController(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public OpenStackController createOpenStackController() { + OpenStackControllerImpl openStackController = new OpenStackControllerImpl(); + return openStackController; + } + + /** + * + * + * @generated + */ + public OpenstackPackage getOpenstackPackage() { + return (OpenstackPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static OpenstackPackage getPackage() { + return OpenstackPackage.eINSTANCE; + } + +} //OpenstackFactoryImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenstackPackageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenstackPackageImpl.java new file mode 100644 index 0000000..571822f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenstackPackageImpl.java @@ -0,0 +1,243 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.impl; + +import org.openecomp.ncomp.openstack.OpenStackController; +import org.openecomp.ncomp.openstack.OpenstackFactory; +import org.openecomp.ncomp.openstack.OpenstackPackage; +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.openecomp.ncomp.openstack.location.LocationPackage; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class OpenstackPackageImpl extends EPackageImpl implements OpenstackPackage { + /** + * + * + * @generated + */ + private EClass openStackControllerEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.OpenstackPackage#eNS_URI + * @see #init() + * @generated + */ + private OpenstackPackageImpl() { + super(eNS_URI, OpenstackFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link OpenstackPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static OpenstackPackage init() { + if (isInited) return (OpenstackPackage)EPackage.Registry.INSTANCE.getEPackage(OpenstackPackage.eNS_URI); + + // Obtain or create and register package + OpenstackPackageImpl theOpenstackPackage = (OpenstackPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OpenstackPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OpenstackPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + LocationPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theOpenstackPackage.createPackageContents(); + + // Initialize created meta-data + theOpenstackPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theOpenstackPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(OpenstackPackage.eNS_URI, theOpenstackPackage); + return theOpenstackPackage; + } + + /** + * + * + * @generated + */ + public EClass getOpenStackController() { + return openStackControllerEClass; + } + + /** + * + * + * @generated + */ + public EReference getOpenStackController_Locations() { + return (EReference)openStackControllerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackController_VmTypes() { + return (EReference)openStackControllerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackController_Users() { + return (EReference)openStackControllerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackController__UploadOpenstackConfiguration__JSONObject_OpenStackLocation() { + return openStackControllerEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public OpenstackFactory getOpenstackFactory() { + return (OpenstackFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + openStackControllerEClass = createEClass(OPEN_STACK_CONTROLLER); + createEReference(openStackControllerEClass, OPEN_STACK_CONTROLLER__LOCATIONS); + createEReference(openStackControllerEClass, OPEN_STACK_CONTROLLER__VM_TYPES); + createEReference(openStackControllerEClass, OPEN_STACK_CONTROLLER__USERS); + createEOperation(openStackControllerEClass, OPEN_STACK_CONTROLLER___UPLOAD_OPENSTACK_CONFIGURATION__JSONOBJECT_OPENSTACKLOCATION); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + LocationPackage theLocationPackage = (LocationPackage)EPackage.Registry.INSTANCE.getEPackage(LocationPackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes, features, and operations; add parameters + initEClass(openStackControllerEClass, OpenStackController.class, "OpenStackController", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenStackController_Locations(), theLocationPackage.getOpenStackLocation(), null, "locations", null, 0, -1, OpenStackController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackController_VmTypes(), theCorePackage.getVirtualMachineType(), null, "vmTypes", null, 0, -1, OpenStackController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackController_Users(), theCorePackage_1.getUser(), null, "users", null, 0, -1, OpenStackController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + EOperation op = initEOperation(getOpenStackController__UploadOpenstackConfiguration__JSONObject_OpenStackLocation(), null, "uploadOpenstackConfiguration", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage_1.getRemoteContext(), "cx", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theLocationPackage.getOpenStackLocation(), "loc", 0, 1, !IS_UNIQUE, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //OpenstackPackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/Hypervisor.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/Hypervisor.java new file mode 100644 index 0000000..154c46b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/Hypervisor.java @@ -0,0 +1,530 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Hypervisor'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getService Service}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getHost_ip Host ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus_used Vcpus used}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_type Hypervisor type}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb_used Local gb used}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_hostname Hypervisor hostname}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb_used Memory mb used}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb Memory mb}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getCurrent_workload Current workload}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus Vcpus}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getCpu_info Cpu info}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getRunning_vms Running vms}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getFree_disk_gb Free disk gb}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_version Hypervisor version}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getDisk_available_least Disk available least}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb Local gb}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getFree_ram_mb Free ram mb}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.Hypervisor#getId Id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor() + * @model + * @generated + */ +public interface Hypervisor extends NamedEntity { + /** + * Returns the value of the 'Service' containment reference. + * + *

+ * If the meaning of the 'Service' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Service' containment reference. + * @see #setService(HypervisorService) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Service() + * @model containment="true" + * @generated + */ + HypervisorService getService(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getService Service}' containment reference. + * + * + * @param value the new value of the 'Service' containment reference. + * @see #getService() + * @generated + */ + void setService(HypervisorService value); + + /** + * Returns the value of the 'Host ip' attribute. + * + *

+ * If the meaning of the 'Host ip' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Host ip' attribute. + * @see #setHost_ip(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Host_ip() + * @model unique="false" + * @generated + */ + String getHost_ip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHost_ip Host ip}' attribute. + * + * + * @param value the new value of the 'Host ip' attribute. + * @see #getHost_ip() + * @generated + */ + void setHost_ip(String value); + + /** + * Returns the value of the 'Vcpus used' attribute. + * + *

+ * If the meaning of the 'Vcpus used' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vcpus used' attribute. + * @see #setVcpus_used(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Vcpus_used() + * @model unique="false" + * @generated + */ + int getVcpus_used(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus_used Vcpus used}' attribute. + * + * + * @param value the new value of the 'Vcpus used' attribute. + * @see #getVcpus_used() + * @generated + */ + void setVcpus_used(int value); + + /** + * Returns the value of the 'Hypervisor type' attribute. + * + *

+ * If the meaning of the 'Hypervisor type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Hypervisor type' attribute. + * @see #setHypervisor_type(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Hypervisor_type() + * @model unique="false" + * @generated + */ + String getHypervisor_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_type Hypervisor type}' attribute. + * + * + * @param value the new value of the 'Hypervisor type' attribute. + * @see #getHypervisor_type() + * @generated + */ + void setHypervisor_type(String value); + + /** + * Returns the value of the 'Local gb used' attribute. + * + *

+ * If the meaning of the 'Local gb used' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Local gb used' attribute. + * @see #setLocal_gb_used(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Local_gb_used() + * @model unique="false" + * @generated + */ + int getLocal_gb_used(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb_used Local gb used}' attribute. + * + * + * @param value the new value of the 'Local gb used' attribute. + * @see #getLocal_gb_used() + * @generated + */ + void setLocal_gb_used(int value); + + /** + * Returns the value of the 'Hypervisor hostname' attribute. + * + *

+ * If the meaning of the 'Hypervisor hostname' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Hypervisor hostname' attribute. + * @see #setHypervisor_hostname(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Hypervisor_hostname() + * @model unique="false" + * @generated + */ + String getHypervisor_hostname(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_hostname Hypervisor hostname}' attribute. + * + * + * @param value the new value of the 'Hypervisor hostname' attribute. + * @see #getHypervisor_hostname() + * @generated + */ + void setHypervisor_hostname(String value); + + /** + * Returns the value of the 'Memory mb used' attribute. + * + *

+ * If the meaning of the 'Memory mb used' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory mb used' attribute. + * @see #setMemory_mb_used(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Memory_mb_used() + * @model unique="false" + * @generated + */ + int getMemory_mb_used(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb_used Memory mb used}' attribute. + * + * + * @param value the new value of the 'Memory mb used' attribute. + * @see #getMemory_mb_used() + * @generated + */ + void setMemory_mb_used(int value); + + /** + * Returns the value of the 'Memory mb' attribute. + * + *

+ * If the meaning of the 'Memory mb' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Memory mb' attribute. + * @see #setMemory_mb(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Memory_mb() + * @model unique="false" + * @generated + */ + int getMemory_mb(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb Memory mb}' attribute. + * + * + * @param value the new value of the 'Memory mb' attribute. + * @see #getMemory_mb() + * @generated + */ + void setMemory_mb(int value); + + /** + * Returns the value of the 'Current workload' attribute. + * + *

+ * If the meaning of the 'Current workload' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Current workload' attribute. + * @see #setCurrent_workload(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Current_workload() + * @model unique="false" + * @generated + */ + int getCurrent_workload(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getCurrent_workload Current workload}' attribute. + * + * + * @param value the new value of the 'Current workload' attribute. + * @see #getCurrent_workload() + * @generated + */ + void setCurrent_workload(int value); + + /** + * Returns the value of the 'Vcpus' attribute. + * + *

+ * If the meaning of the 'Vcpus' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vcpus' attribute. + * @see #setVcpus(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Vcpus() + * @model unique="false" + * @generated + */ + int getVcpus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus Vcpus}' attribute. + * + * + * @param value the new value of the 'Vcpus' attribute. + * @see #getVcpus() + * @generated + */ + void setVcpus(int value); + + /** + * Returns the value of the 'Cpu info' containment reference. + * + *

+ * If the meaning of the 'Cpu info' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Cpu info' containment reference. + * @see #setCpu_info(HypervisorCpuInfo) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Cpu_info() + * @model containment="true" + * @generated + */ + HypervisorCpuInfo getCpu_info(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getCpu_info Cpu info}' containment reference. + * + * + * @param value the new value of the 'Cpu info' containment reference. + * @see #getCpu_info() + * @generated + */ + void setCpu_info(HypervisorCpuInfo value); + + /** + * Returns the value of the 'Running vms' attribute. + * + *

+ * If the meaning of the 'Running vms' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Running vms' attribute. + * @see #setRunning_vms(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Running_vms() + * @model unique="false" + * @generated + */ + int getRunning_vms(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getRunning_vms Running vms}' attribute. + * + * + * @param value the new value of the 'Running vms' attribute. + * @see #getRunning_vms() + * @generated + */ + void setRunning_vms(int value); + + /** + * Returns the value of the 'Free disk gb' attribute. + * + *

+ * If the meaning of the 'Free disk gb' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Free disk gb' attribute. + * @see #setFree_disk_gb(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Free_disk_gb() + * @model unique="false" + * @generated + */ + int getFree_disk_gb(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getFree_disk_gb Free disk gb}' attribute. + * + * + * @param value the new value of the 'Free disk gb' attribute. + * @see #getFree_disk_gb() + * @generated + */ + void setFree_disk_gb(int value); + + /** + * Returns the value of the 'Hypervisor version' attribute. + * + *

+ * If the meaning of the 'Hypervisor version' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Hypervisor version' attribute. + * @see #setHypervisor_version(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Hypervisor_version() + * @model unique="false" + * @generated + */ + int getHypervisor_version(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_version Hypervisor version}' attribute. + * + * + * @param value the new value of the 'Hypervisor version' attribute. + * @see #getHypervisor_version() + * @generated + */ + void setHypervisor_version(int value); + + /** + * Returns the value of the 'Disk available least' attribute. + * + *

+ * If the meaning of the 'Disk available least' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Disk available least' attribute. + * @see #setDisk_available_least(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Disk_available_least() + * @model unique="false" + * @generated + */ + int getDisk_available_least(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getDisk_available_least Disk available least}' attribute. + * + * + * @param value the new value of the 'Disk available least' attribute. + * @see #getDisk_available_least() + * @generated + */ + void setDisk_available_least(int value); + + /** + * Returns the value of the 'Local gb' attribute. + * + *

+ * If the meaning of the 'Local gb' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Local gb' attribute. + * @see #setLocal_gb(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Local_gb() + * @model unique="false" + * @generated + */ + int getLocal_gb(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb Local gb}' attribute. + * + * + * @param value the new value of the 'Local gb' attribute. + * @see #getLocal_gb() + * @generated + */ + void setLocal_gb(int value); + + /** + * Returns the value of the 'Free ram mb' attribute. + * + *

+ * If the meaning of the 'Free ram mb' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Free ram mb' attribute. + * @see #setFree_ram_mb(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Free_ram_mb() + * @model unique="false" + * @generated + */ + int getFree_ram_mb(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getFree_ram_mb Free ram mb}' attribute. + * + * + * @param value the new value of the 'Free ram mb' attribute. + * @see #getFree_ram_mb() + * @generated + */ + void setFree_ram_mb(int value); + + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Id() + * @model unique="false" + * @generated + */ + int getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(int value); + +} // Hypervisor diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuInfo.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuInfo.java new file mode 100644 index 0000000..8cfcc52 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuInfo.java @@ -0,0 +1,171 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Hypervisor Cpu Info'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getVendor Vendor}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getModel Model}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getArch Arch}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getFeatures Features}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getTopology Topology}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo() + * @model + * @generated + */ +public interface HypervisorCpuInfo extends EObject { + /** + * Returns the value of the 'Vendor' attribute. + * + *

+ * If the meaning of the 'Vendor' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Vendor' attribute. + * @see #setVendor(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Vendor() + * @model unique="false" + * @generated + */ + String getVendor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getVendor Vendor}' attribute. + * + * + * @param value the new value of the 'Vendor' attribute. + * @see #getVendor() + * @generated + */ + void setVendor(String value); + + /** + * Returns the value of the 'Model' attribute. + * + *

+ * If the meaning of the 'Model' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Model' attribute. + * @see #setModel(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Model() + * @model unique="false" + * @generated + */ + String getModel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getModel Model}' attribute. + * + * + * @param value the new value of the 'Model' attribute. + * @see #getModel() + * @generated + */ + void setModel(String value); + + /** + * Returns the value of the 'Arch' attribute. + * + *

+ * If the meaning of the 'Arch' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Arch' attribute. + * @see #setArch(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Arch() + * @model unique="false" + * @generated + */ + String getArch(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getArch Arch}' attribute. + * + * + * @param value the new value of the 'Arch' attribute. + * @see #getArch() + * @generated + */ + void setArch(String value); + + /** + * Returns the value of the 'Features' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Features' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Features' attribute list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Features() + * @model unique="false" + * @generated + */ + EList getFeatures(); + + /** + * Returns the value of the 'Topology' containment reference. + * + *

+ * If the meaning of the 'Topology' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Topology' containment reference. + * @see #setTopology(HypervisorCpuTopology) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Topology() + * @model containment="true" + * @generated + */ + HypervisorCpuTopology getTopology(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getTopology Topology}' containment reference. + * + * + * @param value the new value of the 'Topology' containment reference. + * @see #getTopology() + * @generated + */ + void setTopology(HypervisorCpuTopology value); + +} // HypervisorCpuInfo diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuTopology.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuTopology.java new file mode 100644 index 0000000..d54569f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuTopology.java @@ -0,0 +1,125 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Hypervisor Cpu Topology'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getCores Cores}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getThreads Threads}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getSockets Sockets}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuTopology() + * @model + * @generated + */ +public interface HypervisorCpuTopology extends EObject { + /** + * Returns the value of the 'Cores' attribute. + * + *

+ * If the meaning of the 'Cores' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Cores' attribute. + * @see #setCores(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuTopology_Cores() + * @model unique="false" + * @generated + */ + int getCores(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getCores Cores}' attribute. + * + * + * @param value the new value of the 'Cores' attribute. + * @see #getCores() + * @generated + */ + void setCores(int value); + + /** + * Returns the value of the 'Threads' attribute. + * + *

+ * If the meaning of the 'Threads' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Threads' attribute. + * @see #setThreads(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuTopology_Threads() + * @model unique="false" + * @generated + */ + int getThreads(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getThreads Threads}' attribute. + * + * + * @param value the new value of the 'Threads' attribute. + * @see #getThreads() + * @generated + */ + void setThreads(int value); + + /** + * Returns the value of the 'Sockets' attribute. + * + *

+ * If the meaning of the 'Sockets' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Sockets' attribute. + * @see #setSockets(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuTopology_Sockets() + * @model unique="false" + * @generated + */ + int getSockets(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getSockets Sockets}' attribute. + * + * + * @param value the new value of the 'Sockets' attribute. + * @see #getSockets() + * @generated + */ + void setSockets(int value); + +} // HypervisorCpuTopology diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorService.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorService.java new file mode 100644 index 0000000..5fd546b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorService.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Hypervisor Service'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorService#getHost Host}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.HypervisorService#getId Id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorService() + * @model + * @generated + */ +public interface HypervisorService extends EObject { + /** + * Returns the value of the 'Host' attribute. + * + *

+ * If the meaning of the 'Host' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Host' attribute. + * @see #setHost(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorService_Host() + * @model unique="false" + * @generated + */ + String getHost(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorService#getHost Host}' attribute. + * + * + * @param value the new value of the 'Host' attribute. + * @see #getHost() + * @generated + */ + void setHost(String value); + + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorService_Id() + * @model unique="false" + * @generated + */ + int getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorService#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(int value); + +} // HypervisorService diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationFactory.java new file mode 100644 index 0000000..a503ccc --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationFactory.java @@ -0,0 +1,117 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.openstack.location.LocationPackage + * @generated + */ +public interface LocationFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + LocationFactory eINSTANCE = org.openecomp.ncomp.openstack.location.impl.LocationFactoryImpl.init(); + + /** + * Returns a new object of class 'Open Stack Location'. + * + * + * @return a new object of class 'Open Stack Location'. + * @generated + */ + OpenStackLocation createOpenStackLocation(); + + /** + * Returns a new object of class 'Open Stack Project'. + * + * + * @return a new object of class 'Open Stack Project'. + * @generated + */ + OpenStackProject createOpenStackProject(); + + /** + * Returns a new object of class 'Open Stack User'. + * + * + * @return a new object of class 'Open Stack User'. + * @generated + */ + OpenStackUser createOpenStackUser(); + + /** + * Returns a new object of class 'Hypervisor Service'. + * + * + * @return a new object of class 'Hypervisor Service'. + * @generated + */ + HypervisorService createHypervisorService(); + + /** + * Returns a new object of class 'Hypervisor Cpu Topology'. + * + * + * @return a new object of class 'Hypervisor Cpu Topology'. + * @generated + */ + HypervisorCpuTopology createHypervisorCpuTopology(); + + /** + * Returns a new object of class 'Hypervisor Cpu Info'. + * + * + * @return a new object of class 'Hypervisor Cpu Info'. + * @generated + */ + HypervisorCpuInfo createHypervisorCpuInfo(); + + /** + * Returns a new object of class 'Hypervisor'. + * + * + * @return a new object of class 'Hypervisor'. + * @generated + */ + Hypervisor createHypervisor(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + LocationPackage getLocationPackage(); + +} //LocationFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationPackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationPackage.java new file mode 100644 index 0000000..ccbef80 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationPackage.java @@ -0,0 +1,2747 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.openecomp.ncomp.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.openecomp.ncomp.openstack.location.LocationFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-openstack-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.openstack'" + * annotation="http://www.eclipse.org/emf/2011/Xcore persistence='http://openecomp.org/sirius/persistence'" + * @generated + */ +public interface LocationPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "location"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.openstack.location"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "location"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + LocationPackage eINSTANCE = org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl Open Stack Location}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getOpenStackLocation() + * @generated + */ + int OPEN_STACK_LOCATION = 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Ceilometer Available Capabilites' attribute list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__CEILOMETER_AVAILABLE_CAPABILITES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Ceilometer Unavailable Capabilites' attribute list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__CEILOMETER_UNAVAILABLE_CAPABILITES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Version' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__VERSION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Remote Location' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__REMOTE_LOCATION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Remote Location Name' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__REMOTE_LOCATION_NAME = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Allow Create Flavor' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__ALLOW_CREATE_FLAVOR = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Keystone Url' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__KEYSTONE_URL = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Bypass Ip' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__BYPASS_IP = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Flavor Id' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__FLAVOR_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Supports Security Groups' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__SUPPORTS_SECURITY_GROUPS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Supports Floating Ips' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__SUPPORTS_FLOATING_IPS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Projects' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__PROJECTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Users' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__USERS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Images' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__IMAGES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Flavors' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__FLAVORS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Hypervisors' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION__HYPERVISORS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 15; + + /** + * The number of structural features of the 'Open Stack Location' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 16; + + /** + * The operation id for the 'Create Network' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_NETWORK__CREATENETWORKREQUEST = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The operation id for the 'Create Subnet' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_SUBNET__CREATESUBNETREQUEST = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 1; + + /** + * The operation id for the 'Create Port' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_PORT__CREATEPORTREQUEST = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 2; + + /** + * The operation id for the 'Create Router' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_ROUTER__CREATEROUTERREQUEST = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 3; + + /** + * The operation id for the 'Delete Network' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___DELETE_NETWORK__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 4; + + /** + * The operation id for the 'Delete Subnet' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___DELETE_SUBNET__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 5; + + /** + * The operation id for the 'Delete Port' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___DELETE_PORT__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 6; + + /** + * The operation id for the 'Delete Router' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___DELETE_ROUTER__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 7; + + /** + * The operation id for the 'Associate Floating Ip' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 8; + + /** + * The operation id for the 'Create Server' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 9; + + /** + * The operation id for the 'Delete Server' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___DELETE_SERVER__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 10; + + /** + * The operation id for the 'Create Key Pair' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 11; + + /** + * The operation id for the 'Delete' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___DELETE__OPENSTACKREQUESTDELETE = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 12; + + /** + * The operation id for the 'Create Flavor' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 13; + + /** + * The operation id for the 'Create Security Group' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 14; + + /** + * The operation id for the 'Server Action' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 15; + + /** + * The operation id for the 'Deploy Vm Type' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___DEPLOY_VM_TYPE__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 16; + + /** + * The operation id for the 'Undeploy Vm Type' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___UNDEPLOY_VM_TYPE__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 17; + + /** + * The operation id for the 'Deploy User' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___DEPLOY_USER__USER_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 18; + + /** + * The operation id for the 'Undeploy User' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___UNDEPLOY_USER__USER_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 19; + + /** + * The operation id for the 'Create Alarm' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_ALARM__CREATEALARMREQUEST = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 20; + + /** + * The operation id for the 'Delete Alarm' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___DELETE_ALARM__STRING_STRING = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 21; + + /** + * The operation id for the 'Create Alarm' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___CREATE_ALARM__SAMPLEREQUEST = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 22; + + /** + * The operation id for the 'Poll' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___POLL = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 23; + + /** + * The operation id for the 'Merge Location' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION___MERGE_LOCATION__OPENSTACKLOCATION = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 24; + + /** + * The number of operations of the 'Open Stack Location' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_LOCATION_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 25; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl Open Stack Project}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getOpenStackProject() + * @generated + */ + int OPEN_STACK_PROJECT = 1; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Alarms' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__ALARMS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Resources' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__RESOURCES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Meters' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__METERS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'ID' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Admin User' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__ADMIN_USER = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Tenant Id' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__TENANT_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Region' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__REGION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Private Network' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__PRIVATE_NETWORK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Public Network' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__PUBLIC_NETWORK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Api Key' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__API_KEY = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Servers' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__SERVERS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Users' reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__USERS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Controller User' reference. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__CONTROLLER_USER = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Volumes' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__VOLUMES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Ips' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__IPS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Groups' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__GROUPS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Keypairs' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__KEYPAIRS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 16; + + /** + * The feature id for the 'Networks' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__NETWORKS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 17; + + /** + * The feature id for the 'Subnets' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__SUBNETS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 18; + + /** + * The feature id for the 'Routers' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__ROUTERS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 19; + + /** + * The feature id for the 'Ports' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__PORTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 20; + + /** + * The feature id for the 'Security groups' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__SECURITY_GROUPS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 21; + + /** + * The feature id for the 'Floatingips' containment reference list. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT__FLOATINGIPS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 22; + + /** + * The number of structural features of the 'Open Stack Project' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 23; + + /** + * The operation id for the 'Update Nova State' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT___UPDATE_NOVA_STATE = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The operation id for the 'Create Network' operation. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT___CREATE_NETWORK__CREATENETWORKREQUEST = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 1; + + /** + * The number of operations of the 'Open Stack Project' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_PROJECT_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 2; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.location.impl.OpenStackUserImpl Open Stack User}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.OpenStackUserImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getOpenStackUser() + * @generated + */ + int OPEN_STACK_USER = 2; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_USER__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_USER__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_USER__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_USER__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Password' attribute. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_USER__PASSWORD = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Open Stack User' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_USER_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Open Stack User' class. + * + * + * @generated + * @ordered + */ + int OPEN_STACK_USER_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.location.impl.HypervisorServiceImpl Hypervisor Service}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.HypervisorServiceImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getHypervisorService() + * @generated + */ + int HYPERVISOR_SERVICE = 3; + + /** + * The feature id for the 'Host' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_SERVICE__HOST = 0; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_SERVICE__ID = 1; + + /** + * The number of structural features of the 'Hypervisor Service' class. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_SERVICE_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Hypervisor Service' class. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_SERVICE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuTopologyImpl Hypervisor Cpu Topology}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.HypervisorCpuTopologyImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getHypervisorCpuTopology() + * @generated + */ + int HYPERVISOR_CPU_TOPOLOGY = 4; + + /** + * The feature id for the 'Cores' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_TOPOLOGY__CORES = 0; + + /** + * The feature id for the 'Threads' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_TOPOLOGY__THREADS = 1; + + /** + * The feature id for the 'Sockets' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_TOPOLOGY__SOCKETS = 2; + + /** + * The number of structural features of the 'Hypervisor Cpu Topology' class. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_TOPOLOGY_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Hypervisor Cpu Topology' class. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_TOPOLOGY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuInfoImpl Hypervisor Cpu Info}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.HypervisorCpuInfoImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getHypervisorCpuInfo() + * @generated + */ + int HYPERVISOR_CPU_INFO = 5; + + /** + * The feature id for the 'Vendor' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_INFO__VENDOR = 0; + + /** + * The feature id for the 'Model' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_INFO__MODEL = 1; + + /** + * The feature id for the 'Arch' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_INFO__ARCH = 2; + + /** + * The feature id for the 'Features' attribute list. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_INFO__FEATURES = 3; + + /** + * The feature id for the 'Topology' containment reference. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_INFO__TOPOLOGY = 4; + + /** + * The number of structural features of the 'Hypervisor Cpu Info' class. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_INFO_FEATURE_COUNT = 5; + + /** + * The number of operations of the 'Hypervisor Cpu Info' class. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_CPU_INFO_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl Hypervisor}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.HypervisorImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getHypervisor() + * @generated + */ + int HYPERVISOR = 6; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Service' containment reference. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__SERVICE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Host ip' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__HOST_IP = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Vcpus used' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__VCPUS_USED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Hypervisor type' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__HYPERVISOR_TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Local gb used' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__LOCAL_GB_USED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Hypervisor hostname' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__HYPERVISOR_HOSTNAME = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Memory mb used' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__MEMORY_MB_USED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Memory mb' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__MEMORY_MB = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Current workload' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__CURRENT_WORKLOAD = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Vcpus' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__VCPUS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Cpu info' containment reference. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__CPU_INFO = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Running vms' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__RUNNING_VMS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Free disk gb' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__FREE_DISK_GB = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Hypervisor version' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__HYPERVISOR_VERSION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Disk available least' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__DISK_AVAILABLE_LEAST = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Local gb' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__LOCAL_GB = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Free ram mb' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__FREE_RAM_MB = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 16; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int HYPERVISOR__ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 17; + + /** + * The number of structural features of the 'Hypervisor' class. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 18; + + /** + * The number of operations of the 'Hypervisor' class. + * + * + * @generated + * @ordered + */ + int HYPERVISOR_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.location.OpenStackVersion Open Stack Version}' enum. + * + * + * @see org.openecomp.ncomp.openstack.location.OpenStackVersion + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getOpenStackVersion() + * @generated + */ + int OPEN_STACK_VERSION = 7; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation Open Stack Location}'. + * + * + * @return the meta object for class 'Open Stack Location'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation + * @generated + */ + EClass getOpenStackLocation(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getVersion Version}'. + * + * + * @return the meta object for the attribute 'Version'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getVersion() + * @see #getOpenStackLocation() + * @generated + */ + EAttribute getOpenStackLocation_Version(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isRemoteLocation Remote Location}'. + * + * + * @return the meta object for the attribute 'Remote Location'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#isRemoteLocation() + * @see #getOpenStackLocation() + * @generated + */ + EAttribute getOpenStackLocation_RemoteLocation(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getRemoteLocationName Remote Location Name}'. + * + * + * @return the meta object for the attribute 'Remote Location Name'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getRemoteLocationName() + * @see #getOpenStackLocation() + * @generated + */ + EAttribute getOpenStackLocation_RemoteLocationName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isAllowCreateFlavor Allow Create Flavor}'. + * + * + * @return the meta object for the attribute 'Allow Create Flavor'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#isAllowCreateFlavor() + * @see #getOpenStackLocation() + * @generated + */ + EAttribute getOpenStackLocation_AllowCreateFlavor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getKeystoneUrl Keystone Url}'. + * + * + * @return the meta object for the attribute 'Keystone Url'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getKeystoneUrl() + * @see #getOpenStackLocation() + * @generated + */ + EAttribute getOpenStackLocation_KeystoneUrl(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getBypassIp Bypass Ip}'. + * + * + * @return the meta object for the attribute 'Bypass Ip'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getBypassIp() + * @see #getOpenStackLocation() + * @generated + */ + EAttribute getOpenStackLocation_BypassIp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getFlavorId Flavor Id}'. + * + * + * @return the meta object for the attribute 'Flavor Id'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getFlavorId() + * @see #getOpenStackLocation() + * @generated + */ + EAttribute getOpenStackLocation_FlavorId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsSecurityGroups Supports Security Groups}'. + * + * + * @return the meta object for the attribute 'Supports Security Groups'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsSecurityGroups() + * @see #getOpenStackLocation() + * @generated + */ + EAttribute getOpenStackLocation_SupportsSecurityGroups(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsFloatingIps Supports Floating Ips}'. + * + * + * @return the meta object for the attribute 'Supports Floating Ips'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsFloatingIps() + * @see #getOpenStackLocation() + * @generated + */ + EAttribute getOpenStackLocation_SupportsFloatingIps(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getProjects Projects}'. + * + * + * @return the meta object for the containment reference list 'Projects'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getProjects() + * @see #getOpenStackLocation() + * @generated + */ + EReference getOpenStackLocation_Projects(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getUsers Users}'. + * + * + * @return the meta object for the containment reference list 'Users'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getUsers() + * @see #getOpenStackLocation() + * @generated + */ + EReference getOpenStackLocation_Users(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getImages Images}'. + * + * + * @return the meta object for the containment reference list 'Images'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getImages() + * @see #getOpenStackLocation() + * @generated + */ + EReference getOpenStackLocation_Images(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getFlavors Flavors}'. + * + * + * @return the meta object for the containment reference list 'Flavors'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getFlavors() + * @see #getOpenStackLocation() + * @generated + */ + EReference getOpenStackLocation_Flavors(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getHypervisors Hypervisors}'. + * + * + * @return the meta object for the containment reference list 'Hypervisors'. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#getHypervisors() + * @see #getOpenStackLocation() + * @generated + */ + EReference getOpenStackLocation_Hypervisors(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#poll() Poll}' operation. + * + * + * @return the meta object for the 'Poll' operation. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#poll() + * @generated + */ + EOperation getOpenStackLocation__Poll(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#mergeLocation(org.openecomp.ncomp.openstack.location.OpenStackLocation) Merge Location}' operation. + * + * + * @return the meta object for the 'Merge Location' operation. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation#mergeLocation(org.openecomp.ncomp.openstack.location.OpenStackLocation) + * @generated + */ + EOperation getOpenStackLocation__MergeLocation__OpenStackLocation(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.location.OpenStackProject Open Stack Project}'. + * + * + * @return the meta object for class 'Open Stack Project'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject + * @generated + */ + EClass getOpenStackProject(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getID ID}'. + * + * + * @return the meta object for the attribute 'ID'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getID() + * @see #getOpenStackProject() + * @generated + */ + EAttribute getOpenStackProject_ID(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getAdminUser Admin User}'. + * + * + * @return the meta object for the attribute 'Admin User'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getAdminUser() + * @see #getOpenStackProject() + * @generated + */ + EAttribute getOpenStackProject_AdminUser(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getTenantId Tenant Id}'. + * + * + * @return the meta object for the attribute 'Tenant Id'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getTenantId() + * @see #getOpenStackProject() + * @generated + */ + EAttribute getOpenStackProject_TenantId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getRegion Region}'. + * + * + * @return the meta object for the attribute 'Region'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getRegion() + * @see #getOpenStackProject() + * @generated + */ + EAttribute getOpenStackProject_Region(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPrivateNetwork Private Network}'. + * + * + * @return the meta object for the attribute 'Private Network'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getPrivateNetwork() + * @see #getOpenStackProject() + * @generated + */ + EAttribute getOpenStackProject_PrivateNetwork(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPublicNetwork Public Network}'. + * + * + * @return the meta object for the attribute 'Public Network'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getPublicNetwork() + * @see #getOpenStackProject() + * @generated + */ + EAttribute getOpenStackProject_PublicNetwork(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getApiKey Api Key}'. + * + * + * @return the meta object for the attribute 'Api Key'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getApiKey() + * @see #getOpenStackProject() + * @generated + */ + EAttribute getOpenStackProject_ApiKey(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getServers Servers}'. + * + * + * @return the meta object for the containment reference list 'Servers'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getServers() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Servers(); + + /** + * Returns the meta object for the reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getUsers Users}'. + * + * + * @return the meta object for the reference list 'Users'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getUsers() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Users(); + + /** + * Returns the meta object for the reference '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getControllerUser Controller User}'. + * + * + * @return the meta object for the reference 'Controller User'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getControllerUser() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_ControllerUser(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getVolumes Volumes}'. + * + * + * @return the meta object for the containment reference list 'Volumes'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getVolumes() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Volumes(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getIps Ips}'. + * + * + * @return the meta object for the containment reference list 'Ips'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getIps() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Ips(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getGroups Groups}'. + * + * + * @return the meta object for the containment reference list 'Groups'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getGroups() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Groups(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getKeypairs Keypairs}'. + * + * + * @return the meta object for the containment reference list 'Keypairs'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getKeypairs() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Keypairs(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getNetworks Networks}'. + * + * + * @return the meta object for the containment reference list 'Networks'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getNetworks() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Networks(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getSubnets Subnets}'. + * + * + * @return the meta object for the containment reference list 'Subnets'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getSubnets() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Subnets(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getRouters Routers}'. + * + * + * @return the meta object for the containment reference list 'Routers'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getRouters() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Routers(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPorts Ports}'. + * + * + * @return the meta object for the containment reference list 'Ports'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getPorts() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Ports(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getSecurity_groups Security groups}'. + * + * + * @return the meta object for the containment reference list 'Security groups'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getSecurity_groups() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Security_groups(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getFloatingips Floatingips}'. + * + * + * @return the meta object for the containment reference list 'Floatingips'. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#getFloatingips() + * @see #getOpenStackProject() + * @generated + */ + EReference getOpenStackProject_Floatingips(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#updateNovaState() Update Nova State}' operation. + * + * + * @return the meta object for the 'Update Nova State' operation. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#updateNovaState() + * @generated + */ + EOperation getOpenStackProject__UpdateNovaState(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#createNetwork(org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest) Create Network}' operation. + * + * + * @return the meta object for the 'Create Network' operation. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject#createNetwork(org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest) + * @generated + */ + EOperation getOpenStackProject__CreateNetwork__CreateNetworkRequest(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.location.OpenStackUser Open Stack User}'. + * + * + * @return the meta object for class 'Open Stack User'. + * @see org.openecomp.ncomp.openstack.location.OpenStackUser + * @generated + */ + EClass getOpenStackUser(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.OpenStackUser#getPassword Password}'. + * + * + * @return the meta object for the attribute 'Password'. + * @see org.openecomp.ncomp.openstack.location.OpenStackUser#getPassword() + * @see #getOpenStackUser() + * @generated + */ + EAttribute getOpenStackUser_Password(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.location.HypervisorService Hypervisor Service}'. + * + * + * @return the meta object for class 'Hypervisor Service'. + * @see org.openecomp.ncomp.openstack.location.HypervisorService + * @generated + */ + EClass getHypervisorService(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.HypervisorService#getHost Host}'. + * + * + * @return the meta object for the attribute 'Host'. + * @see org.openecomp.ncomp.openstack.location.HypervisorService#getHost() + * @see #getHypervisorService() + * @generated + */ + EAttribute getHypervisorService_Host(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.HypervisorService#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.location.HypervisorService#getId() + * @see #getHypervisorService() + * @generated + */ + EAttribute getHypervisorService_Id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology Hypervisor Cpu Topology}'. + * + * + * @return the meta object for class 'Hypervisor Cpu Topology'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuTopology + * @generated + */ + EClass getHypervisorCpuTopology(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getCores Cores}'. + * + * + * @return the meta object for the attribute 'Cores'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getCores() + * @see #getHypervisorCpuTopology() + * @generated + */ + EAttribute getHypervisorCpuTopology_Cores(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getThreads Threads}'. + * + * + * @return the meta object for the attribute 'Threads'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getThreads() + * @see #getHypervisorCpuTopology() + * @generated + */ + EAttribute getHypervisorCpuTopology_Threads(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getSockets Sockets}'. + * + * + * @return the meta object for the attribute 'Sockets'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getSockets() + * @see #getHypervisorCpuTopology() + * @generated + */ + EAttribute getHypervisorCpuTopology_Sockets(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo Hypervisor Cpu Info}'. + * + * + * @return the meta object for class 'Hypervisor Cpu Info'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuInfo + * @generated + */ + EClass getHypervisorCpuInfo(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getVendor Vendor}'. + * + * + * @return the meta object for the attribute 'Vendor'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getVendor() + * @see #getHypervisorCpuInfo() + * @generated + */ + EAttribute getHypervisorCpuInfo_Vendor(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getModel Model}'. + * + * + * @return the meta object for the attribute 'Model'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getModel() + * @see #getHypervisorCpuInfo() + * @generated + */ + EAttribute getHypervisorCpuInfo_Model(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getArch Arch}'. + * + * + * @return the meta object for the attribute 'Arch'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getArch() + * @see #getHypervisorCpuInfo() + * @generated + */ + EAttribute getHypervisorCpuInfo_Arch(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getFeatures Features}'. + * + * + * @return the meta object for the attribute list 'Features'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getFeatures() + * @see #getHypervisorCpuInfo() + * @generated + */ + EAttribute getHypervisorCpuInfo_Features(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getTopology Topology}'. + * + * + * @return the meta object for the containment reference 'Topology'. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getTopology() + * @see #getHypervisorCpuInfo() + * @generated + */ + EReference getHypervisorCpuInfo_Topology(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.location.Hypervisor Hypervisor}'. + * + * + * @return the meta object for class 'Hypervisor'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor + * @generated + */ + EClass getHypervisor(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getService Service}'. + * + * + * @return the meta object for the containment reference 'Service'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getService() + * @see #getHypervisor() + * @generated + */ + EReference getHypervisor_Service(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHost_ip Host ip}'. + * + * + * @return the meta object for the attribute 'Host ip'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getHost_ip() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Host_ip(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus_used Vcpus used}'. + * + * + * @return the meta object for the attribute 'Vcpus used'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus_used() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Vcpus_used(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_type Hypervisor type}'. + * + * + * @return the meta object for the attribute 'Hypervisor type'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_type() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Hypervisor_type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb_used Local gb used}'. + * + * + * @return the meta object for the attribute 'Local gb used'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb_used() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Local_gb_used(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_hostname Hypervisor hostname}'. + * + * + * @return the meta object for the attribute 'Hypervisor hostname'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_hostname() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Hypervisor_hostname(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb_used Memory mb used}'. + * + * + * @return the meta object for the attribute 'Memory mb used'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb_used() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Memory_mb_used(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb Memory mb}'. + * + * + * @return the meta object for the attribute 'Memory mb'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Memory_mb(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getCurrent_workload Current workload}'. + * + * + * @return the meta object for the attribute 'Current workload'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getCurrent_workload() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Current_workload(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus Vcpus}'. + * + * + * @return the meta object for the attribute 'Vcpus'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Vcpus(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getCpu_info Cpu info}'. + * + * + * @return the meta object for the containment reference 'Cpu info'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getCpu_info() + * @see #getHypervisor() + * @generated + */ + EReference getHypervisor_Cpu_info(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getRunning_vms Running vms}'. + * + * + * @return the meta object for the attribute 'Running vms'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getRunning_vms() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Running_vms(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getFree_disk_gb Free disk gb}'. + * + * + * @return the meta object for the attribute 'Free disk gb'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getFree_disk_gb() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Free_disk_gb(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_version Hypervisor version}'. + * + * + * @return the meta object for the attribute 'Hypervisor version'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_version() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Hypervisor_version(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getDisk_available_least Disk available least}'. + * + * + * @return the meta object for the attribute 'Disk available least'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getDisk_available_least() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Disk_available_least(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb Local gb}'. + * + * + * @return the meta object for the attribute 'Local gb'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Local_gb(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getFree_ram_mb Free ram mb}'. + * + * + * @return the meta object for the attribute 'Free ram mb'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getFree_ram_mb() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Free_ram_mb(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.location.Hypervisor#getId() + * @see #getHypervisor() + * @generated + */ + EAttribute getHypervisor_Id(); + + /** + * Returns the meta object for enum '{@link org.openecomp.ncomp.openstack.location.OpenStackVersion Open Stack Version}'. + * + * + * @return the meta object for enum 'Open Stack Version'. + * @see org.openecomp.ncomp.openstack.location.OpenStackVersion + * @generated + */ + EEnum getOpenStackVersion(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + LocationFactory getLocationFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl Open Stack Location}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getOpenStackLocation() + * @generated + */ + EClass OPEN_STACK_LOCATION = eINSTANCE.getOpenStackLocation(); + + /** + * The meta object literal for the 'Version' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_LOCATION__VERSION = eINSTANCE.getOpenStackLocation_Version(); + + /** + * The meta object literal for the 'Remote Location' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_LOCATION__REMOTE_LOCATION = eINSTANCE.getOpenStackLocation_RemoteLocation(); + + /** + * The meta object literal for the 'Remote Location Name' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_LOCATION__REMOTE_LOCATION_NAME = eINSTANCE.getOpenStackLocation_RemoteLocationName(); + + /** + * The meta object literal for the 'Allow Create Flavor' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_LOCATION__ALLOW_CREATE_FLAVOR = eINSTANCE.getOpenStackLocation_AllowCreateFlavor(); + + /** + * The meta object literal for the 'Keystone Url' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_LOCATION__KEYSTONE_URL = eINSTANCE.getOpenStackLocation_KeystoneUrl(); + + /** + * The meta object literal for the 'Bypass Ip' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_LOCATION__BYPASS_IP = eINSTANCE.getOpenStackLocation_BypassIp(); + + /** + * The meta object literal for the 'Flavor Id' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_LOCATION__FLAVOR_ID = eINSTANCE.getOpenStackLocation_FlavorId(); + + /** + * The meta object literal for the 'Supports Security Groups' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_LOCATION__SUPPORTS_SECURITY_GROUPS = eINSTANCE.getOpenStackLocation_SupportsSecurityGroups(); + + /** + * The meta object literal for the 'Supports Floating Ips' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_LOCATION__SUPPORTS_FLOATING_IPS = eINSTANCE.getOpenStackLocation_SupportsFloatingIps(); + + /** + * The meta object literal for the 'Projects' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_LOCATION__PROJECTS = eINSTANCE.getOpenStackLocation_Projects(); + + /** + * The meta object literal for the 'Users' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_LOCATION__USERS = eINSTANCE.getOpenStackLocation_Users(); + + /** + * The meta object literal for the 'Images' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_LOCATION__IMAGES = eINSTANCE.getOpenStackLocation_Images(); + + /** + * The meta object literal for the 'Flavors' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_LOCATION__FLAVORS = eINSTANCE.getOpenStackLocation_Flavors(); + + /** + * The meta object literal for the 'Hypervisors' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_LOCATION__HYPERVISORS = eINSTANCE.getOpenStackLocation_Hypervisors(); + + /** + * The meta object literal for the 'Poll' operation. + * + * + * @generated + */ + EOperation OPEN_STACK_LOCATION___POLL = eINSTANCE.getOpenStackLocation__Poll(); + + /** + * The meta object literal for the 'Merge Location' operation. + * + * + * @generated + */ + EOperation OPEN_STACK_LOCATION___MERGE_LOCATION__OPENSTACKLOCATION = eINSTANCE.getOpenStackLocation__MergeLocation__OpenStackLocation(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl Open Stack Project}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getOpenStackProject() + * @generated + */ + EClass OPEN_STACK_PROJECT = eINSTANCE.getOpenStackProject(); + + /** + * The meta object literal for the 'ID' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_PROJECT__ID = eINSTANCE.getOpenStackProject_ID(); + + /** + * The meta object literal for the 'Admin User' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_PROJECT__ADMIN_USER = eINSTANCE.getOpenStackProject_AdminUser(); + + /** + * The meta object literal for the 'Tenant Id' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_PROJECT__TENANT_ID = eINSTANCE.getOpenStackProject_TenantId(); + + /** + * The meta object literal for the 'Region' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_PROJECT__REGION = eINSTANCE.getOpenStackProject_Region(); + + /** + * The meta object literal for the 'Private Network' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_PROJECT__PRIVATE_NETWORK = eINSTANCE.getOpenStackProject_PrivateNetwork(); + + /** + * The meta object literal for the 'Public Network' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_PROJECT__PUBLIC_NETWORK = eINSTANCE.getOpenStackProject_PublicNetwork(); + + /** + * The meta object literal for the 'Api Key' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_PROJECT__API_KEY = eINSTANCE.getOpenStackProject_ApiKey(); + + /** + * The meta object literal for the 'Servers' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__SERVERS = eINSTANCE.getOpenStackProject_Servers(); + + /** + * The meta object literal for the 'Users' reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__USERS = eINSTANCE.getOpenStackProject_Users(); + + /** + * The meta object literal for the 'Controller User' reference feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__CONTROLLER_USER = eINSTANCE.getOpenStackProject_ControllerUser(); + + /** + * The meta object literal for the 'Volumes' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__VOLUMES = eINSTANCE.getOpenStackProject_Volumes(); + + /** + * The meta object literal for the 'Ips' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__IPS = eINSTANCE.getOpenStackProject_Ips(); + + /** + * The meta object literal for the 'Groups' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__GROUPS = eINSTANCE.getOpenStackProject_Groups(); + + /** + * The meta object literal for the 'Keypairs' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__KEYPAIRS = eINSTANCE.getOpenStackProject_Keypairs(); + + /** + * The meta object literal for the 'Networks' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__NETWORKS = eINSTANCE.getOpenStackProject_Networks(); + + /** + * The meta object literal for the 'Subnets' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__SUBNETS = eINSTANCE.getOpenStackProject_Subnets(); + + /** + * The meta object literal for the 'Routers' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__ROUTERS = eINSTANCE.getOpenStackProject_Routers(); + + /** + * The meta object literal for the 'Ports' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__PORTS = eINSTANCE.getOpenStackProject_Ports(); + + /** + * The meta object literal for the 'Security groups' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__SECURITY_GROUPS = eINSTANCE.getOpenStackProject_Security_groups(); + + /** + * The meta object literal for the 'Floatingips' containment reference list feature. + * + * + * @generated + */ + EReference OPEN_STACK_PROJECT__FLOATINGIPS = eINSTANCE.getOpenStackProject_Floatingips(); + + /** + * The meta object literal for the 'Update Nova State' operation. + * + * + * @generated + */ + EOperation OPEN_STACK_PROJECT___UPDATE_NOVA_STATE = eINSTANCE.getOpenStackProject__UpdateNovaState(); + + /** + * The meta object literal for the 'Create Network' operation. + * + * + * @generated + */ + EOperation OPEN_STACK_PROJECT___CREATE_NETWORK__CREATENETWORKREQUEST = eINSTANCE.getOpenStackProject__CreateNetwork__CreateNetworkRequest(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.location.impl.OpenStackUserImpl Open Stack User}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.OpenStackUserImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getOpenStackUser() + * @generated + */ + EClass OPEN_STACK_USER = eINSTANCE.getOpenStackUser(); + + /** + * The meta object literal for the 'Password' attribute feature. + * + * + * @generated + */ + EAttribute OPEN_STACK_USER__PASSWORD = eINSTANCE.getOpenStackUser_Password(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.location.impl.HypervisorServiceImpl Hypervisor Service}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.HypervisorServiceImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getHypervisorService() + * @generated + */ + EClass HYPERVISOR_SERVICE = eINSTANCE.getHypervisorService(); + + /** + * The meta object literal for the 'Host' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR_SERVICE__HOST = eINSTANCE.getHypervisorService_Host(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR_SERVICE__ID = eINSTANCE.getHypervisorService_Id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuTopologyImpl Hypervisor Cpu Topology}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.HypervisorCpuTopologyImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getHypervisorCpuTopology() + * @generated + */ + EClass HYPERVISOR_CPU_TOPOLOGY = eINSTANCE.getHypervisorCpuTopology(); + + /** + * The meta object literal for the 'Cores' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR_CPU_TOPOLOGY__CORES = eINSTANCE.getHypervisorCpuTopology_Cores(); + + /** + * The meta object literal for the 'Threads' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR_CPU_TOPOLOGY__THREADS = eINSTANCE.getHypervisorCpuTopology_Threads(); + + /** + * The meta object literal for the 'Sockets' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR_CPU_TOPOLOGY__SOCKETS = eINSTANCE.getHypervisorCpuTopology_Sockets(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuInfoImpl Hypervisor Cpu Info}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.HypervisorCpuInfoImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getHypervisorCpuInfo() + * @generated + */ + EClass HYPERVISOR_CPU_INFO = eINSTANCE.getHypervisorCpuInfo(); + + /** + * The meta object literal for the 'Vendor' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR_CPU_INFO__VENDOR = eINSTANCE.getHypervisorCpuInfo_Vendor(); + + /** + * The meta object literal for the 'Model' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR_CPU_INFO__MODEL = eINSTANCE.getHypervisorCpuInfo_Model(); + + /** + * The meta object literal for the 'Arch' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR_CPU_INFO__ARCH = eINSTANCE.getHypervisorCpuInfo_Arch(); + + /** + * The meta object literal for the 'Features' attribute list feature. + * + * + * @generated + */ + EAttribute HYPERVISOR_CPU_INFO__FEATURES = eINSTANCE.getHypervisorCpuInfo_Features(); + + /** + * The meta object literal for the 'Topology' containment reference feature. + * + * + * @generated + */ + EReference HYPERVISOR_CPU_INFO__TOPOLOGY = eINSTANCE.getHypervisorCpuInfo_Topology(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl Hypervisor}' class. + * + * + * @see org.openecomp.ncomp.openstack.location.impl.HypervisorImpl + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getHypervisor() + * @generated + */ + EClass HYPERVISOR = eINSTANCE.getHypervisor(); + + /** + * The meta object literal for the 'Service' containment reference feature. + * + * + * @generated + */ + EReference HYPERVISOR__SERVICE = eINSTANCE.getHypervisor_Service(); + + /** + * The meta object literal for the 'Host ip' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__HOST_IP = eINSTANCE.getHypervisor_Host_ip(); + + /** + * The meta object literal for the 'Vcpus used' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__VCPUS_USED = eINSTANCE.getHypervisor_Vcpus_used(); + + /** + * The meta object literal for the 'Hypervisor type' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__HYPERVISOR_TYPE = eINSTANCE.getHypervisor_Hypervisor_type(); + + /** + * The meta object literal for the 'Local gb used' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__LOCAL_GB_USED = eINSTANCE.getHypervisor_Local_gb_used(); + + /** + * The meta object literal for the 'Hypervisor hostname' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__HYPERVISOR_HOSTNAME = eINSTANCE.getHypervisor_Hypervisor_hostname(); + + /** + * The meta object literal for the 'Memory mb used' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__MEMORY_MB_USED = eINSTANCE.getHypervisor_Memory_mb_used(); + + /** + * The meta object literal for the 'Memory mb' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__MEMORY_MB = eINSTANCE.getHypervisor_Memory_mb(); + + /** + * The meta object literal for the 'Current workload' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__CURRENT_WORKLOAD = eINSTANCE.getHypervisor_Current_workload(); + + /** + * The meta object literal for the 'Vcpus' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__VCPUS = eINSTANCE.getHypervisor_Vcpus(); + + /** + * The meta object literal for the 'Cpu info' containment reference feature. + * + * + * @generated + */ + EReference HYPERVISOR__CPU_INFO = eINSTANCE.getHypervisor_Cpu_info(); + + /** + * The meta object literal for the 'Running vms' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__RUNNING_VMS = eINSTANCE.getHypervisor_Running_vms(); + + /** + * The meta object literal for the 'Free disk gb' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__FREE_DISK_GB = eINSTANCE.getHypervisor_Free_disk_gb(); + + /** + * The meta object literal for the 'Hypervisor version' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__HYPERVISOR_VERSION = eINSTANCE.getHypervisor_Hypervisor_version(); + + /** + * The meta object literal for the 'Disk available least' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__DISK_AVAILABLE_LEAST = eINSTANCE.getHypervisor_Disk_available_least(); + + /** + * The meta object literal for the 'Local gb' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__LOCAL_GB = eINSTANCE.getHypervisor_Local_gb(); + + /** + * The meta object literal for the 'Free ram mb' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__FREE_RAM_MB = eINSTANCE.getHypervisor_Free_ram_mb(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute HYPERVISOR__ID = eINSTANCE.getHypervisor_Id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.location.OpenStackVersion Open Stack Version}' enum. + * + * + * @see org.openecomp.ncomp.openstack.location.OpenStackVersion + * @see org.openecomp.ncomp.openstack.location.impl.LocationPackageImpl#getOpenStackVersion() + * @generated + */ + EEnum OPEN_STACK_VERSION = eINSTANCE.getOpenStackVersion(); + + } + +} //LocationPackage diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackLocation.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackLocation.java new file mode 100644 index 0000000..0d15f9e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackLocation.java @@ -0,0 +1,404 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerService; +import org.openecomp.ncomp.openstack.compute.ComputeService; +import org.openecomp.ncomp.openstack.compute.Flavor; +import org.openecomp.ncomp.openstack.compute.Image; + +import org.openecomp.ncomp.openstack.neutron.NeutronService; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Open Stack Location'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getVersion Version}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isRemoteLocation Remote Location}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getRemoteLocationName Remote Location Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isAllowCreateFlavor Allow Create Flavor}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getKeystoneUrl Keystone Url}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getBypassIp Bypass Ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getFlavorId Flavor Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsSecurityGroups Supports Security Groups}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsFloatingIps Supports Floating Ips}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getProjects Projects}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getUsers Users}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getImages Images}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getFlavors Flavors}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getHypervisors Hypervisors}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation() + * @model + * @generated + */ +public interface OpenStackLocation extends NamedEntity, NeutronService, ComputeService, CeilometerService { + /** + * Returns the value of the 'Version' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.openstack.location.OpenStackVersion}. + * + *

+ * If the meaning of the 'Version' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Version' attribute. + * @see org.openecomp.ncomp.openstack.location.OpenStackVersion + * @see #setVersion(OpenStackVersion) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Version() + * @model unique="false" + * @generated + */ + OpenStackVersion getVersion(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see org.openecomp.ncomp.openstack.location.OpenStackVersion + * @see #getVersion() + * @generated + */ + void setVersion(OpenStackVersion value); + + /** + * Returns the value of the 'Remote Location' attribute. + * The default value is "false". + * + *

+ * If the meaning of the 'Remote Location' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Remote Location' attribute. + * @see #setRemoteLocation(boolean) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_RemoteLocation() + * @model default="false" unique="false" + * @generated + */ + boolean isRemoteLocation(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isRemoteLocation Remote Location}' attribute. + * + * + * @param value the new value of the 'Remote Location' attribute. + * @see #isRemoteLocation() + * @generated + */ + void setRemoteLocation(boolean value); + + /** + * Returns the value of the 'Remote Location Name' attribute. + * + *

+ * If the meaning of the 'Remote Location Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Remote Location Name' attribute. + * @see #setRemoteLocationName(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_RemoteLocationName() + * @model unique="false" + * @generated + */ + String getRemoteLocationName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getRemoteLocationName Remote Location Name}' attribute. + * + * + * @param value the new value of the 'Remote Location Name' attribute. + * @see #getRemoteLocationName() + * @generated + */ + void setRemoteLocationName(String value); + + /** + * Returns the value of the 'Allow Create Flavor' attribute. + * + *

+ * If the meaning of the 'Allow Create Flavor' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Allow Create Flavor' attribute. + * @see #setAllowCreateFlavor(boolean) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_AllowCreateFlavor() + * @model unique="false" + * @generated + */ + boolean isAllowCreateFlavor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isAllowCreateFlavor Allow Create Flavor}' attribute. + * + * + * @param value the new value of the 'Allow Create Flavor' attribute. + * @see #isAllowCreateFlavor() + * @generated + */ + void setAllowCreateFlavor(boolean value); + + /** + * Returns the value of the 'Keystone Url' attribute. + * + *

+ * If the meaning of the 'Keystone Url' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Keystone Url' attribute. + * @see #setKeystoneUrl(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_KeystoneUrl() + * @model unique="false" + * @generated + */ + String getKeystoneUrl(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getKeystoneUrl Keystone Url}' attribute. + * + * + * @param value the new value of the 'Keystone Url' attribute. + * @see #getKeystoneUrl() + * @generated + */ + void setKeystoneUrl(String value); + + /** + * Returns the value of the 'Bypass Ip' attribute. + * + *

+ * If the meaning of the 'Bypass Ip' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Bypass Ip' attribute. + * @see #setBypassIp(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_BypassIp() + * @model unique="false" + * @generated + */ + String getBypassIp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getBypassIp Bypass Ip}' attribute. + * + * + * @param value the new value of the 'Bypass Ip' attribute. + * @see #getBypassIp() + * @generated + */ + void setBypassIp(String value); + + /** + * Returns the value of the 'Flavor Id' attribute. + * The default value is "20000". + * + *

+ * If the meaning of the 'Flavor Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Flavor Id' attribute. + * @see #setFlavorId(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_FlavorId() + * @model default="20000" unique="false" + * @generated + */ + int getFlavorId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getFlavorId Flavor Id}' attribute. + * + * + * @param value the new value of the 'Flavor Id' attribute. + * @see #getFlavorId() + * @generated + */ + void setFlavorId(int value); + + /** + * Returns the value of the 'Supports Security Groups' attribute. + * The default value is "true". + * + *

+ * If the meaning of the 'Supports Security Groups' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Supports Security Groups' attribute. + * @see #setSupportsSecurityGroups(boolean) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_SupportsSecurityGroups() + * @model default="true" unique="false" + * @generated + */ + boolean isSupportsSecurityGroups(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsSecurityGroups Supports Security Groups}' attribute. + * + * + * @param value the new value of the 'Supports Security Groups' attribute. + * @see #isSupportsSecurityGroups() + * @generated + */ + void setSupportsSecurityGroups(boolean value); + + /** + * Returns the value of the 'Supports Floating Ips' attribute. + * The default value is "true". + * + *

+ * If the meaning of the 'Supports Floating Ips' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Supports Floating Ips' attribute. + * @see #setSupportsFloatingIps(boolean) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_SupportsFloatingIps() + * @model default="true" unique="false" + * @generated + */ + boolean isSupportsFloatingIps(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsFloatingIps Supports Floating Ips}' attribute. + * + * + * @param value the new value of the 'Supports Floating Ips' attribute. + * @see #isSupportsFloatingIps() + * @generated + */ + void setSupportsFloatingIps(boolean value); + + /** + * Returns the value of the 'Projects' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.location.OpenStackProject}. + * + *

+ * If the meaning of the 'Projects' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Projects' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Projects() + * @model containment="true" ordered="false" + * @generated + */ + EList getProjects(); + + /** + * Returns the value of the 'Users' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.location.OpenStackUser}. + * + *

+ * If the meaning of the 'Users' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Users' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Users() + * @model containment="true" ordered="false" + * @generated + */ + EList getUsers(); + + /** + * Returns the value of the 'Images' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Image}. + * + *

+ * If the meaning of the 'Images' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Images' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Images() + * @model containment="true" ordered="false" + * @generated + */ + EList getImages(); + + /** + * Returns the value of the 'Flavors' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Flavor}. + * + *

+ * If the meaning of the 'Flavors' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Flavors' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Flavors() + * @model containment="true" ordered="false" + * @generated + */ + EList getFlavors(); + + /** + * Returns the value of the 'Hypervisors' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.location.Hypervisor}. + * + *

+ * If the meaning of the 'Hypervisors' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Hypervisors' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Hypervisors() + * @model containment="true" ordered="false" + * @generated + */ + EList getHypervisors(); + + /** + * + * + * @model + * @generated + */ + void poll(); + + /** + * + * + * @model locUnique="false" + * @generated + */ + void mergeLocation(OpenStackLocation loc); + +} // OpenStackLocation diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackProject.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackProject.java new file mode 100644 index 0000000..7cb85a2 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackProject.java @@ -0,0 +1,497 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerProject; +import org.openecomp.ncomp.openstack.compute.FloatingIp; +import org.openecomp.ncomp.openstack.compute.KeyPair; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.Server; +import org.openecomp.ncomp.openstack.compute.Volume; + +import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest; +import org.openecomp.ncomp.openstack.neutron.Network; +import org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup; +import org.openecomp.ncomp.openstack.neutron.Port; +import org.openecomp.ncomp.openstack.neutron.Router; +import org.openecomp.ncomp.openstack.neutron.Subnet; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Open Stack Project'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getID ID}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getAdminUser Admin User}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getTenantId Tenant Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getRegion Region}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPrivateNetwork Private Network}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPublicNetwork Public Network}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getApiKey Api Key}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getServers Servers}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getUsers Users}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getControllerUser Controller User}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getVolumes Volumes}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getIps Ips}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getGroups Groups}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getKeypairs Keypairs}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getNetworks Networks}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getSubnets Subnets}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getRouters Routers}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPorts Ports}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getSecurity_groups Security groups}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackProject#getFloatingips Floatingips}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject() + * @model + * @generated + */ +public interface OpenStackProject extends NamedEntity, CeilometerProject { + /** + * Returns the value of the 'ID' attribute. + * + *

+ * If the meaning of the 'ID' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'ID' attribute. + * @see #setID(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_ID() + * @model unique="false" + * @generated + */ + String getID(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getID ID}' attribute. + * + * + * @param value the new value of the 'ID' attribute. + * @see #getID() + * @generated + */ + void setID(String value); + + /** + * Returns the value of the 'Admin User' attribute. + * + *

+ * If the meaning of the 'Admin User' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin User' attribute. + * @see #setAdminUser(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_AdminUser() + * @model unique="false" + * @generated + */ + String getAdminUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getAdminUser Admin User}' attribute. + * + * + * @param value the new value of the 'Admin User' attribute. + * @see #getAdminUser() + * @generated + */ + void setAdminUser(String value); + + /** + * Returns the value of the 'Tenant Id' attribute. + * + *

+ * If the meaning of the 'Tenant Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant Id' attribute. + * @see #setTenantId(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_TenantId() + * @model unique="false" + * @generated + */ + String getTenantId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getTenantId Tenant Id}' attribute. + * + * + * @param value the new value of the 'Tenant Id' attribute. + * @see #getTenantId() + * @generated + */ + void setTenantId(String value); + + /** + * Returns the value of the 'Region' attribute. + * + *

+ * If the meaning of the 'Region' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Region' attribute. + * @see #setRegion(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Region() + * @model unique="false" + * @generated + */ + String getRegion(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getRegion Region}' attribute. + * + * + * @param value the new value of the 'Region' attribute. + * @see #getRegion() + * @generated + */ + void setRegion(String value); + + /** + * Returns the value of the 'Private Network' attribute. + * + *

+ * If the meaning of the 'Private Network' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Private Network' attribute. + * @see #setPrivateNetwork(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_PrivateNetwork() + * @model unique="false" + * @generated + */ + String getPrivateNetwork(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPrivateNetwork Private Network}' attribute. + * + * + * @param value the new value of the 'Private Network' attribute. + * @see #getPrivateNetwork() + * @generated + */ + void setPrivateNetwork(String value); + + /** + * Returns the value of the 'Public Network' attribute. + * + *

+ * If the meaning of the 'Public Network' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Public Network' attribute. + * @see #setPublicNetwork(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_PublicNetwork() + * @model unique="false" + * @generated + */ + String getPublicNetwork(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPublicNetwork Public Network}' attribute. + * + * + * @param value the new value of the 'Public Network' attribute. + * @see #getPublicNetwork() + * @generated + */ + void setPublicNetwork(String value); + + /** + * Returns the value of the 'Api Key' attribute. + * + *

+ * If the meaning of the 'Api Key' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Api Key' attribute. + * @see #setApiKey(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_ApiKey() + * @model unique="false" + * @generated + */ + String getApiKey(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getApiKey Api Key}' attribute. + * + * + * @param value the new value of the 'Api Key' attribute. + * @see #getApiKey() + * @generated + */ + void setApiKey(String value); + + /** + * Returns the value of the 'Servers' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Server}. + * + *

+ * If the meaning of the 'Servers' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Servers' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Servers() + * @model containment="true" ordered="false" + * @generated + */ + EList getServers(); + + /** + * Returns the value of the 'Users' reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.location.OpenStackUser}. + * + *

+ * If the meaning of the 'Users' reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Users' reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Users() + * @model ordered="false" + * @generated + */ + EList getUsers(); + + /** + * Returns the value of the 'Controller User' reference. + * + *

+ * If the meaning of the 'Controller User' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Controller User' reference. + * @see #setControllerUser(OpenStackUser) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_ControllerUser() + * @model + * @generated + */ + OpenStackUser getControllerUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getControllerUser Controller User}' reference. + * + * + * @param value the new value of the 'Controller User' reference. + * @see #getControllerUser() + * @generated + */ + void setControllerUser(OpenStackUser value); + + /** + * Returns the value of the 'Volumes' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Volume}. + * + *

+ * If the meaning of the 'Volumes' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Volumes' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Volumes() + * @model containment="true" ordered="false" + * @generated + */ + EList getVolumes(); + + /** + * Returns the value of the 'Ips' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.FloatingIp}. + * + *

+ * If the meaning of the 'Ips' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ips' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Ips() + * @model containment="true" ordered="false" + * @generated + */ + EList getIps(); + + /** + * Returns the value of the 'Groups' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.SecurityGroup}. + * + *

+ * If the meaning of the 'Groups' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Groups' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Groups() + * @model containment="true" ordered="false" + * @generated + */ + EList getGroups(); + + /** + * Returns the value of the 'Keypairs' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.KeyPair}. + * + *

+ * If the meaning of the 'Keypairs' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Keypairs' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Keypairs() + * @model containment="true" ordered="false" + * @generated + */ + EList getKeypairs(); + + /** + * Returns the value of the 'Networks' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.Network}. + * + *

+ * If the meaning of the 'Networks' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Networks' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Networks() + * @model containment="true" ordered="false" + * @generated + */ + EList getNetworks(); + + /** + * Returns the value of the 'Subnets' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.Subnet}. + * + *

+ * If the meaning of the 'Subnets' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Subnets' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Subnets() + * @model containment="true" ordered="false" + * @generated + */ + EList getSubnets(); + + /** + * Returns the value of the 'Routers' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.Router}. + * + *

+ * If the meaning of the 'Routers' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Routers' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Routers() + * @model containment="true" ordered="false" + * @generated + */ + EList getRouters(); + + /** + * Returns the value of the 'Ports' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.Port}. + * + *

+ * If the meaning of the 'Ports' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ports' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Ports() + * @model containment="true" ordered="false" + * @generated + */ + EList getPorts(); + + /** + * Returns the value of the 'Security groups' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup}. + * + *

+ * If the meaning of the 'Security groups' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Security groups' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Security_groups() + * @model containment="true" ordered="false" + * @generated + */ + EList getSecurity_groups(); + + /** + * Returns the value of the 'Floatingips' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp}. + * + *

+ * If the meaning of the 'Floatingips' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Floatingips' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Floatingips() + * @model containment="true" ordered="false" + * @generated + */ + EList getFloatingips(); + + /** + * + * + * @model + * @generated + */ + void updateNovaState(); + + /** + * + * + * @model unique="false" rUnique="false" + * @generated + */ + Network createNetwork(CreateNetworkRequest r); + +} // OpenStackProject diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackUser.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackUser.java new file mode 100644 index 0000000..dd69e1c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackUser.java @@ -0,0 +1,72 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Open Stack User'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.OpenStackUser#getPassword Password}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackUser() + * @model + * @generated + */ +public interface OpenStackUser extends NamedEntity { + /** + * Returns the value of the 'Password' attribute. + * + *

+ * If the meaning of the 'Password' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Password' attribute. + * @see #setPassword(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackUser_Password() + * @model unique="false" transient="true" + * annotation="http://openecomp.org/sirius/persistence propertyFile='bsa.properties'" + * @generated + */ + String getPassword(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackUser#getPassword Password}' attribute. + * + * + * @param value the new value of the 'Password' attribute. + * @see #getPassword() + * @generated + */ + void setPassword(String value); + +} // OpenStackUser diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackVersion.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackVersion.java new file mode 100644 index 0000000..2a4184b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackVersion.java @@ -0,0 +1,370 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Open Stack Version', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackVersion() + * @model + * @generated + */ +public enum OpenStackVersion implements Enumerator { + /** + * The 'Folsom' literal object. + * + * + * @see #FOLSOM_VALUE + * @generated + * @ordered + */ + FOLSOM(0, "Folsom", "Folsom"), /** + * The 'Grizzly' literal object. + * + * + * @see #GRIZZLY_VALUE + * @generated + * @ordered + */ + GRIZZLY(0, "Grizzly", "Grizzly"), /** + * The 'Havana' literal object. + * + * + * @see #HAVANA_VALUE + * @generated + * @ordered + */ + HAVANA(0, "Havana", "Havana"), /** + * The 'Icehouse' literal object. + * + * + * @see #ICEHOUSE_VALUE + * @generated + * @ordered + */ + ICEHOUSE(0, "Icehouse", "Icehouse"), /** + * The 'Juno' literal object. + * + * + * @see #JUNO_VALUE + * @generated + * @ordered + */ + JUNO(0, "Juno", "Juno"), /** + * The 'Kilo' literal object. + * + * + * @see #KILO_VALUE + * @generated + * @ordered + */ + KILO(0, "Kilo", "Kilo"), /** + * The 'Liberty' literal object. + * + * + * @see #LIBERTY_VALUE + * @generated + * @ordered + */ + LIBERTY(0, "Liberty", "Liberty"), /** + * The 'Mitaka' literal object. + * + * + * @see #MITAKA_VALUE + * @generated + * @ordered + */ + MITAKA(0, "Mitaka", "Mitaka"); + + /** + * The 'Folsom' literal value. + * + *

+ * If the meaning of 'Folsom' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #FOLSOM + * @model name="Folsom" + * @generated + * @ordered + */ + public static final int FOLSOM_VALUE = 0; + + /** + * The 'Grizzly' literal value. + * + *

+ * If the meaning of 'Grizzly' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #GRIZZLY + * @model name="Grizzly" + * @generated + * @ordered + */ + public static final int GRIZZLY_VALUE = 0; + + /** + * The 'Havana' literal value. + * + *

+ * If the meaning of 'Havana' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #HAVANA + * @model name="Havana" + * @generated + * @ordered + */ + public static final int HAVANA_VALUE = 0; + + /** + * The 'Icehouse' literal value. + * + *

+ * If the meaning of 'Icehouse' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #ICEHOUSE + * @model name="Icehouse" + * @generated + * @ordered + */ + public static final int ICEHOUSE_VALUE = 0; + + /** + * The 'Juno' literal value. + * + *

+ * If the meaning of 'Juno' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #JUNO + * @model name="Juno" + * @generated + * @ordered + */ + public static final int JUNO_VALUE = 0; + + /** + * The 'Kilo' literal value. + * + *

+ * If the meaning of 'Kilo' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #KILO + * @model name="Kilo" + * @generated + * @ordered + */ + public static final int KILO_VALUE = 0; + + /** + * The 'Liberty' literal value. + * + *

+ * If the meaning of 'Liberty' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #LIBERTY + * @model name="Liberty" + * @generated + * @ordered + */ + public static final int LIBERTY_VALUE = 0; + + /** + * The 'Mitaka' literal value. + * + *

+ * If the meaning of 'Mitaka' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #MITAKA + * @model name="Mitaka" + * @generated + * @ordered + */ + public static final int MITAKA_VALUE = 0; + + /** + * An array of all the 'Open Stack Version' enumerators. + * + * + * @generated + */ + private static final OpenStackVersion[] VALUES_ARRAY = + new OpenStackVersion[] { + FOLSOM, + GRIZZLY, + HAVANA, + ICEHOUSE, + JUNO, + KILO, + LIBERTY, + MITAKA, + }; + + /** + * A public read-only list of all the 'Open Stack Version' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Open Stack Version' literal with the specified literal value. + * + * + * @generated + */ + public static OpenStackVersion get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + OpenStackVersion result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Open Stack Version' literal with the specified name. + * + * + * @generated + */ + public static OpenStackVersion getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + OpenStackVersion result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Open Stack Version' literal with the specified integer value. + * + * + * @generated + */ + public static OpenStackVersion get(int value) { + switch (value) { + case FOLSOM_VALUE: return FOLSOM; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private OpenStackVersion(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //OpenStackVersion diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorCpuInfoImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorCpuInfoImpl.java new file mode 100644 index 0000000..fa02fa2 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorCpuInfoImpl.java @@ -0,0 +1,416 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.openstack.location.HypervisorCpuInfo; +import org.openecomp.ncomp.openstack.location.HypervisorCpuTopology; +import org.openecomp.ncomp.openstack.location.LocationPackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Hypervisor Cpu Info'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuInfoImpl#getVendor Vendor}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuInfoImpl#getModel Model}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuInfoImpl#getArch Arch}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuInfoImpl#getFeatures Features}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuInfoImpl#getTopology Topology}
  • + *
+ *

+ * + * @generated + */ +public class HypervisorCpuInfoImpl extends MinimalEObjectImpl.Container implements HypervisorCpuInfo { + /** + * The default value of the '{@link #getVendor() Vendor}' attribute. + * + * + * @see #getVendor() + * @generated + * @ordered + */ + protected static final String VENDOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVendor() Vendor}' attribute. + * + * + * @see #getVendor() + * @generated + * @ordered + */ + protected String vendor = VENDOR_EDEFAULT; + + /** + * The default value of the '{@link #getModel() Model}' attribute. + * + * + * @see #getModel() + * @generated + * @ordered + */ + protected static final String MODEL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getModel() Model}' attribute. + * + * + * @see #getModel() + * @generated + * @ordered + */ + protected String model = MODEL_EDEFAULT; + + /** + * The default value of the '{@link #getArch() Arch}' attribute. + * + * + * @see #getArch() + * @generated + * @ordered + */ + protected static final String ARCH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getArch() Arch}' attribute. + * + * + * @see #getArch() + * @generated + * @ordered + */ + protected String arch = ARCH_EDEFAULT; + + /** + * The cached value of the '{@link #getFeatures() Features}' attribute list. + * + * + * @see #getFeatures() + * @generated + * @ordered + */ + protected EList features; + + /** + * The cached value of the '{@link #getTopology() Topology}' containment reference. + * + * + * @see #getTopology() + * @generated + * @ordered + */ + protected HypervisorCpuTopology topology; + + /** + * + * + * @generated + */ + protected HypervisorCpuInfoImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return LocationPackage.Literals.HYPERVISOR_CPU_INFO; + } + + /** + * + * + * @generated + */ + public String getVendor() { + return vendor; + } + + /** + * + * + * @generated + */ + public void setVendor(String newVendor) { + String oldVendor = vendor; + vendor = newVendor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_CPU_INFO__VENDOR, oldVendor, vendor)); + } + + /** + * + * + * @generated + */ + public String getModel() { + return model; + } + + /** + * + * + * @generated + */ + public void setModel(String newModel) { + String oldModel = model; + model = newModel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_CPU_INFO__MODEL, oldModel, model)); + } + + /** + * + * + * @generated + */ + public String getArch() { + return arch; + } + + /** + * + * + * @generated + */ + public void setArch(String newArch) { + String oldArch = arch; + arch = newArch; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_CPU_INFO__ARCH, oldArch, arch)); + } + + /** + * + * + * @generated + */ + public EList getFeatures() { + if (features == null) { + features = new EDataTypeEList(String.class, this, LocationPackage.HYPERVISOR_CPU_INFO__FEATURES); + } + return features; + } + + /** + * + * + * @generated + */ + public HypervisorCpuTopology getTopology() { + return topology; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetTopology(HypervisorCpuTopology newTopology, NotificationChain msgs) { + HypervisorCpuTopology oldTopology = topology; + topology = newTopology; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_CPU_INFO__TOPOLOGY, oldTopology, newTopology); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setTopology(HypervisorCpuTopology newTopology) { + if (newTopology != topology) { + NotificationChain msgs = null; + if (topology != null) + msgs = ((InternalEObject)topology).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LocationPackage.HYPERVISOR_CPU_INFO__TOPOLOGY, null, msgs); + if (newTopology != null) + msgs = ((InternalEObject)newTopology).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LocationPackage.HYPERVISOR_CPU_INFO__TOPOLOGY, null, msgs); + msgs = basicSetTopology(newTopology, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_CPU_INFO__TOPOLOGY, newTopology, newTopology)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case LocationPackage.HYPERVISOR_CPU_INFO__TOPOLOGY: + return basicSetTopology(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case LocationPackage.HYPERVISOR_CPU_INFO__VENDOR: + return getVendor(); + case LocationPackage.HYPERVISOR_CPU_INFO__MODEL: + return getModel(); + case LocationPackage.HYPERVISOR_CPU_INFO__ARCH: + return getArch(); + case LocationPackage.HYPERVISOR_CPU_INFO__FEATURES: + return getFeatures(); + case LocationPackage.HYPERVISOR_CPU_INFO__TOPOLOGY: + return getTopology(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case LocationPackage.HYPERVISOR_CPU_INFO__VENDOR: + setVendor((String)newValue); + return; + case LocationPackage.HYPERVISOR_CPU_INFO__MODEL: + setModel((String)newValue); + return; + case LocationPackage.HYPERVISOR_CPU_INFO__ARCH: + setArch((String)newValue); + return; + case LocationPackage.HYPERVISOR_CPU_INFO__FEATURES: + getFeatures().clear(); + getFeatures().addAll((Collection)newValue); + return; + case LocationPackage.HYPERVISOR_CPU_INFO__TOPOLOGY: + setTopology((HypervisorCpuTopology)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case LocationPackage.HYPERVISOR_CPU_INFO__VENDOR: + setVendor(VENDOR_EDEFAULT); + return; + case LocationPackage.HYPERVISOR_CPU_INFO__MODEL: + setModel(MODEL_EDEFAULT); + return; + case LocationPackage.HYPERVISOR_CPU_INFO__ARCH: + setArch(ARCH_EDEFAULT); + return; + case LocationPackage.HYPERVISOR_CPU_INFO__FEATURES: + getFeatures().clear(); + return; + case LocationPackage.HYPERVISOR_CPU_INFO__TOPOLOGY: + setTopology((HypervisorCpuTopology)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case LocationPackage.HYPERVISOR_CPU_INFO__VENDOR: + return VENDOR_EDEFAULT == null ? vendor != null : !VENDOR_EDEFAULT.equals(vendor); + case LocationPackage.HYPERVISOR_CPU_INFO__MODEL: + return MODEL_EDEFAULT == null ? model != null : !MODEL_EDEFAULT.equals(model); + case LocationPackage.HYPERVISOR_CPU_INFO__ARCH: + return ARCH_EDEFAULT == null ? arch != null : !ARCH_EDEFAULT.equals(arch); + case LocationPackage.HYPERVISOR_CPU_INFO__FEATURES: + return features != null && !features.isEmpty(); + case LocationPackage.HYPERVISOR_CPU_INFO__TOPOLOGY: + return topology != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (vendor: "); + result.append(vendor); + result.append(", model: "); + result.append(model); + result.append(", arch: "); + result.append(arch); + result.append(", features: "); + result.append(features); + result.append(')'); + return result.toString(); + } + +} //HypervisorCpuInfoImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorCpuTopologyImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorCpuTopologyImpl.java new file mode 100644 index 0000000..f174236 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorCpuTopologyImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.openstack.location.HypervisorCpuTopology; +import org.openecomp.ncomp.openstack.location.LocationPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Hypervisor Cpu Topology'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuTopologyImpl#getCores Cores}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuTopologyImpl#getThreads Threads}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorCpuTopologyImpl#getSockets Sockets}
  • + *
+ *

+ * + * @generated + */ +public class HypervisorCpuTopologyImpl extends MinimalEObjectImpl.Container implements HypervisorCpuTopology { + /** + * The default value of the '{@link #getCores() Cores}' attribute. + * + * + * @see #getCores() + * @generated + * @ordered + */ + protected static final int CORES_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getCores() Cores}' attribute. + * + * + * @see #getCores() + * @generated + * @ordered + */ + protected int cores = CORES_EDEFAULT; + + /** + * The default value of the '{@link #getThreads() Threads}' attribute. + * + * + * @see #getThreads() + * @generated + * @ordered + */ + protected static final int THREADS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getThreads() Threads}' attribute. + * + * + * @see #getThreads() + * @generated + * @ordered + */ + protected int threads = THREADS_EDEFAULT; + + /** + * The default value of the '{@link #getSockets() Sockets}' attribute. + * + * + * @see #getSockets() + * @generated + * @ordered + */ + protected static final int SOCKETS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getSockets() Sockets}' attribute. + * + * + * @see #getSockets() + * @generated + * @ordered + */ + protected int sockets = SOCKETS_EDEFAULT; + + /** + * + * + * @generated + */ + protected HypervisorCpuTopologyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return LocationPackage.Literals.HYPERVISOR_CPU_TOPOLOGY; + } + + /** + * + * + * @generated + */ + public int getCores() { + return cores; + } + + /** + * + * + * @generated + */ + public void setCores(int newCores) { + int oldCores = cores; + cores = newCores; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_CPU_TOPOLOGY__CORES, oldCores, cores)); + } + + /** + * + * + * @generated + */ + public int getThreads() { + return threads; + } + + /** + * + * + * @generated + */ + public void setThreads(int newThreads) { + int oldThreads = threads; + threads = newThreads; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_CPU_TOPOLOGY__THREADS, oldThreads, threads)); + } + + /** + * + * + * @generated + */ + public int getSockets() { + return sockets; + } + + /** + * + * + * @generated + */ + public void setSockets(int newSockets) { + int oldSockets = sockets; + sockets = newSockets; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_CPU_TOPOLOGY__SOCKETS, oldSockets, sockets)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__CORES: + return getCores(); + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__THREADS: + return getThreads(); + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__SOCKETS: + return getSockets(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__CORES: + setCores((Integer)newValue); + return; + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__THREADS: + setThreads((Integer)newValue); + return; + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__SOCKETS: + setSockets((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__CORES: + setCores(CORES_EDEFAULT); + return; + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__THREADS: + setThreads(THREADS_EDEFAULT); + return; + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__SOCKETS: + setSockets(SOCKETS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__CORES: + return cores != CORES_EDEFAULT; + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__THREADS: + return threads != THREADS_EDEFAULT; + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY__SOCKETS: + return sockets != SOCKETS_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (cores: "); + result.append(cores); + result.append(", threads: "); + result.append(threads); + result.append(", sockets: "); + result.append(sockets); + result.append(')'); + return result.toString(); + } + +} //HypervisorCpuTopologyImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorImpl.java new file mode 100644 index 0000000..f857f00 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorImpl.java @@ -0,0 +1,1143 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.openstack.location.Hypervisor; +import org.openecomp.ncomp.openstack.location.HypervisorCpuInfo; +import org.openecomp.ncomp.openstack.location.HypervisorService; +import org.openecomp.ncomp.openstack.location.LocationPackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Hypervisor'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getService Service}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getHost_ip Host ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getVcpus_used Vcpus used}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getHypervisor_type Hypervisor type}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getLocal_gb_used Local gb used}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getHypervisor_hostname Hypervisor hostname}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getMemory_mb_used Memory mb used}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getMemory_mb Memory mb}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getCurrent_workload Current workload}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getVcpus Vcpus}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getCpu_info Cpu info}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getRunning_vms Running vms}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getFree_disk_gb Free disk gb}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getHypervisor_version Hypervisor version}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getDisk_available_least Disk available least}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getLocal_gb Local gb}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getFree_ram_mb Free ram mb}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorImpl#getId Id}
  • + *
+ *

+ * + * @generated + */ +public class HypervisorImpl extends NamedEntityImpl implements Hypervisor { + /** + * The cached value of the '{@link #getService() Service}' containment reference. + * + * + * @see #getService() + * @generated + * @ordered + */ + protected HypervisorService service; + + /** + * The default value of the '{@link #getHost_ip() Host ip}' attribute. + * + * + * @see #getHost_ip() + * @generated + * @ordered + */ + protected static final String HOST_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHost_ip() Host ip}' attribute. + * + * + * @see #getHost_ip() + * @generated + * @ordered + */ + protected String host_ip = HOST_IP_EDEFAULT; + + /** + * The default value of the '{@link #getVcpus_used() Vcpus used}' attribute. + * + * + * @see #getVcpus_used() + * @generated + * @ordered + */ + protected static final int VCPUS_USED_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVcpus_used() Vcpus used}' attribute. + * + * + * @see #getVcpus_used() + * @generated + * @ordered + */ + protected int vcpus_used = VCPUS_USED_EDEFAULT; + + /** + * The default value of the '{@link #getHypervisor_type() Hypervisor type}' attribute. + * + * + * @see #getHypervisor_type() + * @generated + * @ordered + */ + protected static final String HYPERVISOR_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHypervisor_type() Hypervisor type}' attribute. + * + * + * @see #getHypervisor_type() + * @generated + * @ordered + */ + protected String hypervisor_type = HYPERVISOR_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getLocal_gb_used() Local gb used}' attribute. + * + * + * @see #getLocal_gb_used() + * @generated + * @ordered + */ + protected static final int LOCAL_GB_USED_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getLocal_gb_used() Local gb used}' attribute. + * + * + * @see #getLocal_gb_used() + * @generated + * @ordered + */ + protected int local_gb_used = LOCAL_GB_USED_EDEFAULT; + + /** + * The default value of the '{@link #getHypervisor_hostname() Hypervisor hostname}' attribute. + * + * + * @see #getHypervisor_hostname() + * @generated + * @ordered + */ + protected static final String HYPERVISOR_HOSTNAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHypervisor_hostname() Hypervisor hostname}' attribute. + * + * + * @see #getHypervisor_hostname() + * @generated + * @ordered + */ + protected String hypervisor_hostname = HYPERVISOR_HOSTNAME_EDEFAULT; + + /** + * The default value of the '{@link #getMemory_mb_used() Memory mb used}' attribute. + * + * + * @see #getMemory_mb_used() + * @generated + * @ordered + */ + protected static final int MEMORY_MB_USED_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMemory_mb_used() Memory mb used}' attribute. + * + * + * @see #getMemory_mb_used() + * @generated + * @ordered + */ + protected int memory_mb_used = MEMORY_MB_USED_EDEFAULT; + + /** + * The default value of the '{@link #getMemory_mb() Memory mb}' attribute. + * + * + * @see #getMemory_mb() + * @generated + * @ordered + */ + protected static final int MEMORY_MB_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMemory_mb() Memory mb}' attribute. + * + * + * @see #getMemory_mb() + * @generated + * @ordered + */ + protected int memory_mb = MEMORY_MB_EDEFAULT; + + /** + * The default value of the '{@link #getCurrent_workload() Current workload}' attribute. + * + * + * @see #getCurrent_workload() + * @generated + * @ordered + */ + protected static final int CURRENT_WORKLOAD_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getCurrent_workload() Current workload}' attribute. + * + * + * @see #getCurrent_workload() + * @generated + * @ordered + */ + protected int current_workload = CURRENT_WORKLOAD_EDEFAULT; + + /** + * The default value of the '{@link #getVcpus() Vcpus}' attribute. + * + * + * @see #getVcpus() + * @generated + * @ordered + */ + protected static final int VCPUS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVcpus() Vcpus}' attribute. + * + * + * @see #getVcpus() + * @generated + * @ordered + */ + protected int vcpus = VCPUS_EDEFAULT; + + /** + * The cached value of the '{@link #getCpu_info() Cpu info}' containment reference. + * + * + * @see #getCpu_info() + * @generated + * @ordered + */ + protected HypervisorCpuInfo cpu_info; + + /** + * The default value of the '{@link #getRunning_vms() Running vms}' attribute. + * + * + * @see #getRunning_vms() + * @generated + * @ordered + */ + protected static final int RUNNING_VMS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRunning_vms() Running vms}' attribute. + * + * + * @see #getRunning_vms() + * @generated + * @ordered + */ + protected int running_vms = RUNNING_VMS_EDEFAULT; + + /** + * The default value of the '{@link #getFree_disk_gb() Free disk gb}' attribute. + * + * + * @see #getFree_disk_gb() + * @generated + * @ordered + */ + protected static final int FREE_DISK_GB_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getFree_disk_gb() Free disk gb}' attribute. + * + * + * @see #getFree_disk_gb() + * @generated + * @ordered + */ + protected int free_disk_gb = FREE_DISK_GB_EDEFAULT; + + /** + * The default value of the '{@link #getHypervisor_version() Hypervisor version}' attribute. + * + * + * @see #getHypervisor_version() + * @generated + * @ordered + */ + protected static final int HYPERVISOR_VERSION_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getHypervisor_version() Hypervisor version}' attribute. + * + * + * @see #getHypervisor_version() + * @generated + * @ordered + */ + protected int hypervisor_version = HYPERVISOR_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getDisk_available_least() Disk available least}' attribute. + * + * + * @see #getDisk_available_least() + * @generated + * @ordered + */ + protected static final int DISK_AVAILABLE_LEAST_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getDisk_available_least() Disk available least}' attribute. + * + * + * @see #getDisk_available_least() + * @generated + * @ordered + */ + protected int disk_available_least = DISK_AVAILABLE_LEAST_EDEFAULT; + + /** + * The default value of the '{@link #getLocal_gb() Local gb}' attribute. + * + * + * @see #getLocal_gb() + * @generated + * @ordered + */ + protected static final int LOCAL_GB_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getLocal_gb() Local gb}' attribute. + * + * + * @see #getLocal_gb() + * @generated + * @ordered + */ + protected int local_gb = LOCAL_GB_EDEFAULT; + + /** + * The default value of the '{@link #getFree_ram_mb() Free ram mb}' attribute. + * + * + * @see #getFree_ram_mb() + * @generated + * @ordered + */ + protected static final int FREE_RAM_MB_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getFree_ram_mb() Free ram mb}' attribute. + * + * + * @see #getFree_ram_mb() + * @generated + * @ordered + */ + protected int free_ram_mb = FREE_RAM_MB_EDEFAULT; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final int ID_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected int id = ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected HypervisorImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return LocationPackage.Literals.HYPERVISOR; + } + + /** + * + * + * @generated + */ + public HypervisorService getService() { + return service; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetService(HypervisorService newService, NotificationChain msgs) { + HypervisorService oldService = service; + service = newService; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__SERVICE, oldService, newService); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setService(HypervisorService newService) { + if (newService != service) { + NotificationChain msgs = null; + if (service != null) + msgs = ((InternalEObject)service).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LocationPackage.HYPERVISOR__SERVICE, null, msgs); + if (newService != null) + msgs = ((InternalEObject)newService).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LocationPackage.HYPERVISOR__SERVICE, null, msgs); + msgs = basicSetService(newService, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__SERVICE, newService, newService)); + } + + /** + * + * + * @generated + */ + public String getHost_ip() { + return host_ip; + } + + /** + * + * + * @generated + */ + public void setHost_ip(String newHost_ip) { + String oldHost_ip = host_ip; + host_ip = newHost_ip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__HOST_IP, oldHost_ip, host_ip)); + } + + /** + * + * + * @generated + */ + public int getVcpus_used() { + return vcpus_used; + } + + /** + * + * + * @generated + */ + public void setVcpus_used(int newVcpus_used) { + int oldVcpus_used = vcpus_used; + vcpus_used = newVcpus_used; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__VCPUS_USED, oldVcpus_used, vcpus_used)); + } + + /** + * + * + * @generated + */ + public String getHypervisor_type() { + return hypervisor_type; + } + + /** + * + * + * @generated + */ + public void setHypervisor_type(String newHypervisor_type) { + String oldHypervisor_type = hypervisor_type; + hypervisor_type = newHypervisor_type; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__HYPERVISOR_TYPE, oldHypervisor_type, hypervisor_type)); + } + + /** + * + * + * @generated + */ + public int getLocal_gb_used() { + return local_gb_used; + } + + /** + * + * + * @generated + */ + public void setLocal_gb_used(int newLocal_gb_used) { + int oldLocal_gb_used = local_gb_used; + local_gb_used = newLocal_gb_used; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__LOCAL_GB_USED, oldLocal_gb_used, local_gb_used)); + } + + /** + * + * + * @generated + */ + public String getHypervisor_hostname() { + return hypervisor_hostname; + } + + /** + * + * + * @generated + */ + public void setHypervisor_hostname(String newHypervisor_hostname) { + String oldHypervisor_hostname = hypervisor_hostname; + hypervisor_hostname = newHypervisor_hostname; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__HYPERVISOR_HOSTNAME, oldHypervisor_hostname, hypervisor_hostname)); + } + + /** + * + * + * @generated + */ + public int getMemory_mb_used() { + return memory_mb_used; + } + + /** + * + * + * @generated + */ + public void setMemory_mb_used(int newMemory_mb_used) { + int oldMemory_mb_used = memory_mb_used; + memory_mb_used = newMemory_mb_used; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__MEMORY_MB_USED, oldMemory_mb_used, memory_mb_used)); + } + + /** + * + * + * @generated + */ + public int getMemory_mb() { + return memory_mb; + } + + /** + * + * + * @generated + */ + public void setMemory_mb(int newMemory_mb) { + int oldMemory_mb = memory_mb; + memory_mb = newMemory_mb; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__MEMORY_MB, oldMemory_mb, memory_mb)); + } + + /** + * + * + * @generated + */ + public int getCurrent_workload() { + return current_workload; + } + + /** + * + * + * @generated + */ + public void setCurrent_workload(int newCurrent_workload) { + int oldCurrent_workload = current_workload; + current_workload = newCurrent_workload; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__CURRENT_WORKLOAD, oldCurrent_workload, current_workload)); + } + + /** + * + * + * @generated + */ + public int getVcpus() { + return vcpus; + } + + /** + * + * + * @generated + */ + public void setVcpus(int newVcpus) { + int oldVcpus = vcpus; + vcpus = newVcpus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__VCPUS, oldVcpus, vcpus)); + } + + /** + * + * + * @generated + */ + public HypervisorCpuInfo getCpu_info() { + return cpu_info; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetCpu_info(HypervisorCpuInfo newCpu_info, NotificationChain msgs) { + HypervisorCpuInfo oldCpu_info = cpu_info; + cpu_info = newCpu_info; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__CPU_INFO, oldCpu_info, newCpu_info); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setCpu_info(HypervisorCpuInfo newCpu_info) { + if (newCpu_info != cpu_info) { + NotificationChain msgs = null; + if (cpu_info != null) + msgs = ((InternalEObject)cpu_info).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LocationPackage.HYPERVISOR__CPU_INFO, null, msgs); + if (newCpu_info != null) + msgs = ((InternalEObject)newCpu_info).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LocationPackage.HYPERVISOR__CPU_INFO, null, msgs); + msgs = basicSetCpu_info(newCpu_info, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__CPU_INFO, newCpu_info, newCpu_info)); + } + + /** + * + * + * @generated + */ + public int getRunning_vms() { + return running_vms; + } + + /** + * + * + * @generated + */ + public void setRunning_vms(int newRunning_vms) { + int oldRunning_vms = running_vms; + running_vms = newRunning_vms; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__RUNNING_VMS, oldRunning_vms, running_vms)); + } + + /** + * + * + * @generated + */ + public int getFree_disk_gb() { + return free_disk_gb; + } + + /** + * + * + * @generated + */ + public void setFree_disk_gb(int newFree_disk_gb) { + int oldFree_disk_gb = free_disk_gb; + free_disk_gb = newFree_disk_gb; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__FREE_DISK_GB, oldFree_disk_gb, free_disk_gb)); + } + + /** + * + * + * @generated + */ + public int getHypervisor_version() { + return hypervisor_version; + } + + /** + * + * + * @generated + */ + public void setHypervisor_version(int newHypervisor_version) { + int oldHypervisor_version = hypervisor_version; + hypervisor_version = newHypervisor_version; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__HYPERVISOR_VERSION, oldHypervisor_version, hypervisor_version)); + } + + /** + * + * + * @generated + */ + public int getDisk_available_least() { + return disk_available_least; + } + + /** + * + * + * @generated + */ + public void setDisk_available_least(int newDisk_available_least) { + int oldDisk_available_least = disk_available_least; + disk_available_least = newDisk_available_least; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__DISK_AVAILABLE_LEAST, oldDisk_available_least, disk_available_least)); + } + + /** + * + * + * @generated + */ + public int getLocal_gb() { + return local_gb; + } + + /** + * + * + * @generated + */ + public void setLocal_gb(int newLocal_gb) { + int oldLocal_gb = local_gb; + local_gb = newLocal_gb; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__LOCAL_GB, oldLocal_gb, local_gb)); + } + + /** + * + * + * @generated + */ + public int getFree_ram_mb() { + return free_ram_mb; + } + + /** + * + * + * @generated + */ + public void setFree_ram_mb(int newFree_ram_mb) { + int oldFree_ram_mb = free_ram_mb; + free_ram_mb = newFree_ram_mb; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__FREE_RAM_MB, oldFree_ram_mb, free_ram_mb)); + } + + /** + * + * + * @generated + */ + public int getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(int newId) { + int oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case LocationPackage.HYPERVISOR__SERVICE: + return basicSetService(null, msgs); + case LocationPackage.HYPERVISOR__CPU_INFO: + return basicSetCpu_info(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case LocationPackage.HYPERVISOR__SERVICE: + return getService(); + case LocationPackage.HYPERVISOR__HOST_IP: + return getHost_ip(); + case LocationPackage.HYPERVISOR__VCPUS_USED: + return getVcpus_used(); + case LocationPackage.HYPERVISOR__HYPERVISOR_TYPE: + return getHypervisor_type(); + case LocationPackage.HYPERVISOR__LOCAL_GB_USED: + return getLocal_gb_used(); + case LocationPackage.HYPERVISOR__HYPERVISOR_HOSTNAME: + return getHypervisor_hostname(); + case LocationPackage.HYPERVISOR__MEMORY_MB_USED: + return getMemory_mb_used(); + case LocationPackage.HYPERVISOR__MEMORY_MB: + return getMemory_mb(); + case LocationPackage.HYPERVISOR__CURRENT_WORKLOAD: + return getCurrent_workload(); + case LocationPackage.HYPERVISOR__VCPUS: + return getVcpus(); + case LocationPackage.HYPERVISOR__CPU_INFO: + return getCpu_info(); + case LocationPackage.HYPERVISOR__RUNNING_VMS: + return getRunning_vms(); + case LocationPackage.HYPERVISOR__FREE_DISK_GB: + return getFree_disk_gb(); + case LocationPackage.HYPERVISOR__HYPERVISOR_VERSION: + return getHypervisor_version(); + case LocationPackage.HYPERVISOR__DISK_AVAILABLE_LEAST: + return getDisk_available_least(); + case LocationPackage.HYPERVISOR__LOCAL_GB: + return getLocal_gb(); + case LocationPackage.HYPERVISOR__FREE_RAM_MB: + return getFree_ram_mb(); + case LocationPackage.HYPERVISOR__ID: + return getId(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case LocationPackage.HYPERVISOR__SERVICE: + setService((HypervisorService)newValue); + return; + case LocationPackage.HYPERVISOR__HOST_IP: + setHost_ip((String)newValue); + return; + case LocationPackage.HYPERVISOR__VCPUS_USED: + setVcpus_used((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__HYPERVISOR_TYPE: + setHypervisor_type((String)newValue); + return; + case LocationPackage.HYPERVISOR__LOCAL_GB_USED: + setLocal_gb_used((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__HYPERVISOR_HOSTNAME: + setHypervisor_hostname((String)newValue); + return; + case LocationPackage.HYPERVISOR__MEMORY_MB_USED: + setMemory_mb_used((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__MEMORY_MB: + setMemory_mb((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__CURRENT_WORKLOAD: + setCurrent_workload((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__VCPUS: + setVcpus((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__CPU_INFO: + setCpu_info((HypervisorCpuInfo)newValue); + return; + case LocationPackage.HYPERVISOR__RUNNING_VMS: + setRunning_vms((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__FREE_DISK_GB: + setFree_disk_gb((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__HYPERVISOR_VERSION: + setHypervisor_version((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__DISK_AVAILABLE_LEAST: + setDisk_available_least((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__LOCAL_GB: + setLocal_gb((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__FREE_RAM_MB: + setFree_ram_mb((Integer)newValue); + return; + case LocationPackage.HYPERVISOR__ID: + setId((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case LocationPackage.HYPERVISOR__SERVICE: + setService((HypervisorService)null); + return; + case LocationPackage.HYPERVISOR__HOST_IP: + setHost_ip(HOST_IP_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__VCPUS_USED: + setVcpus_used(VCPUS_USED_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__HYPERVISOR_TYPE: + setHypervisor_type(HYPERVISOR_TYPE_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__LOCAL_GB_USED: + setLocal_gb_used(LOCAL_GB_USED_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__HYPERVISOR_HOSTNAME: + setHypervisor_hostname(HYPERVISOR_HOSTNAME_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__MEMORY_MB_USED: + setMemory_mb_used(MEMORY_MB_USED_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__MEMORY_MB: + setMemory_mb(MEMORY_MB_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__CURRENT_WORKLOAD: + setCurrent_workload(CURRENT_WORKLOAD_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__VCPUS: + setVcpus(VCPUS_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__CPU_INFO: + setCpu_info((HypervisorCpuInfo)null); + return; + case LocationPackage.HYPERVISOR__RUNNING_VMS: + setRunning_vms(RUNNING_VMS_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__FREE_DISK_GB: + setFree_disk_gb(FREE_DISK_GB_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__HYPERVISOR_VERSION: + setHypervisor_version(HYPERVISOR_VERSION_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__DISK_AVAILABLE_LEAST: + setDisk_available_least(DISK_AVAILABLE_LEAST_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__LOCAL_GB: + setLocal_gb(LOCAL_GB_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__FREE_RAM_MB: + setFree_ram_mb(FREE_RAM_MB_EDEFAULT); + return; + case LocationPackage.HYPERVISOR__ID: + setId(ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case LocationPackage.HYPERVISOR__SERVICE: + return service != null; + case LocationPackage.HYPERVISOR__HOST_IP: + return HOST_IP_EDEFAULT == null ? host_ip != null : !HOST_IP_EDEFAULT.equals(host_ip); + case LocationPackage.HYPERVISOR__VCPUS_USED: + return vcpus_used != VCPUS_USED_EDEFAULT; + case LocationPackage.HYPERVISOR__HYPERVISOR_TYPE: + return HYPERVISOR_TYPE_EDEFAULT == null ? hypervisor_type != null : !HYPERVISOR_TYPE_EDEFAULT.equals(hypervisor_type); + case LocationPackage.HYPERVISOR__LOCAL_GB_USED: + return local_gb_used != LOCAL_GB_USED_EDEFAULT; + case LocationPackage.HYPERVISOR__HYPERVISOR_HOSTNAME: + return HYPERVISOR_HOSTNAME_EDEFAULT == null ? hypervisor_hostname != null : !HYPERVISOR_HOSTNAME_EDEFAULT.equals(hypervisor_hostname); + case LocationPackage.HYPERVISOR__MEMORY_MB_USED: + return memory_mb_used != MEMORY_MB_USED_EDEFAULT; + case LocationPackage.HYPERVISOR__MEMORY_MB: + return memory_mb != MEMORY_MB_EDEFAULT; + case LocationPackage.HYPERVISOR__CURRENT_WORKLOAD: + return current_workload != CURRENT_WORKLOAD_EDEFAULT; + case LocationPackage.HYPERVISOR__VCPUS: + return vcpus != VCPUS_EDEFAULT; + case LocationPackage.HYPERVISOR__CPU_INFO: + return cpu_info != null; + case LocationPackage.HYPERVISOR__RUNNING_VMS: + return running_vms != RUNNING_VMS_EDEFAULT; + case LocationPackage.HYPERVISOR__FREE_DISK_GB: + return free_disk_gb != FREE_DISK_GB_EDEFAULT; + case LocationPackage.HYPERVISOR__HYPERVISOR_VERSION: + return hypervisor_version != HYPERVISOR_VERSION_EDEFAULT; + case LocationPackage.HYPERVISOR__DISK_AVAILABLE_LEAST: + return disk_available_least != DISK_AVAILABLE_LEAST_EDEFAULT; + case LocationPackage.HYPERVISOR__LOCAL_GB: + return local_gb != LOCAL_GB_EDEFAULT; + case LocationPackage.HYPERVISOR__FREE_RAM_MB: + return free_ram_mb != FREE_RAM_MB_EDEFAULT; + case LocationPackage.HYPERVISOR__ID: + return id != ID_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (host_ip: "); + result.append(host_ip); + result.append(", vcpus_used: "); + result.append(vcpus_used); + result.append(", hypervisor_type: "); + result.append(hypervisor_type); + result.append(", local_gb_used: "); + result.append(local_gb_used); + result.append(", hypervisor_hostname: "); + result.append(hypervisor_hostname); + result.append(", memory_mb_used: "); + result.append(memory_mb_used); + result.append(", memory_mb: "); + result.append(memory_mb); + result.append(", current_workload: "); + result.append(current_workload); + result.append(", vcpus: "); + result.append(vcpus); + result.append(", running_vms: "); + result.append(running_vms); + result.append(", free_disk_gb: "); + result.append(free_disk_gb); + result.append(", hypervisor_version: "); + result.append(hypervisor_version); + result.append(", disk_available_least: "); + result.append(disk_available_least); + result.append(", local_gb: "); + result.append(local_gb); + result.append(", free_ram_mb: "); + result.append(free_ram_mb); + result.append(", id: "); + result.append(id); + result.append(')'); + return result.toString(); + } + +} //HypervisorImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorServiceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorServiceImpl.java new file mode 100644 index 0000000..b7b5e54 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/HypervisorServiceImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.openstack.location.HypervisorService; +import org.openecomp.ncomp.openstack.location.LocationPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Hypervisor Service'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorServiceImpl#getHost Host}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.HypervisorServiceImpl#getId Id}
  • + *
+ *

+ * + * @generated + */ +public class HypervisorServiceImpl extends MinimalEObjectImpl.Container implements HypervisorService { + /** + * The default value of the '{@link #getHost() Host}' attribute. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected static final String HOST_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHost() Host}' attribute. + * + * + * @see #getHost() + * @generated + * @ordered + */ + protected String host = HOST_EDEFAULT; + + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final int ID_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected int id = ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected HypervisorServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return LocationPackage.Literals.HYPERVISOR_SERVICE; + } + + /** + * + * + * @generated + */ + public String getHost() { + return host; + } + + /** + * + * + * @generated + */ + public void setHost(String newHost) { + String oldHost = host; + host = newHost; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_SERVICE__HOST, oldHost, host)); + } + + /** + * + * + * @generated + */ + public int getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(int newId) { + int oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.HYPERVISOR_SERVICE__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case LocationPackage.HYPERVISOR_SERVICE__HOST: + return getHost(); + case LocationPackage.HYPERVISOR_SERVICE__ID: + return getId(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case LocationPackage.HYPERVISOR_SERVICE__HOST: + setHost((String)newValue); + return; + case LocationPackage.HYPERVISOR_SERVICE__ID: + setId((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case LocationPackage.HYPERVISOR_SERVICE__HOST: + setHost(HOST_EDEFAULT); + return; + case LocationPackage.HYPERVISOR_SERVICE__ID: + setId(ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case LocationPackage.HYPERVISOR_SERVICE__HOST: + return HOST_EDEFAULT == null ? host != null : !HOST_EDEFAULT.equals(host); + case LocationPackage.HYPERVISOR_SERVICE__ID: + return id != ID_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (host: "); + result.append(host); + result.append(", id: "); + result.append(id); + result.append(')'); + return result.toString(); + } + +} //HypervisorServiceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/LocationFactoryImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/LocationFactoryImpl.java new file mode 100644 index 0000000..830c853 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/LocationFactoryImpl.java @@ -0,0 +1,233 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.openstack.location.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class LocationFactoryImpl extends EFactoryImpl implements LocationFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static LocationFactory init() { + try { + LocationFactory theLocationFactory = (LocationFactory)EPackage.Registry.INSTANCE.getEFactory(LocationPackage.eNS_URI); + if (theLocationFactory != null) { + return theLocationFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new LocationFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public LocationFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case LocationPackage.OPEN_STACK_LOCATION: return createOpenStackLocation(); + case LocationPackage.OPEN_STACK_PROJECT: return createOpenStackProject(); + case LocationPackage.OPEN_STACK_USER: return createOpenStackUser(); + case LocationPackage.HYPERVISOR_SERVICE: return createHypervisorService(); + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY: return createHypervisorCpuTopology(); + case LocationPackage.HYPERVISOR_CPU_INFO: return createHypervisorCpuInfo(); + case LocationPackage.HYPERVISOR: return createHypervisor(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case LocationPackage.OPEN_STACK_VERSION: + return createOpenStackVersionFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case LocationPackage.OPEN_STACK_VERSION: + return convertOpenStackVersionToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public OpenStackLocation createOpenStackLocation() { + OpenStackLocationImpl openStackLocation = new OpenStackLocationImpl(); + return openStackLocation; + } + + /** + * + * + * @generated + */ + public OpenStackProject createOpenStackProject() { + OpenStackProjectImpl openStackProject = new OpenStackProjectImpl(); + return openStackProject; + } + + /** + * + * + * @generated + */ + public OpenStackUser createOpenStackUser() { + OpenStackUserImpl openStackUser = new OpenStackUserImpl(); + return openStackUser; + } + + /** + * + * + * @generated + */ + public HypervisorService createHypervisorService() { + HypervisorServiceImpl hypervisorService = new HypervisorServiceImpl(); + return hypervisorService; + } + + /** + * + * + * @generated + */ + public HypervisorCpuTopology createHypervisorCpuTopology() { + HypervisorCpuTopologyImpl hypervisorCpuTopology = new HypervisorCpuTopologyImpl(); + return hypervisorCpuTopology; + } + + /** + * + * + * @generated + */ + public HypervisorCpuInfo createHypervisorCpuInfo() { + HypervisorCpuInfoImpl hypervisorCpuInfo = new HypervisorCpuInfoImpl(); + return hypervisorCpuInfo; + } + + /** + * + * + * @generated + */ + public Hypervisor createHypervisor() { + HypervisorImpl hypervisor = new HypervisorImpl(); + return hypervisor; + } + + /** + * + * + * @generated + */ + public OpenStackVersion createOpenStackVersionFromString(EDataType eDataType, String initialValue) { + OpenStackVersion result = OpenStackVersion.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertOpenStackVersionToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public LocationPackage getLocationPackage() { + return (LocationPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static LocationPackage getPackage() { + return LocationPackage.eINSTANCE; + } + +} //LocationFactoryImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/LocationPackageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/LocationPackageImpl.java new file mode 100644 index 0000000..f489ee3 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/LocationPackageImpl.java @@ -0,0 +1,1155 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.core.CorePackage; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.compute.ComputePackage; + +import org.openecomp.ncomp.openstack.location.Hypervisor; +import org.openecomp.ncomp.openstack.location.HypervisorCpuInfo; +import org.openecomp.ncomp.openstack.location.HypervisorCpuTopology; +import org.openecomp.ncomp.openstack.location.HypervisorService; +import org.openecomp.ncomp.openstack.location.LocationFactory; +import org.openecomp.ncomp.openstack.location.LocationPackage; +import org.openecomp.ncomp.openstack.location.OpenStackLocation; +import org.openecomp.ncomp.openstack.location.OpenStackProject; +import org.openecomp.ncomp.openstack.location.OpenStackUser; + +import org.openecomp.ncomp.openstack.location.OpenStackVersion; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class LocationPackageImpl extends EPackageImpl implements LocationPackage { + /** + * + * + * @generated + */ + private EClass openStackLocationEClass = null; + + /** + * + * + * @generated + */ + private EClass openStackProjectEClass = null; + + /** + * + * + * @generated + */ + private EClass openStackUserEClass = null; + + /** + * + * + * @generated + */ + private EClass hypervisorServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass hypervisorCpuTopologyEClass = null; + + /** + * + * + * @generated + */ + private EClass hypervisorCpuInfoEClass = null; + + /** + * + * + * @generated + */ + private EClass hypervisorEClass = null; + + /** + * + * + * @generated + */ + private EEnum openStackVersionEEnum = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.location.LocationPackage#eNS_URI + * @see #init() + * @generated + */ + private LocationPackageImpl() { + super(eNS_URI, LocationFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link LocationPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static LocationPackage init() { + if (isInited) return (LocationPackage)EPackage.Registry.INSTANCE.getEPackage(LocationPackage.eNS_URI); + + // Obtain or create and register package + LocationPackageImpl theLocationPackage = (LocationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof LocationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new LocationPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + NeutronPackage.eINSTANCE.eClass(); + CeilometerPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theLocationPackage.createPackageContents(); + + // Initialize created meta-data + theLocationPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theLocationPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(LocationPackage.eNS_URI, theLocationPackage); + return theLocationPackage; + } + + /** + * + * + * @generated + */ + public EClass getOpenStackLocation() { + return openStackLocationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_Version() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_RemoteLocation() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_RemoteLocationName() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_AllowCreateFlavor() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_KeystoneUrl() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_BypassIp() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_FlavorId() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_SupportsSecurityGroups() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_SupportsFloatingIps() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Projects() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Users() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Images() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Flavors() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Hypervisors() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackLocation__Poll() { + return openStackLocationEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackLocation__MergeLocation__OpenStackLocation() { + return openStackLocationEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EClass getOpenStackProject() { + return openStackProjectEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_ID() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_AdminUser() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_TenantId() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_Region() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_PrivateNetwork() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_PublicNetwork() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_ApiKey() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Servers() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Users() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_ControllerUser() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Volumes() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Ips() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Groups() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Keypairs() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Networks() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Subnets() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Routers() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Ports() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Security_groups() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(18); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Floatingips() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(19); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackProject__UpdateNovaState() { + return openStackProjectEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackProject__CreateNetwork__CreateNetworkRequest() { + return openStackProjectEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EClass getOpenStackUser() { + return openStackUserEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackUser_Password() { + return (EAttribute)openStackUserEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHypervisorService() { + return hypervisorServiceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorService_Host() { + return (EAttribute)hypervisorServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorService_Id() { + return (EAttribute)hypervisorServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getHypervisorCpuTopology() { + return hypervisorCpuTopologyEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuTopology_Cores() { + return (EAttribute)hypervisorCpuTopologyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuTopology_Threads() { + return (EAttribute)hypervisorCpuTopologyEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuTopology_Sockets() { + return (EAttribute)hypervisorCpuTopologyEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getHypervisorCpuInfo() { + return hypervisorCpuInfoEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuInfo_Vendor() { + return (EAttribute)hypervisorCpuInfoEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuInfo_Model() { + return (EAttribute)hypervisorCpuInfoEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuInfo_Arch() { + return (EAttribute)hypervisorCpuInfoEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuInfo_Features() { + return (EAttribute)hypervisorCpuInfoEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getHypervisorCpuInfo_Topology() { + return (EReference)hypervisorCpuInfoEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getHypervisor() { + return hypervisorEClass; + } + + /** + * + * + * @generated + */ + public EReference getHypervisor_Service() { + return (EReference)hypervisorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Host_ip() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Vcpus_used() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Hypervisor_type() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Local_gb_used() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Hypervisor_hostname() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Memory_mb_used() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Memory_mb() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Current_workload() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Vcpus() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getHypervisor_Cpu_info() { + return (EReference)hypervisorEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Running_vms() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Free_disk_gb() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Hypervisor_version() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Disk_available_least() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Local_gb() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Free_ram_mb() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Id() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EEnum getOpenStackVersion() { + return openStackVersionEEnum; + } + + /** + * + * + * @generated + */ + public LocationFactory getLocationFactory() { + return (LocationFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + openStackLocationEClass = createEClass(OPEN_STACK_LOCATION); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__VERSION); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__REMOTE_LOCATION); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__REMOTE_LOCATION_NAME); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__ALLOW_CREATE_FLAVOR); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__KEYSTONE_URL); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__BYPASS_IP); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__FLAVOR_ID); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__SUPPORTS_SECURITY_GROUPS); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__SUPPORTS_FLOATING_IPS); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__PROJECTS); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__USERS); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__IMAGES); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__FLAVORS); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__HYPERVISORS); + createEOperation(openStackLocationEClass, OPEN_STACK_LOCATION___POLL); + createEOperation(openStackLocationEClass, OPEN_STACK_LOCATION___MERGE_LOCATION__OPENSTACKLOCATION); + + openStackProjectEClass = createEClass(OPEN_STACK_PROJECT); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__ID); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__ADMIN_USER); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__TENANT_ID); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__REGION); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__PRIVATE_NETWORK); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__PUBLIC_NETWORK); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__API_KEY); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__SERVERS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__USERS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__CONTROLLER_USER); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__VOLUMES); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__IPS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__GROUPS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__KEYPAIRS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__NETWORKS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__SUBNETS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__ROUTERS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__PORTS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__SECURITY_GROUPS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__FLOATINGIPS); + createEOperation(openStackProjectEClass, OPEN_STACK_PROJECT___UPDATE_NOVA_STATE); + createEOperation(openStackProjectEClass, OPEN_STACK_PROJECT___CREATE_NETWORK__CREATENETWORKREQUEST); + + openStackUserEClass = createEClass(OPEN_STACK_USER); + createEAttribute(openStackUserEClass, OPEN_STACK_USER__PASSWORD); + + hypervisorServiceEClass = createEClass(HYPERVISOR_SERVICE); + createEAttribute(hypervisorServiceEClass, HYPERVISOR_SERVICE__HOST); + createEAttribute(hypervisorServiceEClass, HYPERVISOR_SERVICE__ID); + + hypervisorCpuTopologyEClass = createEClass(HYPERVISOR_CPU_TOPOLOGY); + createEAttribute(hypervisorCpuTopologyEClass, HYPERVISOR_CPU_TOPOLOGY__CORES); + createEAttribute(hypervisorCpuTopologyEClass, HYPERVISOR_CPU_TOPOLOGY__THREADS); + createEAttribute(hypervisorCpuTopologyEClass, HYPERVISOR_CPU_TOPOLOGY__SOCKETS); + + hypervisorCpuInfoEClass = createEClass(HYPERVISOR_CPU_INFO); + createEAttribute(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__VENDOR); + createEAttribute(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__MODEL); + createEAttribute(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__ARCH); + createEAttribute(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__FEATURES); + createEReference(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__TOPOLOGY); + + hypervisorEClass = createEClass(HYPERVISOR); + createEReference(hypervisorEClass, HYPERVISOR__SERVICE); + createEAttribute(hypervisorEClass, HYPERVISOR__HOST_IP); + createEAttribute(hypervisorEClass, HYPERVISOR__VCPUS_USED); + createEAttribute(hypervisorEClass, HYPERVISOR__HYPERVISOR_TYPE); + createEAttribute(hypervisorEClass, HYPERVISOR__LOCAL_GB_USED); + createEAttribute(hypervisorEClass, HYPERVISOR__HYPERVISOR_HOSTNAME); + createEAttribute(hypervisorEClass, HYPERVISOR__MEMORY_MB_USED); + createEAttribute(hypervisorEClass, HYPERVISOR__MEMORY_MB); + createEAttribute(hypervisorEClass, HYPERVISOR__CURRENT_WORKLOAD); + createEAttribute(hypervisorEClass, HYPERVISOR__VCPUS); + createEReference(hypervisorEClass, HYPERVISOR__CPU_INFO); + createEAttribute(hypervisorEClass, HYPERVISOR__RUNNING_VMS); + createEAttribute(hypervisorEClass, HYPERVISOR__FREE_DISK_GB); + createEAttribute(hypervisorEClass, HYPERVISOR__HYPERVISOR_VERSION); + createEAttribute(hypervisorEClass, HYPERVISOR__DISK_AVAILABLE_LEAST); + createEAttribute(hypervisorEClass, HYPERVISOR__LOCAL_GB); + createEAttribute(hypervisorEClass, HYPERVISOR__FREE_RAM_MB); + createEAttribute(hypervisorEClass, HYPERVISOR__ID); + + // Create enums + openStackVersionEEnum = createEEnum(OPEN_STACK_VERSION); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + NeutronPackage theNeutronPackage = (NeutronPackage)EPackage.Registry.INSTANCE.getEPackage(NeutronPackage.eNS_URI); + ComputePackage theComputePackage = (ComputePackage)EPackage.Registry.INSTANCE.getEPackage(ComputePackage.eNS_URI); + CeilometerPackage theCeilometerPackage = (CeilometerPackage)EPackage.Registry.INSTANCE.getEPackage(CeilometerPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + openStackLocationEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + openStackLocationEClass.getESuperTypes().add(theNeutronPackage.getNeutronService()); + openStackLocationEClass.getESuperTypes().add(theComputePackage.getComputeService()); + openStackLocationEClass.getESuperTypes().add(theCeilometerPackage.getCeilometerService()); + openStackProjectEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + openStackProjectEClass.getESuperTypes().add(theCeilometerPackage.getCeilometerProject()); + openStackUserEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + hypervisorEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(openStackLocationEClass, OpenStackLocation.class, "OpenStackLocation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenStackLocation_Version(), this.getOpenStackVersion(), "version", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_RemoteLocation(), theEcorePackage.getEBoolean(), "remoteLocation", "false", 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_RemoteLocationName(), theEcorePackage.getEString(), "remoteLocationName", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_AllowCreateFlavor(), theEcorePackage.getEBoolean(), "allowCreateFlavor", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_KeystoneUrl(), theEcorePackage.getEString(), "keystoneUrl", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_BypassIp(), theEcorePackage.getEString(), "bypassIp", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_FlavorId(), theEcorePackage.getEInt(), "flavorId", "20000", 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_SupportsSecurityGroups(), theEcorePackage.getEBoolean(), "supportsSecurityGroups", "true", 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_SupportsFloatingIps(), theEcorePackage.getEBoolean(), "supportsFloatingIps", "true", 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackLocation_Projects(), this.getOpenStackProject(), null, "projects", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackLocation_Users(), this.getOpenStackUser(), null, "users", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackLocation_Images(), theComputePackage.getImage(), null, "images", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackLocation_Flavors(), theComputePackage.getFlavor(), null, "flavors", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackLocation_Hypervisors(), this.getHypervisor(), null, "hypervisors", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEOperation(getOpenStackLocation__Poll(), null, "poll", 0, 1, !IS_UNIQUE, IS_ORDERED); + + EOperation op = initEOperation(getOpenStackLocation__MergeLocation__OpenStackLocation(), null, "mergeLocation", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenStackLocation(), "loc", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(openStackProjectEClass, OpenStackProject.class, "OpenStackProject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenStackProject_ID(), theEcorePackage.getEString(), "ID", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_AdminUser(), theEcorePackage.getEString(), "adminUser", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_TenantId(), theEcorePackage.getEString(), "tenantId", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_Region(), theEcorePackage.getEString(), "region", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_PrivateNetwork(), theEcorePackage.getEString(), "privateNetwork", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_PublicNetwork(), theEcorePackage.getEString(), "publicNetwork", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_ApiKey(), theEcorePackage.getEString(), "apiKey", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackProject_Servers(), theComputePackage.getServer(), null, "servers", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Users(), this.getOpenStackUser(), null, "users", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_ControllerUser(), this.getOpenStackUser(), null, "controllerUser", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackProject_Volumes(), theComputePackage.getVolume(), null, "volumes", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Ips(), theComputePackage.getFloatingIp(), null, "ips", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Groups(), theComputePackage.getSecurityGroup(), null, "groups", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Keypairs(), theComputePackage.getKeyPair(), null, "keypairs", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Networks(), theNeutronPackage.getNetwork(), null, "networks", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Subnets(), theNeutronPackage.getSubnet(), null, "subnets", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Routers(), theNeutronPackage.getRouter(), null, "routers", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Ports(), theNeutronPackage.getPort(), null, "ports", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Security_groups(), theNeutronPackage.getNeutronSecurityGroup(), null, "security_groups", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Floatingips(), theNeutronPackage.getNeutronFloatingIp(), null, "floatingips", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEOperation(getOpenStackProject__UpdateNovaState(), null, "updateNovaState", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getOpenStackProject__CreateNetwork__CreateNetworkRequest(), theNeutronPackage.getNetwork(), "createNetwork", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theNeutronPackage.getCreateNetworkRequest(), "r", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(openStackUserEClass, OpenStackUser.class, "OpenStackUser", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenStackUser_Password(), theEcorePackage.getEString(), "password", null, 0, 1, OpenStackUser.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hypervisorServiceEClass, HypervisorService.class, "HypervisorService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHypervisorService_Host(), theEcorePackage.getEString(), "host", null, 0, 1, HypervisorService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorService_Id(), theEcorePackage.getEInt(), "id", null, 0, 1, HypervisorService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hypervisorCpuTopologyEClass, HypervisorCpuTopology.class, "HypervisorCpuTopology", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHypervisorCpuTopology_Cores(), theEcorePackage.getEInt(), "cores", null, 0, 1, HypervisorCpuTopology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuTopology_Threads(), theEcorePackage.getEInt(), "threads", null, 0, 1, HypervisorCpuTopology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuTopology_Sockets(), theEcorePackage.getEInt(), "sockets", null, 0, 1, HypervisorCpuTopology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hypervisorCpuInfoEClass, HypervisorCpuInfo.class, "HypervisorCpuInfo", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHypervisorCpuInfo_Vendor(), theEcorePackage.getEString(), "vendor", null, 0, 1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuInfo_Model(), theEcorePackage.getEString(), "model", null, 0, 1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuInfo_Arch(), theEcorePackage.getEString(), "arch", null, 0, 1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuInfo_Features(), theEcorePackage.getEString(), "features", null, 0, -1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getHypervisorCpuInfo_Topology(), this.getHypervisorCpuTopology(), null, "topology", null, 0, 1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hypervisorEClass, Hypervisor.class, "Hypervisor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHypervisor_Service(), this.getHypervisorService(), null, "service", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Host_ip(), theEcorePackage.getEString(), "host_ip", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Vcpus_used(), theEcorePackage.getEInt(), "vcpus_used", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Hypervisor_type(), theEcorePackage.getEString(), "hypervisor_type", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Local_gb_used(), theEcorePackage.getEInt(), "local_gb_used", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Hypervisor_hostname(), theEcorePackage.getEString(), "hypervisor_hostname", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Memory_mb_used(), theEcorePackage.getEInt(), "memory_mb_used", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Memory_mb(), theEcorePackage.getEInt(), "memory_mb", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Current_workload(), theEcorePackage.getEInt(), "current_workload", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Vcpus(), theEcorePackage.getEInt(), "vcpus", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getHypervisor_Cpu_info(), this.getHypervisorCpuInfo(), null, "cpu_info", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Running_vms(), theEcorePackage.getEInt(), "running_vms", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Free_disk_gb(), theEcorePackage.getEInt(), "free_disk_gb", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Hypervisor_version(), theEcorePackage.getEInt(), "hypervisor_version", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Disk_available_least(), theEcorePackage.getEInt(), "disk_available_least", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Local_gb(), theEcorePackage.getEInt(), "local_gb", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Free_ram_mb(), theEcorePackage.getEInt(), "free_ram_mb", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Id(), theEcorePackage.getEInt(), "id", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(openStackVersionEEnum, OpenStackVersion.class, "OpenStackVersion"); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.FOLSOM); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.GRIZZLY); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.HAVANA); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.ICEHOUSE); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.JUNO); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.KILO); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.LIBERTY); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.MITAKA); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org/sirius/persistence + createPersistenceAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "persistence", "http://openecomp.org/sirius/persistence" + }); + } + + /** + * Initializes the annotations for http://openecomp.org/sirius/persistence. + * + * + * @generated + */ + protected void createPersistenceAnnotations() { + String source = "http://openecomp.org/sirius/persistence"; + addAnnotation + (getOpenStackUser_Password(), + source, + new String[] { + "propertyFile", "bsa.properties" + }); + } + +} //LocationPackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackLocationImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackLocationImpl.java new file mode 100644 index 0000000..1b9ed42 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackLocationImpl.java @@ -0,0 +1,1375 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerSample; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerService; +import org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest; +import org.openecomp.ncomp.openstack.ceilometer.SampleRequest; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.ComputeService; +import org.openecomp.ncomp.openstack.compute.Flavor; +import org.openecomp.ncomp.openstack.compute.Image; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction; +import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete; +import org.openecomp.ncomp.openstack.location.Hypervisor; +import org.openecomp.ncomp.openstack.location.LocationPackage; +import org.openecomp.ncomp.openstack.location.OpenStackLocation; +import org.openecomp.ncomp.openstack.location.OpenStackProject; +import org.openecomp.ncomp.openstack.location.OpenStackUser; +import org.openecomp.ncomp.openstack.location.OpenStackVersion; +import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest; +import org.openecomp.ncomp.openstack.neutron.CreatePortRequest; +import org.openecomp.ncomp.openstack.neutron.CreateRouterRequest; +import org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest; +import org.openecomp.ncomp.openstack.neutron.Network; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronService; +import org.openecomp.ncomp.openstack.neutron.Port; +import org.openecomp.ncomp.openstack.neutron.Router; +import org.openecomp.ncomp.openstack.neutron.Subnet; +import java.lang.reflect.InvocationTargetException; +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Open Stack Location'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getCeilometerAvailableCapabilites Ceilometer Available Capabilites}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getCeilometerUnavailableCapabilites Ceilometer Unavailable Capabilites}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getVersion Version}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#isRemoteLocation Remote Location}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getRemoteLocationName Remote Location Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#isAllowCreateFlavor Allow Create Flavor}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getKeystoneUrl Keystone Url}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getBypassIp Bypass Ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getFlavorId Flavor Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#isSupportsSecurityGroups Supports Security Groups}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#isSupportsFloatingIps Supports Floating Ips}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getProjects Projects}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getUsers Users}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getImages Images}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getFlavors Flavors}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackLocationImpl#getHypervisors Hypervisors}
  • + *
+ *

+ * + * @generated + */ +public class OpenStackLocationImpl extends NamedEntityImpl implements OpenStackLocation { + /** + * The cached value of the '{@link #getCeilometerAvailableCapabilites() Ceilometer Available Capabilites}' attribute list. + * + * + * @see #getCeilometerAvailableCapabilites() + * @generated + * @ordered + */ + protected EList ceilometerAvailableCapabilites; + + /** + * The cached value of the '{@link #getCeilometerUnavailableCapabilites() Ceilometer Unavailable Capabilites}' attribute list. + * + * + * @see #getCeilometerUnavailableCapabilites() + * @generated + * @ordered + */ + protected EList ceilometerUnavailableCapabilites; + + /** + * The default value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected static final OpenStackVersion VERSION_EDEFAULT = OpenStackVersion.FOLSOM; + + /** + * The cached value of the '{@link #getVersion() Version}' attribute. + * + * + * @see #getVersion() + * @generated + * @ordered + */ + protected OpenStackVersion version = VERSION_EDEFAULT; + + /** + * The default value of the '{@link #isRemoteLocation() Remote Location}' attribute. + * + * + * @see #isRemoteLocation() + * @generated + * @ordered + */ + protected static final boolean REMOTE_LOCATION_EDEFAULT = false; + + /** + * The cached value of the '{@link #isRemoteLocation() Remote Location}' attribute. + * + * + * @see #isRemoteLocation() + * @generated + * @ordered + */ + protected boolean remoteLocation = REMOTE_LOCATION_EDEFAULT; + + /** + * The default value of the '{@link #getRemoteLocationName() Remote Location Name}' attribute. + * + * + * @see #getRemoteLocationName() + * @generated + * @ordered + */ + protected static final String REMOTE_LOCATION_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRemoteLocationName() Remote Location Name}' attribute. + * + * + * @see #getRemoteLocationName() + * @generated + * @ordered + */ + protected String remoteLocationName = REMOTE_LOCATION_NAME_EDEFAULT; + + /** + * The default value of the '{@link #isAllowCreateFlavor() Allow Create Flavor}' attribute. + * + * + * @see #isAllowCreateFlavor() + * @generated + * @ordered + */ + protected static final boolean ALLOW_CREATE_FLAVOR_EDEFAULT = false; + + /** + * The cached value of the '{@link #isAllowCreateFlavor() Allow Create Flavor}' attribute. + * + * + * @see #isAllowCreateFlavor() + * @generated + * @ordered + */ + protected boolean allowCreateFlavor = ALLOW_CREATE_FLAVOR_EDEFAULT; + + /** + * The default value of the '{@link #getKeystoneUrl() Keystone Url}' attribute. + * + * + * @see #getKeystoneUrl() + * @generated + * @ordered + */ + protected static final String KEYSTONE_URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKeystoneUrl() Keystone Url}' attribute. + * + * + * @see #getKeystoneUrl() + * @generated + * @ordered + */ + protected String keystoneUrl = KEYSTONE_URL_EDEFAULT; + + /** + * The default value of the '{@link #getBypassIp() Bypass Ip}' attribute. + * + * + * @see #getBypassIp() + * @generated + * @ordered + */ + protected static final String BYPASS_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBypassIp() Bypass Ip}' attribute. + * + * + * @see #getBypassIp() + * @generated + * @ordered + */ + protected String bypassIp = BYPASS_IP_EDEFAULT; + + /** + * The default value of the '{@link #getFlavorId() Flavor Id}' attribute. + * + * + * @see #getFlavorId() + * @generated + * @ordered + */ + protected static final int FLAVOR_ID_EDEFAULT = 20000; + + /** + * The cached value of the '{@link #getFlavorId() Flavor Id}' attribute. + * + * + * @see #getFlavorId() + * @generated + * @ordered + */ + protected int flavorId = FLAVOR_ID_EDEFAULT; + + /** + * The default value of the '{@link #isSupportsSecurityGroups() Supports Security Groups}' attribute. + * + * + * @see #isSupportsSecurityGroups() + * @generated + * @ordered + */ + protected static final boolean SUPPORTS_SECURITY_GROUPS_EDEFAULT = true; + + /** + * The cached value of the '{@link #isSupportsSecurityGroups() Supports Security Groups}' attribute. + * + * + * @see #isSupportsSecurityGroups() + * @generated + * @ordered + */ + protected boolean supportsSecurityGroups = SUPPORTS_SECURITY_GROUPS_EDEFAULT; + + /** + * The default value of the '{@link #isSupportsFloatingIps() Supports Floating Ips}' attribute. + * + * + * @see #isSupportsFloatingIps() + * @generated + * @ordered + */ + protected static final boolean SUPPORTS_FLOATING_IPS_EDEFAULT = true; + + /** + * The cached value of the '{@link #isSupportsFloatingIps() Supports Floating Ips}' attribute. + * + * + * @see #isSupportsFloatingIps() + * @generated + * @ordered + */ + protected boolean supportsFloatingIps = SUPPORTS_FLOATING_IPS_EDEFAULT; + + /** + * The cached value of the '{@link #getProjects() Projects}' containment reference list. + * + * + * @see #getProjects() + * @generated + * @ordered + */ + protected EList projects; + + /** + * The cached value of the '{@link #getUsers() Users}' containment reference list. + * + * + * @see #getUsers() + * @generated + * @ordered + */ + protected EList users; + + /** + * The cached value of the '{@link #getImages() Images}' containment reference list. + * + * + * @see #getImages() + * @generated + * @ordered + */ + protected EList images; + + /** + * The cached value of the '{@link #getFlavors() Flavors}' containment reference list. + * + * + * @see #getFlavors() + * @generated + * @ordered + */ + protected EList flavors; + + /** + * The cached value of the '{@link #getHypervisors() Hypervisors}' containment reference list. + * + * + * @see #getHypervisors() + * @generated + * @ordered + */ + protected EList hypervisors; + + /** + * + * + * @generated + */ + protected OpenStackLocationImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return LocationPackage.Literals.OPEN_STACK_LOCATION; + } + + /** + * + * + * @generated + */ + public EList getCeilometerAvailableCapabilites() { + if (ceilometerAvailableCapabilites == null) { + ceilometerAvailableCapabilites = new EDataTypeEList(String.class, this, LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_AVAILABLE_CAPABILITES); + } + return ceilometerAvailableCapabilites; + } + + /** + * + * + * @generated + */ + public EList getCeilometerUnavailableCapabilites() { + if (ceilometerUnavailableCapabilites == null) { + ceilometerUnavailableCapabilites = new EDataTypeEList(String.class, this, LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_UNAVAILABLE_CAPABILITES); + } + return ceilometerUnavailableCapabilites; + } + + /** + * + * + * @generated + */ + public OpenStackVersion getVersion() { + return version; + } + + /** + * + * + * @generated + */ + public void setVersion(OpenStackVersion newVersion) { + OpenStackVersion oldVersion = version; + version = newVersion == null ? VERSION_EDEFAULT : newVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_LOCATION__VERSION, oldVersion, version)); + } + + /** + * + * + * @generated + */ + public boolean isRemoteLocation() { + return remoteLocation; + } + + /** + * + * + * @generated + */ + public void setRemoteLocation(boolean newRemoteLocation) { + boolean oldRemoteLocation = remoteLocation; + remoteLocation = newRemoteLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION, oldRemoteLocation, remoteLocation)); + } + + /** + * + * + * @generated + */ + public String getRemoteLocationName() { + return remoteLocationName; + } + + /** + * + * + * @generated + */ + public void setRemoteLocationName(String newRemoteLocationName) { + String oldRemoteLocationName = remoteLocationName; + remoteLocationName = newRemoteLocationName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION_NAME, oldRemoteLocationName, remoteLocationName)); + } + + /** + * + * + * @generated + */ + public boolean isAllowCreateFlavor() { + return allowCreateFlavor; + } + + /** + * + * + * @generated + */ + public void setAllowCreateFlavor(boolean newAllowCreateFlavor) { + boolean oldAllowCreateFlavor = allowCreateFlavor; + allowCreateFlavor = newAllowCreateFlavor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_LOCATION__ALLOW_CREATE_FLAVOR, oldAllowCreateFlavor, allowCreateFlavor)); + } + + /** + * + * + * @generated + */ + public String getKeystoneUrl() { + return keystoneUrl; + } + + /** + * + * + * @generated + */ + public void setKeystoneUrl(String newKeystoneUrl) { + String oldKeystoneUrl = keystoneUrl; + keystoneUrl = newKeystoneUrl; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_LOCATION__KEYSTONE_URL, oldKeystoneUrl, keystoneUrl)); + } + + /** + * + * + * @generated + */ + public String getBypassIp() { + return bypassIp; + } + + /** + * + * + * @generated + */ + public void setBypassIp(String newBypassIp) { + String oldBypassIp = bypassIp; + bypassIp = newBypassIp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_LOCATION__BYPASS_IP, oldBypassIp, bypassIp)); + } + + /** + * + * + * @generated + */ + public int getFlavorId() { + return flavorId; + } + + /** + * + * + * @generated + */ + public void setFlavorId(int newFlavorId) { + int oldFlavorId = flavorId; + flavorId = newFlavorId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_LOCATION__FLAVOR_ID, oldFlavorId, flavorId)); + } + + /** + * + * + * @generated + */ + public boolean isSupportsSecurityGroups() { + return supportsSecurityGroups; + } + + /** + * + * + * @generated + */ + public void setSupportsSecurityGroups(boolean newSupportsSecurityGroups) { + boolean oldSupportsSecurityGroups = supportsSecurityGroups; + supportsSecurityGroups = newSupportsSecurityGroups; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_SECURITY_GROUPS, oldSupportsSecurityGroups, supportsSecurityGroups)); + } + + /** + * + * + * @generated + */ + public boolean isSupportsFloatingIps() { + return supportsFloatingIps; + } + + /** + * + * + * @generated + */ + public void setSupportsFloatingIps(boolean newSupportsFloatingIps) { + boolean oldSupportsFloatingIps = supportsFloatingIps; + supportsFloatingIps = newSupportsFloatingIps; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_FLOATING_IPS, oldSupportsFloatingIps, supportsFloatingIps)); + } + + /** + * + * + * @generated + */ + public EList getProjects() { + if (projects == null) { + projects = new EObjectContainmentEList(OpenStackProject.class, this, LocationPackage.OPEN_STACK_LOCATION__PROJECTS); + } + return projects; + } + + /** + * + * + * @generated + */ + public EList getUsers() { + if (users == null) { + users = new EObjectContainmentEList(OpenStackUser.class, this, LocationPackage.OPEN_STACK_LOCATION__USERS); + } + return users; + } + + /** + * + * + * @generated + */ + public EList getImages() { + if (images == null) { + images = new EObjectContainmentEList(Image.class, this, LocationPackage.OPEN_STACK_LOCATION__IMAGES); + } + return images; + } + + /** + * + * + * @generated + */ + public EList getFlavors() { + if (flavors == null) { + flavors = new EObjectContainmentEList(Flavor.class, this, LocationPackage.OPEN_STACK_LOCATION__FLAVORS); + } + return flavors; + } + + /** + * + * + * @generated + */ + public EList getHypervisors() { + if (hypervisors == null) { + hypervisors = new EObjectContainmentEList(Hypervisor.class, this, LocationPackage.OPEN_STACK_LOCATION__HYPERVISORS); + } + return hypervisors; + } + + /** + * + * + * @generated + */ + public void poll() { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void mergeLocation(OpenStackLocation loc) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public CeilometerAlarm createAlarm(CreateAlarmRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteAlarm(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public EList createAlarm(SampleRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createServer(OpenstackRequestNewServer request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteServer(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createKeyPair(OpenstackRequestKeyPair request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void delete(OpenstackRequestDelete request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createFlavor(OpenstackRequestFlavor request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createSecurityGroup(OpenstackRequestSecurityGroup request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void serverAction(OpenstackRequestServerAction request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deployVmType(String vmTypeName, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void undeployVmType(String vmTypeName, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deployUser(User user, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void undeployUser(User user, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Network createNetwork(CreateNetworkRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Subnet createSubnet(CreateSubnetRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Port createPort(CreatePortRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Router createRouter(CreateRouterRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteNetwork(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteSubnet(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deletePort(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteRouter(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void associateFloatingIp(String projectName, String ipId, String portId) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case LocationPackage.OPEN_STACK_LOCATION__PROJECTS: + return ((InternalEList)getProjects()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_LOCATION__USERS: + return ((InternalEList)getUsers()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_LOCATION__IMAGES: + return ((InternalEList)getImages()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_LOCATION__FLAVORS: + return ((InternalEList)getFlavors()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_LOCATION__HYPERVISORS: + return ((InternalEList)getHypervisors()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_AVAILABLE_CAPABILITES: + return getCeilometerAvailableCapabilites(); + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_UNAVAILABLE_CAPABILITES: + return getCeilometerUnavailableCapabilites(); + case LocationPackage.OPEN_STACK_LOCATION__VERSION: + return getVersion(); + case LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION: + return isRemoteLocation(); + case LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION_NAME: + return getRemoteLocationName(); + case LocationPackage.OPEN_STACK_LOCATION__ALLOW_CREATE_FLAVOR: + return isAllowCreateFlavor(); + case LocationPackage.OPEN_STACK_LOCATION__KEYSTONE_URL: + return getKeystoneUrl(); + case LocationPackage.OPEN_STACK_LOCATION__BYPASS_IP: + return getBypassIp(); + case LocationPackage.OPEN_STACK_LOCATION__FLAVOR_ID: + return getFlavorId(); + case LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_SECURITY_GROUPS: + return isSupportsSecurityGroups(); + case LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_FLOATING_IPS: + return isSupportsFloatingIps(); + case LocationPackage.OPEN_STACK_LOCATION__PROJECTS: + return getProjects(); + case LocationPackage.OPEN_STACK_LOCATION__USERS: + return getUsers(); + case LocationPackage.OPEN_STACK_LOCATION__IMAGES: + return getImages(); + case LocationPackage.OPEN_STACK_LOCATION__FLAVORS: + return getFlavors(); + case LocationPackage.OPEN_STACK_LOCATION__HYPERVISORS: + return getHypervisors(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_AVAILABLE_CAPABILITES: + getCeilometerAvailableCapabilites().clear(); + getCeilometerAvailableCapabilites().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_UNAVAILABLE_CAPABILITES: + getCeilometerUnavailableCapabilites().clear(); + getCeilometerUnavailableCapabilites().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__VERSION: + setVersion((OpenStackVersion)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION: + setRemoteLocation((Boolean)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION_NAME: + setRemoteLocationName((String)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__ALLOW_CREATE_FLAVOR: + setAllowCreateFlavor((Boolean)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__KEYSTONE_URL: + setKeystoneUrl((String)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__BYPASS_IP: + setBypassIp((String)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__FLAVOR_ID: + setFlavorId((Integer)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_SECURITY_GROUPS: + setSupportsSecurityGroups((Boolean)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_FLOATING_IPS: + setSupportsFloatingIps((Boolean)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__PROJECTS: + getProjects().clear(); + getProjects().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__USERS: + getUsers().clear(); + getUsers().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__IMAGES: + getImages().clear(); + getImages().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__FLAVORS: + getFlavors().clear(); + getFlavors().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_LOCATION__HYPERVISORS: + getHypervisors().clear(); + getHypervisors().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_AVAILABLE_CAPABILITES: + getCeilometerAvailableCapabilites().clear(); + return; + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_UNAVAILABLE_CAPABILITES: + getCeilometerUnavailableCapabilites().clear(); + return; + case LocationPackage.OPEN_STACK_LOCATION__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION: + setRemoteLocation(REMOTE_LOCATION_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION_NAME: + setRemoteLocationName(REMOTE_LOCATION_NAME_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_LOCATION__ALLOW_CREATE_FLAVOR: + setAllowCreateFlavor(ALLOW_CREATE_FLAVOR_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_LOCATION__KEYSTONE_URL: + setKeystoneUrl(KEYSTONE_URL_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_LOCATION__BYPASS_IP: + setBypassIp(BYPASS_IP_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_LOCATION__FLAVOR_ID: + setFlavorId(FLAVOR_ID_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_SECURITY_GROUPS: + setSupportsSecurityGroups(SUPPORTS_SECURITY_GROUPS_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_FLOATING_IPS: + setSupportsFloatingIps(SUPPORTS_FLOATING_IPS_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_LOCATION__PROJECTS: + getProjects().clear(); + return; + case LocationPackage.OPEN_STACK_LOCATION__USERS: + getUsers().clear(); + return; + case LocationPackage.OPEN_STACK_LOCATION__IMAGES: + getImages().clear(); + return; + case LocationPackage.OPEN_STACK_LOCATION__FLAVORS: + getFlavors().clear(); + return; + case LocationPackage.OPEN_STACK_LOCATION__HYPERVISORS: + getHypervisors().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_AVAILABLE_CAPABILITES: + return ceilometerAvailableCapabilites != null && !ceilometerAvailableCapabilites.isEmpty(); + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_UNAVAILABLE_CAPABILITES: + return ceilometerUnavailableCapabilites != null && !ceilometerUnavailableCapabilites.isEmpty(); + case LocationPackage.OPEN_STACK_LOCATION__VERSION: + return version != VERSION_EDEFAULT; + case LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION: + return remoteLocation != REMOTE_LOCATION_EDEFAULT; + case LocationPackage.OPEN_STACK_LOCATION__REMOTE_LOCATION_NAME: + return REMOTE_LOCATION_NAME_EDEFAULT == null ? remoteLocationName != null : !REMOTE_LOCATION_NAME_EDEFAULT.equals(remoteLocationName); + case LocationPackage.OPEN_STACK_LOCATION__ALLOW_CREATE_FLAVOR: + return allowCreateFlavor != ALLOW_CREATE_FLAVOR_EDEFAULT; + case LocationPackage.OPEN_STACK_LOCATION__KEYSTONE_URL: + return KEYSTONE_URL_EDEFAULT == null ? keystoneUrl != null : !KEYSTONE_URL_EDEFAULT.equals(keystoneUrl); + case LocationPackage.OPEN_STACK_LOCATION__BYPASS_IP: + return BYPASS_IP_EDEFAULT == null ? bypassIp != null : !BYPASS_IP_EDEFAULT.equals(bypassIp); + case LocationPackage.OPEN_STACK_LOCATION__FLAVOR_ID: + return flavorId != FLAVOR_ID_EDEFAULT; + case LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_SECURITY_GROUPS: + return supportsSecurityGroups != SUPPORTS_SECURITY_GROUPS_EDEFAULT; + case LocationPackage.OPEN_STACK_LOCATION__SUPPORTS_FLOATING_IPS: + return supportsFloatingIps != SUPPORTS_FLOATING_IPS_EDEFAULT; + case LocationPackage.OPEN_STACK_LOCATION__PROJECTS: + return projects != null && !projects.isEmpty(); + case LocationPackage.OPEN_STACK_LOCATION__USERS: + return users != null && !users.isEmpty(); + case LocationPackage.OPEN_STACK_LOCATION__IMAGES: + return images != null && !images.isEmpty(); + case LocationPackage.OPEN_STACK_LOCATION__FLAVORS: + return flavors != null && !flavors.isEmpty(); + case LocationPackage.OPEN_STACK_LOCATION__HYPERVISORS: + return hypervisors != null && !hypervisors.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == NeutronService.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == ComputeService.class) { + switch (derivedFeatureID) { + default: return -1; + } + } + if (baseClass == CeilometerService.class) { + switch (derivedFeatureID) { + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_AVAILABLE_CAPABILITES: return CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES; + case LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_UNAVAILABLE_CAPABILITES: return CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == NeutronService.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == ComputeService.class) { + switch (baseFeatureID) { + default: return -1; + } + } + if (baseClass == CeilometerService.class) { + switch (baseFeatureID) { + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES: return LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_AVAILABLE_CAPABILITES; + case CeilometerPackage.CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES: return LocationPackage.OPEN_STACK_LOCATION__CEILOMETER_UNAVAILABLE_CAPABILITES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedOperationID(int baseOperationID, Class baseClass) { + if (baseClass == NeutronService.class) { + switch (baseOperationID) { + case NeutronPackage.NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST: return LocationPackage.OPEN_STACK_LOCATION___CREATE_NETWORK__CREATENETWORKREQUEST; + case NeutronPackage.NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST: return LocationPackage.OPEN_STACK_LOCATION___CREATE_SUBNET__CREATESUBNETREQUEST; + case NeutronPackage.NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST: return LocationPackage.OPEN_STACK_LOCATION___CREATE_PORT__CREATEPORTREQUEST; + case NeutronPackage.NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST: return LocationPackage.OPEN_STACK_LOCATION___CREATE_ROUTER__CREATEROUTERREQUEST; + case NeutronPackage.NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING: return LocationPackage.OPEN_STACK_LOCATION___DELETE_NETWORK__STRING_STRING; + case NeutronPackage.NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING: return LocationPackage.OPEN_STACK_LOCATION___DELETE_SUBNET__STRING_STRING; + case NeutronPackage.NEUTRON_SERVICE___DELETE_PORT__STRING_STRING: return LocationPackage.OPEN_STACK_LOCATION___DELETE_PORT__STRING_STRING; + case NeutronPackage.NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING: return LocationPackage.OPEN_STACK_LOCATION___DELETE_ROUTER__STRING_STRING; + case NeutronPackage.NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING: return LocationPackage.OPEN_STACK_LOCATION___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING; + default: return -1; + } + } + if (baseClass == ComputeService.class) { + switch (baseOperationID) { + case ComputePackage.COMPUTE_SERVICE___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER: return LocationPackage.OPEN_STACK_LOCATION___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER; + case ComputePackage.COMPUTE_SERVICE___DELETE_SERVER__STRING_STRING: return LocationPackage.OPEN_STACK_LOCATION___DELETE_SERVER__STRING_STRING; + case ComputePackage.COMPUTE_SERVICE___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR: return LocationPackage.OPEN_STACK_LOCATION___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR; + case ComputePackage.COMPUTE_SERVICE___DELETE__OPENSTACKREQUESTDELETE: return LocationPackage.OPEN_STACK_LOCATION___DELETE__OPENSTACKREQUESTDELETE; + case ComputePackage.COMPUTE_SERVICE___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR: return LocationPackage.OPEN_STACK_LOCATION___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR; + case ComputePackage.COMPUTE_SERVICE___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP: return LocationPackage.OPEN_STACK_LOCATION___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP; + case ComputePackage.COMPUTE_SERVICE___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION: return LocationPackage.OPEN_STACK_LOCATION___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION; + case ComputePackage.COMPUTE_SERVICE___DEPLOY_VM_TYPE__STRING_STRING: return LocationPackage.OPEN_STACK_LOCATION___DEPLOY_VM_TYPE__STRING_STRING; + case ComputePackage.COMPUTE_SERVICE___UNDEPLOY_VM_TYPE__STRING_STRING: return LocationPackage.OPEN_STACK_LOCATION___UNDEPLOY_VM_TYPE__STRING_STRING; + case ComputePackage.COMPUTE_SERVICE___DEPLOY_USER__USER_STRING: return LocationPackage.OPEN_STACK_LOCATION___DEPLOY_USER__USER_STRING; + case ComputePackage.COMPUTE_SERVICE___UNDEPLOY_USER__USER_STRING: return LocationPackage.OPEN_STACK_LOCATION___UNDEPLOY_USER__USER_STRING; + default: return -1; + } + } + if (baseClass == CeilometerService.class) { + switch (baseOperationID) { + case CeilometerPackage.CEILOMETER_SERVICE___CREATE_ALARM__CREATEALARMREQUEST: return LocationPackage.OPEN_STACK_LOCATION___CREATE_ALARM__CREATEALARMREQUEST; + case CeilometerPackage.CEILOMETER_SERVICE___DELETE_ALARM__STRING_STRING: return LocationPackage.OPEN_STACK_LOCATION___DELETE_ALARM__STRING_STRING; + case CeilometerPackage.CEILOMETER_SERVICE___CREATE_ALARM__SAMPLEREQUEST: return LocationPackage.OPEN_STACK_LOCATION___CREATE_ALARM__SAMPLEREQUEST; + default: return -1; + } + } + return super.eDerivedOperationID(baseOperationID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case LocationPackage.OPEN_STACK_LOCATION___POLL: + poll(); + return null; + case LocationPackage.OPEN_STACK_LOCATION___MERGE_LOCATION__OPENSTACKLOCATION: + mergeLocation((OpenStackLocation)arguments.get(0)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___CREATE_ALARM__CREATEALARMREQUEST: + return createAlarm((CreateAlarmRequest)arguments.get(0)); + case LocationPackage.OPEN_STACK_LOCATION___DELETE_ALARM__STRING_STRING: + deleteAlarm((String)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___CREATE_ALARM__SAMPLEREQUEST: + return createAlarm((SampleRequest)arguments.get(0)); + case LocationPackage.OPEN_STACK_LOCATION___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER: + createServer((OpenstackRequestNewServer)arguments.get(0)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___DELETE_SERVER__STRING_STRING: + deleteServer((String)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR: + createKeyPair((OpenstackRequestKeyPair)arguments.get(0)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___DELETE__OPENSTACKREQUESTDELETE: + delete((OpenstackRequestDelete)arguments.get(0)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR: + createFlavor((OpenstackRequestFlavor)arguments.get(0)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP: + createSecurityGroup((OpenstackRequestSecurityGroup)arguments.get(0)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION: + serverAction((OpenstackRequestServerAction)arguments.get(0)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___DEPLOY_VM_TYPE__STRING_STRING: + deployVmType((String)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___UNDEPLOY_VM_TYPE__STRING_STRING: + undeployVmType((String)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___DEPLOY_USER__USER_STRING: + deployUser((User)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___UNDEPLOY_USER__USER_STRING: + undeployUser((User)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___CREATE_NETWORK__CREATENETWORKREQUEST: + return createNetwork((CreateNetworkRequest)arguments.get(0)); + case LocationPackage.OPEN_STACK_LOCATION___CREATE_SUBNET__CREATESUBNETREQUEST: + return createSubnet((CreateSubnetRequest)arguments.get(0)); + case LocationPackage.OPEN_STACK_LOCATION___CREATE_PORT__CREATEPORTREQUEST: + return createPort((CreatePortRequest)arguments.get(0)); + case LocationPackage.OPEN_STACK_LOCATION___CREATE_ROUTER__CREATEROUTERREQUEST: + return createRouter((CreateRouterRequest)arguments.get(0)); + case LocationPackage.OPEN_STACK_LOCATION___DELETE_NETWORK__STRING_STRING: + deleteNetwork((String)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___DELETE_SUBNET__STRING_STRING: + deleteSubnet((String)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___DELETE_PORT__STRING_STRING: + deletePort((String)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___DELETE_ROUTER__STRING_STRING: + deleteRouter((String)arguments.get(0), (String)arguments.get(1)); + return null; + case LocationPackage.OPEN_STACK_LOCATION___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING: + associateFloatingIp((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2)); + return null; + } + return super.eInvoke(operationID, arguments); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (ceilometerAvailableCapabilites: "); + result.append(ceilometerAvailableCapabilites); + result.append(", ceilometerUnavailableCapabilites: "); + result.append(ceilometerUnavailableCapabilites); + result.append(", version: "); + result.append(version); + result.append(", remoteLocation: "); + result.append(remoteLocation); + result.append(", remoteLocationName: "); + result.append(remoteLocationName); + result.append(", allowCreateFlavor: "); + result.append(allowCreateFlavor); + result.append(", keystoneUrl: "); + result.append(keystoneUrl); + result.append(", bypassIp: "); + result.append(bypassIp); + result.append(", flavorId: "); + result.append(flavorId); + result.append(", supportsSecurityGroups: "); + result.append(supportsSecurityGroups); + result.append(", supportsFloatingIps: "); + result.append(supportsFloatingIps); + result.append(')'); + return result.toString(); + } + +} //OpenStackLocationImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackProjectImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackProjectImpl.java new file mode 100644 index 0000000..3e36228 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackProjectImpl.java @@ -0,0 +1,1227 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerProject; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerResource; +import org.openecomp.ncomp.openstack.compute.FloatingIp; +import org.openecomp.ncomp.openstack.compute.KeyPair; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.Server; +import org.openecomp.ncomp.openstack.compute.Volume; + +import org.openecomp.ncomp.openstack.location.LocationPackage; +import org.openecomp.ncomp.openstack.location.OpenStackProject; +import org.openecomp.ncomp.openstack.location.OpenStackUser; + +import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest; +import org.openecomp.ncomp.openstack.neutron.Network; +import org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup; +import org.openecomp.ncomp.openstack.neutron.Port; +import org.openecomp.ncomp.openstack.neutron.Router; +import org.openecomp.ncomp.openstack.neutron.Subnet; + +import java.lang.reflect.InvocationTargetException; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Open Stack Project'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getAlarms Alarms}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getResources Resources}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getMeters Meters}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getID ID}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getAdminUser Admin User}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getTenantId Tenant Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getRegion Region}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getPrivateNetwork Private Network}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getPublicNetwork Public Network}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getApiKey Api Key}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getServers Servers}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getUsers Users}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getControllerUser Controller User}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getVolumes Volumes}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getIps Ips}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getGroups Groups}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getKeypairs Keypairs}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getNetworks Networks}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getSubnets Subnets}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getRouters Routers}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getPorts Ports}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getSecurity_groups Security groups}
  • + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackProjectImpl#getFloatingips Floatingips}
  • + *
+ *

+ * + * @generated + */ +public class OpenStackProjectImpl extends NamedEntityImpl implements OpenStackProject { + /** + * The cached value of the '{@link #getAlarms() Alarms}' containment reference list. + * + * + * @see #getAlarms() + * @generated + * @ordered + */ + protected EList alarms; + + /** + * The cached value of the '{@link #getResources() Resources}' containment reference list. + * + * + * @see #getResources() + * @generated + * @ordered + */ + protected EList resources; + + /** + * The cached value of the '{@link #getMeters() Meters}' containment reference list. + * + * + * @see #getMeters() + * @generated + * @ordered + */ + protected EList meters; + + /** + * The default value of the '{@link #getID() ID}' attribute. + * + * + * @see #getID() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getID() ID}' attribute. + * + * + * @see #getID() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getAdminUser() Admin User}' attribute. + * + * + * @see #getAdminUser() + * @generated + * @ordered + */ + protected static final String ADMIN_USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdminUser() Admin User}' attribute. + * + * + * @see #getAdminUser() + * @generated + * @ordered + */ + protected String adminUser = ADMIN_USER_EDEFAULT; + + /** + * The default value of the '{@link #getTenantId() Tenant Id}' attribute. + * + * + * @see #getTenantId() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenantId() Tenant Id}' attribute. + * + * + * @see #getTenantId() + * @generated + * @ordered + */ + protected String tenantId = TENANT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getRegion() Region}' attribute. + * + * + * @see #getRegion() + * @generated + * @ordered + */ + protected static final String REGION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRegion() Region}' attribute. + * + * + * @see #getRegion() + * @generated + * @ordered + */ + protected String region = REGION_EDEFAULT; + + /** + * The default value of the '{@link #getPrivateNetwork() Private Network}' attribute. + * + * + * @see #getPrivateNetwork() + * @generated + * @ordered + */ + protected static final String PRIVATE_NETWORK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPrivateNetwork() Private Network}' attribute. + * + * + * @see #getPrivateNetwork() + * @generated + * @ordered + */ + protected String privateNetwork = PRIVATE_NETWORK_EDEFAULT; + + /** + * The default value of the '{@link #getPublicNetwork() Public Network}' attribute. + * + * + * @see #getPublicNetwork() + * @generated + * @ordered + */ + protected static final String PUBLIC_NETWORK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublicNetwork() Public Network}' attribute. + * + * + * @see #getPublicNetwork() + * @generated + * @ordered + */ + protected String publicNetwork = PUBLIC_NETWORK_EDEFAULT; + + /** + * The default value of the '{@link #getApiKey() Api Key}' attribute. + * + * + * @see #getApiKey() + * @generated + * @ordered + */ + protected static final String API_KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getApiKey() Api Key}' attribute. + * + * + * @see #getApiKey() + * @generated + * @ordered + */ + protected String apiKey = API_KEY_EDEFAULT; + + /** + * The cached value of the '{@link #getServers() Servers}' containment reference list. + * + * + * @see #getServers() + * @generated + * @ordered + */ + protected EList servers; + + /** + * The cached value of the '{@link #getUsers() Users}' reference list. + * + * + * @see #getUsers() + * @generated + * @ordered + */ + protected EList users; + + /** + * The cached value of the '{@link #getControllerUser() Controller User}' reference. + * + * + * @see #getControllerUser() + * @generated + * @ordered + */ + protected OpenStackUser controllerUser; + + /** + * The cached value of the '{@link #getVolumes() Volumes}' containment reference list. + * + * + * @see #getVolumes() + * @generated + * @ordered + */ + protected EList volumes; + + /** + * The cached value of the '{@link #getIps() Ips}' containment reference list. + * + * + * @see #getIps() + * @generated + * @ordered + */ + protected EList ips; + + /** + * The cached value of the '{@link #getGroups() Groups}' containment reference list. + * + * + * @see #getGroups() + * @generated + * @ordered + */ + protected EList groups; + + /** + * The cached value of the '{@link #getKeypairs() Keypairs}' containment reference list. + * + * + * @see #getKeypairs() + * @generated + * @ordered + */ + protected EList keypairs; + + /** + * The cached value of the '{@link #getNetworks() Networks}' containment reference list. + * + * + * @see #getNetworks() + * @generated + * @ordered + */ + protected EList networks; + + /** + * The cached value of the '{@link #getSubnets() Subnets}' containment reference list. + * + * + * @see #getSubnets() + * @generated + * @ordered + */ + protected EList subnets; + + /** + * The cached value of the '{@link #getRouters() Routers}' containment reference list. + * + * + * @see #getRouters() + * @generated + * @ordered + */ + protected EList routers; + + /** + * The cached value of the '{@link #getPorts() Ports}' containment reference list. + * + * + * @see #getPorts() + * @generated + * @ordered + */ + protected EList ports; + + /** + * The cached value of the '{@link #getSecurity_groups() Security groups}' containment reference list. + * + * + * @see #getSecurity_groups() + * @generated + * @ordered + */ + protected EList security_groups; + + /** + * The cached value of the '{@link #getFloatingips() Floatingips}' containment reference list. + * + * + * @see #getFloatingips() + * @generated + * @ordered + */ + protected EList floatingips; + + /** + * + * + * @generated + */ + protected OpenStackProjectImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return LocationPackage.Literals.OPEN_STACK_PROJECT; + } + + /** + * + * + * @generated + */ + public EList getAlarms() { + if (alarms == null) { + alarms = new EObjectContainmentEList(CeilometerAlarm.class, this, LocationPackage.OPEN_STACK_PROJECT__ALARMS); + } + return alarms; + } + + /** + * + * + * @generated + */ + public EList getResources() { + if (resources == null) { + resources = new EObjectContainmentEList(CeilometerResource.class, this, LocationPackage.OPEN_STACK_PROJECT__RESOURCES); + } + return resources; + } + + /** + * + * + * @generated + */ + public EList getMeters() { + if (meters == null) { + meters = new EObjectContainmentEList(CeilometerMeter.class, this, LocationPackage.OPEN_STACK_PROJECT__METERS); + } + return meters; + } + + /** + * + * + * @generated + */ + public String getID() { + return id; + } + + /** + * + * + * @generated + */ + public void setID(String newID) { + String oldID = id; + id = newID; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_PROJECT__ID, oldID, id)); + } + + /** + * + * + * @generated + */ + public String getAdminUser() { + return adminUser; + } + + /** + * + * + * @generated + */ + public void setAdminUser(String newAdminUser) { + String oldAdminUser = adminUser; + adminUser = newAdminUser; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_PROJECT__ADMIN_USER, oldAdminUser, adminUser)); + } + + /** + * + * + * @generated + */ + public String getTenantId() { + return tenantId; + } + + /** + * + * + * @generated + */ + public void setTenantId(String newTenantId) { + String oldTenantId = tenantId; + tenantId = newTenantId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_PROJECT__TENANT_ID, oldTenantId, tenantId)); + } + + /** + * + * + * @generated + */ + public String getRegion() { + return region; + } + + /** + * + * + * @generated + */ + public void setRegion(String newRegion) { + String oldRegion = region; + region = newRegion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_PROJECT__REGION, oldRegion, region)); + } + + /** + * + * + * @generated + */ + public String getPrivateNetwork() { + return privateNetwork; + } + + /** + * + * + * @generated + */ + public void setPrivateNetwork(String newPrivateNetwork) { + String oldPrivateNetwork = privateNetwork; + privateNetwork = newPrivateNetwork; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_PROJECT__PRIVATE_NETWORK, oldPrivateNetwork, privateNetwork)); + } + + /** + * + * + * @generated + */ + public String getPublicNetwork() { + return publicNetwork; + } + + /** + * + * + * @generated + */ + public void setPublicNetwork(String newPublicNetwork) { + String oldPublicNetwork = publicNetwork; + publicNetwork = newPublicNetwork; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_PROJECT__PUBLIC_NETWORK, oldPublicNetwork, publicNetwork)); + } + + /** + * + * + * @generated + */ + public String getApiKey() { + return apiKey; + } + + /** + * + * + * @generated + */ + public void setApiKey(String newApiKey) { + String oldApiKey = apiKey; + apiKey = newApiKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_PROJECT__API_KEY, oldApiKey, apiKey)); + } + + /** + * + * + * @generated + */ + public EList getServers() { + if (servers == null) { + servers = new EObjectContainmentEList(Server.class, this, LocationPackage.OPEN_STACK_PROJECT__SERVERS); + } + return servers; + } + + /** + * + * + * @generated + */ + public EList getUsers() { + if (users == null) { + users = new EObjectResolvingEList(OpenStackUser.class, this, LocationPackage.OPEN_STACK_PROJECT__USERS); + } + return users; + } + + /** + * + * + * @generated + */ + public OpenStackUser getControllerUser() { + if (controllerUser != null && controllerUser.eIsProxy()) { + InternalEObject oldControllerUser = (InternalEObject)controllerUser; + controllerUser = (OpenStackUser)eResolveProxy(oldControllerUser); + if (controllerUser != oldControllerUser) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, LocationPackage.OPEN_STACK_PROJECT__CONTROLLER_USER, oldControllerUser, controllerUser)); + } + } + return controllerUser; + } + + /** + * + * + * @generated + */ + public OpenStackUser basicGetControllerUser() { + return controllerUser; + } + + /** + * + * + * @generated + */ + public void setControllerUser(OpenStackUser newControllerUser) { + OpenStackUser oldControllerUser = controllerUser; + controllerUser = newControllerUser; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_PROJECT__CONTROLLER_USER, oldControllerUser, controllerUser)); + } + + /** + * + * + * @generated + */ + public EList getVolumes() { + if (volumes == null) { + volumes = new EObjectContainmentEList(Volume.class, this, LocationPackage.OPEN_STACK_PROJECT__VOLUMES); + } + return volumes; + } + + /** + * + * + * @generated + */ + public EList getIps() { + if (ips == null) { + ips = new EObjectContainmentEList(FloatingIp.class, this, LocationPackage.OPEN_STACK_PROJECT__IPS); + } + return ips; + } + + /** + * + * + * @generated + */ + public EList getGroups() { + if (groups == null) { + groups = new EObjectContainmentEList(SecurityGroup.class, this, LocationPackage.OPEN_STACK_PROJECT__GROUPS); + } + return groups; + } + + /** + * + * + * @generated + */ + public EList getKeypairs() { + if (keypairs == null) { + keypairs = new EObjectContainmentEList(KeyPair.class, this, LocationPackage.OPEN_STACK_PROJECT__KEYPAIRS); + } + return keypairs; + } + + /** + * + * + * @generated + */ + public EList getNetworks() { + if (networks == null) { + networks = new EObjectContainmentEList(Network.class, this, LocationPackage.OPEN_STACK_PROJECT__NETWORKS); + } + return networks; + } + + /** + * + * + * @generated + */ + public EList getSubnets() { + if (subnets == null) { + subnets = new EObjectContainmentEList(Subnet.class, this, LocationPackage.OPEN_STACK_PROJECT__SUBNETS); + } + return subnets; + } + + /** + * + * + * @generated + */ + public EList getRouters() { + if (routers == null) { + routers = new EObjectContainmentEList(Router.class, this, LocationPackage.OPEN_STACK_PROJECT__ROUTERS); + } + return routers; + } + + /** + * + * + * @generated + */ + public EList getPorts() { + if (ports == null) { + ports = new EObjectContainmentEList(Port.class, this, LocationPackage.OPEN_STACK_PROJECT__PORTS); + } + return ports; + } + + /** + * + * + * @generated + */ + public EList getSecurity_groups() { + if (security_groups == null) { + security_groups = new EObjectContainmentEList(NeutronSecurityGroup.class, this, LocationPackage.OPEN_STACK_PROJECT__SECURITY_GROUPS); + } + return security_groups; + } + + /** + * + * + * @generated + */ + public EList getFloatingips() { + if (floatingips == null) { + floatingips = new EObjectContainmentEList(NeutronFloatingIp.class, this, LocationPackage.OPEN_STACK_PROJECT__FLOATINGIPS); + } + return floatingips; + } + + /** + * + * + * @generated + */ + public void updateNovaState() { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Network createNetwork(CreateNetworkRequest r) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case LocationPackage.OPEN_STACK_PROJECT__ALARMS: + return ((InternalEList)getAlarms()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__RESOURCES: + return ((InternalEList)getResources()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__METERS: + return ((InternalEList)getMeters()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__SERVERS: + return ((InternalEList)getServers()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__VOLUMES: + return ((InternalEList)getVolumes()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__IPS: + return ((InternalEList)getIps()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__GROUPS: + return ((InternalEList)getGroups()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__KEYPAIRS: + return ((InternalEList)getKeypairs()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__NETWORKS: + return ((InternalEList)getNetworks()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__SUBNETS: + return ((InternalEList)getSubnets()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__ROUTERS: + return ((InternalEList)getRouters()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__PORTS: + return ((InternalEList)getPorts()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__SECURITY_GROUPS: + return ((InternalEList)getSecurity_groups()).basicRemove(otherEnd, msgs); + case LocationPackage.OPEN_STACK_PROJECT__FLOATINGIPS: + return ((InternalEList)getFloatingips()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case LocationPackage.OPEN_STACK_PROJECT__ALARMS: + return getAlarms(); + case LocationPackage.OPEN_STACK_PROJECT__RESOURCES: + return getResources(); + case LocationPackage.OPEN_STACK_PROJECT__METERS: + return getMeters(); + case LocationPackage.OPEN_STACK_PROJECT__ID: + return getID(); + case LocationPackage.OPEN_STACK_PROJECT__ADMIN_USER: + return getAdminUser(); + case LocationPackage.OPEN_STACK_PROJECT__TENANT_ID: + return getTenantId(); + case LocationPackage.OPEN_STACK_PROJECT__REGION: + return getRegion(); + case LocationPackage.OPEN_STACK_PROJECT__PRIVATE_NETWORK: + return getPrivateNetwork(); + case LocationPackage.OPEN_STACK_PROJECT__PUBLIC_NETWORK: + return getPublicNetwork(); + case LocationPackage.OPEN_STACK_PROJECT__API_KEY: + return getApiKey(); + case LocationPackage.OPEN_STACK_PROJECT__SERVERS: + return getServers(); + case LocationPackage.OPEN_STACK_PROJECT__USERS: + return getUsers(); + case LocationPackage.OPEN_STACK_PROJECT__CONTROLLER_USER: + if (resolve) return getControllerUser(); + return basicGetControllerUser(); + case LocationPackage.OPEN_STACK_PROJECT__VOLUMES: + return getVolumes(); + case LocationPackage.OPEN_STACK_PROJECT__IPS: + return getIps(); + case LocationPackage.OPEN_STACK_PROJECT__GROUPS: + return getGroups(); + case LocationPackage.OPEN_STACK_PROJECT__KEYPAIRS: + return getKeypairs(); + case LocationPackage.OPEN_STACK_PROJECT__NETWORKS: + return getNetworks(); + case LocationPackage.OPEN_STACK_PROJECT__SUBNETS: + return getSubnets(); + case LocationPackage.OPEN_STACK_PROJECT__ROUTERS: + return getRouters(); + case LocationPackage.OPEN_STACK_PROJECT__PORTS: + return getPorts(); + case LocationPackage.OPEN_STACK_PROJECT__SECURITY_GROUPS: + return getSecurity_groups(); + case LocationPackage.OPEN_STACK_PROJECT__FLOATINGIPS: + return getFloatingips(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case LocationPackage.OPEN_STACK_PROJECT__ALARMS: + getAlarms().clear(); + getAlarms().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__RESOURCES: + getResources().clear(); + getResources().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__METERS: + getMeters().clear(); + getMeters().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__ID: + setID((String)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__ADMIN_USER: + setAdminUser((String)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__TENANT_ID: + setTenantId((String)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__REGION: + setRegion((String)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__PRIVATE_NETWORK: + setPrivateNetwork((String)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__PUBLIC_NETWORK: + setPublicNetwork((String)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__API_KEY: + setApiKey((String)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__SERVERS: + getServers().clear(); + getServers().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__USERS: + getUsers().clear(); + getUsers().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__CONTROLLER_USER: + setControllerUser((OpenStackUser)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__VOLUMES: + getVolumes().clear(); + getVolumes().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__IPS: + getIps().clear(); + getIps().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__GROUPS: + getGroups().clear(); + getGroups().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__KEYPAIRS: + getKeypairs().clear(); + getKeypairs().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__NETWORKS: + getNetworks().clear(); + getNetworks().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__SUBNETS: + getSubnets().clear(); + getSubnets().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__ROUTERS: + getRouters().clear(); + getRouters().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__PORTS: + getPorts().clear(); + getPorts().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__SECURITY_GROUPS: + getSecurity_groups().clear(); + getSecurity_groups().addAll((Collection)newValue); + return; + case LocationPackage.OPEN_STACK_PROJECT__FLOATINGIPS: + getFloatingips().clear(); + getFloatingips().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case LocationPackage.OPEN_STACK_PROJECT__ALARMS: + getAlarms().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__RESOURCES: + getResources().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__METERS: + getMeters().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__ID: + setID(ID_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_PROJECT__ADMIN_USER: + setAdminUser(ADMIN_USER_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_PROJECT__TENANT_ID: + setTenantId(TENANT_ID_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_PROJECT__REGION: + setRegion(REGION_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_PROJECT__PRIVATE_NETWORK: + setPrivateNetwork(PRIVATE_NETWORK_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_PROJECT__PUBLIC_NETWORK: + setPublicNetwork(PUBLIC_NETWORK_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_PROJECT__API_KEY: + setApiKey(API_KEY_EDEFAULT); + return; + case LocationPackage.OPEN_STACK_PROJECT__SERVERS: + getServers().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__USERS: + getUsers().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__CONTROLLER_USER: + setControllerUser((OpenStackUser)null); + return; + case LocationPackage.OPEN_STACK_PROJECT__VOLUMES: + getVolumes().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__IPS: + getIps().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__GROUPS: + getGroups().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__KEYPAIRS: + getKeypairs().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__NETWORKS: + getNetworks().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__SUBNETS: + getSubnets().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__ROUTERS: + getRouters().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__PORTS: + getPorts().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__SECURITY_GROUPS: + getSecurity_groups().clear(); + return; + case LocationPackage.OPEN_STACK_PROJECT__FLOATINGIPS: + getFloatingips().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case LocationPackage.OPEN_STACK_PROJECT__ALARMS: + return alarms != null && !alarms.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__RESOURCES: + return resources != null && !resources.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__METERS: + return meters != null && !meters.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case LocationPackage.OPEN_STACK_PROJECT__ADMIN_USER: + return ADMIN_USER_EDEFAULT == null ? adminUser != null : !ADMIN_USER_EDEFAULT.equals(adminUser); + case LocationPackage.OPEN_STACK_PROJECT__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenantId != null : !TENANT_ID_EDEFAULT.equals(tenantId); + case LocationPackage.OPEN_STACK_PROJECT__REGION: + return REGION_EDEFAULT == null ? region != null : !REGION_EDEFAULT.equals(region); + case LocationPackage.OPEN_STACK_PROJECT__PRIVATE_NETWORK: + return PRIVATE_NETWORK_EDEFAULT == null ? privateNetwork != null : !PRIVATE_NETWORK_EDEFAULT.equals(privateNetwork); + case LocationPackage.OPEN_STACK_PROJECT__PUBLIC_NETWORK: + return PUBLIC_NETWORK_EDEFAULT == null ? publicNetwork != null : !PUBLIC_NETWORK_EDEFAULT.equals(publicNetwork); + case LocationPackage.OPEN_STACK_PROJECT__API_KEY: + return API_KEY_EDEFAULT == null ? apiKey != null : !API_KEY_EDEFAULT.equals(apiKey); + case LocationPackage.OPEN_STACK_PROJECT__SERVERS: + return servers != null && !servers.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__USERS: + return users != null && !users.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__CONTROLLER_USER: + return controllerUser != null; + case LocationPackage.OPEN_STACK_PROJECT__VOLUMES: + return volumes != null && !volumes.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__IPS: + return ips != null && !ips.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__GROUPS: + return groups != null && !groups.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__KEYPAIRS: + return keypairs != null && !keypairs.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__NETWORKS: + return networks != null && !networks.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__SUBNETS: + return subnets != null && !subnets.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__ROUTERS: + return routers != null && !routers.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__PORTS: + return ports != null && !ports.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__SECURITY_GROUPS: + return security_groups != null && !security_groups.isEmpty(); + case LocationPackage.OPEN_STACK_PROJECT__FLOATINGIPS: + return floatingips != null && !floatingips.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { + if (baseClass == CeilometerProject.class) { + switch (derivedFeatureID) { + case LocationPackage.OPEN_STACK_PROJECT__ALARMS: return CeilometerPackage.CEILOMETER_PROJECT__ALARMS; + case LocationPackage.OPEN_STACK_PROJECT__RESOURCES: return CeilometerPackage.CEILOMETER_PROJECT__RESOURCES; + case LocationPackage.OPEN_STACK_PROJECT__METERS: return CeilometerPackage.CEILOMETER_PROJECT__METERS; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { + if (baseClass == CeilometerProject.class) { + switch (baseFeatureID) { + case CeilometerPackage.CEILOMETER_PROJECT__ALARMS: return LocationPackage.OPEN_STACK_PROJECT__ALARMS; + case CeilometerPackage.CEILOMETER_PROJECT__RESOURCES: return LocationPackage.OPEN_STACK_PROJECT__RESOURCES; + case CeilometerPackage.CEILOMETER_PROJECT__METERS: return LocationPackage.OPEN_STACK_PROJECT__METERS; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case LocationPackage.OPEN_STACK_PROJECT___UPDATE_NOVA_STATE: + updateNovaState(); + return null; + case LocationPackage.OPEN_STACK_PROJECT___CREATE_NETWORK__CREATENETWORKREQUEST: + return createNetwork((CreateNetworkRequest)arguments.get(0)); + } + return super.eInvoke(operationID, arguments); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (ID: "); + result.append(id); + result.append(", adminUser: "); + result.append(adminUser); + result.append(", tenantId: "); + result.append(tenantId); + result.append(", region: "); + result.append(region); + result.append(", privateNetwork: "); + result.append(privateNetwork); + result.append(", publicNetwork: "); + result.append(publicNetwork); + result.append(", apiKey: "); + result.append(apiKey); + result.append(')'); + return result.toString(); + } + +} //OpenStackProjectImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackUserImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackUserImpl.java new file mode 100644 index 0000000..836493c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackUserImpl.java @@ -0,0 +1,185 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.openstack.location.LocationPackage; +import org.openecomp.ncomp.openstack.location.OpenStackUser; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Open Stack User'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.location.impl.OpenStackUserImpl#getPassword Password}
  • + *
+ *

+ * + * @generated + */ +public class OpenStackUserImpl extends NamedEntityImpl implements OpenStackUser { + /** + * The default value of the '{@link #getPassword() Password}' attribute. + * + * + * @see #getPassword() + * @generated + * @ordered + */ + protected static final String PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPassword() Password}' attribute. + * + * + * @see #getPassword() + * @generated + * @ordered + */ + protected String password = PASSWORD_EDEFAULT; + + /** + * + * + * @generated + */ + protected OpenStackUserImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return LocationPackage.Literals.OPEN_STACK_USER; + } + + /** + * + * + * @generated + */ + public String getPassword() { + return password; + } + + /** + * + * + * @generated + */ + public void setPassword(String newPassword) { + String oldPassword = password; + password = newPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, LocationPackage.OPEN_STACK_USER__PASSWORD, oldPassword, password)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case LocationPackage.OPEN_STACK_USER__PASSWORD: + return getPassword(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case LocationPackage.OPEN_STACK_USER__PASSWORD: + setPassword((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case LocationPackage.OPEN_STACK_USER__PASSWORD: + setPassword(PASSWORD_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case LocationPackage.OPEN_STACK_USER__PASSWORD: + return PASSWORD_EDEFAULT == null ? password != null : !PASSWORD_EDEFAULT.equals(password); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (password: "); + result.append(password); + result.append(')'); + return result.toString(); + } + +} //OpenStackUserImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationAdapterFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationAdapterFactory.java new file mode 100644 index 0000000..1b84285 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationAdapterFactory.java @@ -0,0 +1,347 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.util; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerProject; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerService; +import org.openecomp.ncomp.openstack.compute.ComputeService; + +import org.openecomp.ncomp.openstack.location.*; + +import org.openecomp.ncomp.openstack.neutron.NeutronService; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.ncomp.openstack.location.LocationPackage + * @generated + */ +public class LocationAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static LocationPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public LocationAdapterFactory() { + if (modelPackage == null) { + modelPackage = LocationPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected LocationSwitch modelSwitch = + new LocationSwitch() { + @Override + public Adapter caseOpenStackLocation(OpenStackLocation object) { + return createOpenStackLocationAdapter(); + } + @Override + public Adapter caseOpenStackProject(OpenStackProject object) { + return createOpenStackProjectAdapter(); + } + @Override + public Adapter caseOpenStackUser(OpenStackUser object) { + return createOpenStackUserAdapter(); + } + @Override + public Adapter caseHypervisorService(HypervisorService object) { + return createHypervisorServiceAdapter(); + } + @Override + public Adapter caseHypervisorCpuTopology(HypervisorCpuTopology object) { + return createHypervisorCpuTopologyAdapter(); + } + @Override + public Adapter caseHypervisorCpuInfo(HypervisorCpuInfo object) { + return createHypervisorCpuInfoAdapter(); + } + @Override + public Adapter caseHypervisor(Hypervisor object) { + return createHypervisorAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter caseNeutronService(NeutronService object) { + return createNeutronServiceAdapter(); + } + @Override + public Adapter caseComputeService(ComputeService object) { + return createComputeServiceAdapter(); + } + @Override + public Adapter caseCeilometerService(CeilometerService object) { + return createCeilometerServiceAdapter(); + } + @Override + public Adapter caseCeilometerProject(CeilometerProject object) { + return createCeilometerProjectAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation Open Stack Location}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.location.OpenStackLocation + * @generated + */ + public Adapter createOpenStackLocationAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.OpenStackProject Open Stack Project}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.location.OpenStackProject + * @generated + */ + public Adapter createOpenStackProjectAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.OpenStackUser Open Stack User}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.location.OpenStackUser + * @generated + */ + public Adapter createOpenStackUserAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.HypervisorService Hypervisor Service}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.location.HypervisorService + * @generated + */ + public Adapter createHypervisorServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology Hypervisor Cpu Topology}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuTopology + * @generated + */ + public Adapter createHypervisorCpuTopologyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo Hypervisor Cpu Info}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.location.HypervisorCpuInfo + * @generated + */ + public Adapter createHypervisorCpuInfoAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.Hypervisor Hypervisor}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.location.Hypervisor + * @generated + */ + public Adapter createHypervisorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.NeutronService Service}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService + * @generated + */ + public Adapter createNeutronServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.ComputeService Service}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.compute.ComputeService + * @generated + */ + public Adapter createComputeServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService Service}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService + * @generated + */ + public Adapter createCeilometerServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject Project}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerProject + * @generated + */ + public Adapter createCeilometerProjectAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //LocationAdapterFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationSwitch.java new file mode 100644 index 0000000..d60e0c6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationSwitch.java @@ -0,0 +1,348 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.util; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerProject; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerService; +import org.openecomp.ncomp.openstack.compute.ComputeService; + +import org.openecomp.ncomp.openstack.location.*; + +import org.openecomp.ncomp.openstack.neutron.NeutronService; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.openecomp.ncomp.openstack.location.LocationPackage + * @generated + */ +public class LocationSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static LocationPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public LocationSwitch() { + if (modelPackage == null) { + modelPackage = LocationPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case LocationPackage.OPEN_STACK_LOCATION: { + OpenStackLocation openStackLocation = (OpenStackLocation)theEObject; + T result = caseOpenStackLocation(openStackLocation); + if (result == null) result = caseNamedEntity(openStackLocation); + if (result == null) result = caseNeutronService(openStackLocation); + if (result == null) result = caseComputeService(openStackLocation); + if (result == null) result = caseCeilometerService(openStackLocation); + if (result == null) result = defaultCase(theEObject); + return result; + } + case LocationPackage.OPEN_STACK_PROJECT: { + OpenStackProject openStackProject = (OpenStackProject)theEObject; + T result = caseOpenStackProject(openStackProject); + if (result == null) result = caseNamedEntity(openStackProject); + if (result == null) result = caseCeilometerProject(openStackProject); + if (result == null) result = defaultCase(theEObject); + return result; + } + case LocationPackage.OPEN_STACK_USER: { + OpenStackUser openStackUser = (OpenStackUser)theEObject; + T result = caseOpenStackUser(openStackUser); + if (result == null) result = caseNamedEntity(openStackUser); + if (result == null) result = defaultCase(theEObject); + return result; + } + case LocationPackage.HYPERVISOR_SERVICE: { + HypervisorService hypervisorService = (HypervisorService)theEObject; + T result = caseHypervisorService(hypervisorService); + if (result == null) result = defaultCase(theEObject); + return result; + } + case LocationPackage.HYPERVISOR_CPU_TOPOLOGY: { + HypervisorCpuTopology hypervisorCpuTopology = (HypervisorCpuTopology)theEObject; + T result = caseHypervisorCpuTopology(hypervisorCpuTopology); + if (result == null) result = defaultCase(theEObject); + return result; + } + case LocationPackage.HYPERVISOR_CPU_INFO: { + HypervisorCpuInfo hypervisorCpuInfo = (HypervisorCpuInfo)theEObject; + T result = caseHypervisorCpuInfo(hypervisorCpuInfo); + if (result == null) result = defaultCase(theEObject); + return result; + } + case LocationPackage.HYPERVISOR: { + Hypervisor hypervisor = (Hypervisor)theEObject; + T result = caseHypervisor(hypervisor); + if (result == null) result = caseNamedEntity(hypervisor); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Open Stack Location'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Open Stack Location'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenStackLocation(OpenStackLocation object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Open Stack Project'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Open Stack Project'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenStackProject(OpenStackProject object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Open Stack User'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Open Stack User'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenStackUser(OpenStackUser object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hypervisor Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Hypervisor Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHypervisorService(HypervisorService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hypervisor Cpu Topology'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Hypervisor Cpu Topology'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHypervisorCpuTopology(HypervisorCpuTopology object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hypervisor Cpu Info'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Hypervisor Cpu Info'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHypervisorCpuInfo(HypervisorCpuInfo object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hypervisor'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Hypervisor'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHypervisor(Hypervisor object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Named Entity'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Entity'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedEntity(NamedEntity object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNeutronService(NeutronService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseComputeService(ComputeService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerService(CeilometerService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Project'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Project'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCeilometerProject(CeilometerProject object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //LocationSwitch diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/AllocationPool.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/AllocationPool.java new file mode 100644 index 0000000..63b5710 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/AllocationPool.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Allocation Pool'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getStart Start}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getEnd End}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getAllocationPool() + * @model + * @generated + */ +public interface AllocationPool extends EObject { + /** + * Returns the value of the 'Start' attribute. + * + *

+ * If the meaning of the 'Start' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Start' attribute. + * @see #setStart(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getAllocationPool_Start() + * @model unique="false" + * @generated + */ + String getStart(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getStart Start}' attribute. + * + * + * @param value the new value of the 'Start' attribute. + * @see #getStart() + * @generated + */ + void setStart(String value); + + /** + * Returns the value of the 'End' attribute. + * + *

+ * If the meaning of the 'End' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'End' attribute. + * @see #setEnd(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getAllocationPool_End() + * @model unique="false" + * @generated + */ + String getEnd(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getEnd End}' attribute. + * + * + * @param value the new value of the 'End' attribute. + * @see #getEnd() + * @generated + */ + void setEnd(String value); + +} // AllocationPool diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingProfile.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingProfile.java new file mode 100644 index 0000000..6f64073 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingProfile.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Binding Profile'. + * + * + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getBindingProfile() + * @model + * @generated + */ +public interface BindingProfile extends EObject { +} // BindingProfile diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingVifDetail.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingVifDetail.java new file mode 100644 index 0000000..a44f6ef --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingVifDetail.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Binding Vif Detail'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getOvs_hybrid_plug Ovs hybrid plug}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getPort_filter Port filter}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getBindingVifDetail() + * @model + * @generated + */ +public interface BindingVifDetail extends EObject { + /** + * Returns the value of the 'Ovs hybrid plug' attribute. + * + *

+ * If the meaning of the 'Ovs hybrid plug' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ovs hybrid plug' attribute. + * @see #setOvs_hybrid_plug(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getBindingVifDetail_Ovs_hybrid_plug() + * @model unique="false" + * @generated + */ + Boolean getOvs_hybrid_plug(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getOvs_hybrid_plug Ovs hybrid plug}' attribute. + * + * + * @param value the new value of the 'Ovs hybrid plug' attribute. + * @see #getOvs_hybrid_plug() + * @generated + */ + void setOvs_hybrid_plug(Boolean value); + + /** + * Returns the value of the 'Port filter' attribute. + * + *

+ * If the meaning of the 'Port filter' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Port filter' attribute. + * @see #setPort_filter(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getBindingVifDetail_Port_filter() + * @model unique="false" + * @generated + */ + Boolean getPort_filter(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getPort_filter Port filter}' attribute. + * + * + * @param value the new value of the 'Port filter' attribute. + * @see #getPort_filter() + * @generated + */ + void setPort_filter(Boolean value); + +} // BindingVifDetail diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateNetworkRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateNetworkRequest.java new file mode 100644 index 0000000..88674e9 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateNetworkRequest.java @@ -0,0 +1,208 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + + +/** + * + * A representation of the model object 'Create Network Request'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderNetworkType Provider Network Type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderPhysicalNetwork Provider Physical Network}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderSegmentationId Provider Segmentation Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getShared Shared}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest() + * @model + * @generated + */ +public interface CreateNetworkRequest extends NeutronRequest { + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Provider Network Type' attribute. + * + *

+ * If the meaning of the 'Provider Network Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Provider Network Type' attribute. + * @see #setProviderNetworkType(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_ProviderNetworkType() + * @model unique="false" + * annotation="http://openecomp.org/sirius/openstack name='provider:network_type'" + * @generated + */ + String getProviderNetworkType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderNetworkType Provider Network Type}' attribute. + * + * + * @param value the new value of the 'Provider Network Type' attribute. + * @see #getProviderNetworkType() + * @generated + */ + void setProviderNetworkType(String value); + + /** + * Returns the value of the 'Provider Physical Network' attribute. + * + *

+ * If the meaning of the 'Provider Physical Network' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Provider Physical Network' attribute. + * @see #setProviderPhysicalNetwork(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_ProviderPhysicalNetwork() + * @model unique="false" + * annotation="http://openecomp.org/sirius/openstack name='provider:physical_network'" + * @generated + */ + String getProviderPhysicalNetwork(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderPhysicalNetwork Provider Physical Network}' attribute. + * + * + * @param value the new value of the 'Provider Physical Network' attribute. + * @see #getProviderPhysicalNetwork() + * @generated + */ + void setProviderPhysicalNetwork(String value); + + /** + * Returns the value of the 'Provider Segmentation Id' attribute. + * + *

+ * If the meaning of the 'Provider Segmentation Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Provider Segmentation Id' attribute. + * @see #setProviderSegmentationId(int) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_ProviderSegmentationId() + * @model unique="false" + * annotation="http://openecomp.org/sirius/openstack name='provider:segmentation_id'" + * @generated + */ + int getProviderSegmentationId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderSegmentationId Provider Segmentation Id}' attribute. + * + * + * @param value the new value of the 'Provider Segmentation Id' attribute. + * @see #getProviderSegmentationId() + * @generated + */ + void setProviderSegmentationId(int value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *

+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Shared' attribute. + * + *

+ * If the meaning of the 'Shared' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Shared' attribute. + * @see #setShared(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_Shared() + * @model unique="false" + * @generated + */ + Boolean getShared(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getShared Shared}' attribute. + * + * + * @param value the new value of the 'Shared' attribute. + * @see #getShared() + * @generated + */ + void setShared(Boolean value); + +} // CreateNetworkRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreatePortRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreatePortRequest.java new file mode 100644 index 0000000..ed9ed96 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreatePortRequest.java @@ -0,0 +1,226 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + + +/** + * + * A representation of the model object 'Create Port Request'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getBindingVnicType Binding Vnic Type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getFixed_ips Fixed ips}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getMac_address Mac address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getNetwork_id Network id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest() + * @model + * @generated + */ +public interface CreatePortRequest extends NeutronRequest { + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Binding Vnic Type' attribute. + * + *

+ * If the meaning of the 'Binding Vnic Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Binding Vnic Type' attribute. + * @see #setBindingVnicType(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_BindingVnicType() + * @model unique="false" + * annotation="http://openecomp.org/sirius/openstack name='binding:vnic_type'" + * @generated + */ + String getBindingVnicType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getBindingVnicType Binding Vnic Type}' attribute. + * + * + * @param value the new value of the 'Binding Vnic Type' attribute. + * @see #getBindingVnicType() + * @generated + */ + void setBindingVnicType(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *

+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *

+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Fixed ips' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.FixedIp}. + * + *

+ * If the meaning of the 'Fixed ips' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Fixed ips' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Fixed_ips() + * @model containment="true" + * annotation="http://openecomp.org/sirius/openstack removeEmptyList='true'" + * @generated + */ + EList getFixed_ips(); + + /** + * Returns the value of the 'Mac address' attribute. + * + *

+ * If the meaning of the 'Mac address' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Mac address' attribute. + * @see #setMac_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Mac_address() + * @model unique="false" + * @generated + */ + String getMac_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getMac_address Mac address}' attribute. + * + * + * @param value the new value of the 'Mac address' attribute. + * @see #getMac_address() + * @generated + */ + void setMac_address(String value); + + /** + * Returns the value of the 'Network id' attribute. + * + *

+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Network_id() + * @model unique="false" required="true" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + +} // CreatePortRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateRouterRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateRouterRequest.java new file mode 100644 index 0000000..38d3165 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateRouterRequest.java @@ -0,0 +1,187 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + + +/** + * + * A representation of the model object 'Create Router Request'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getShared Shared}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getExternalNetwork External Network}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getPorts Ports}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getSubnets Subnets}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest() + * @model + * @generated + */ +public interface CreateRouterRequest extends NeutronRequest { + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *

+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Shared' attribute. + * + *

+ * If the meaning of the 'Shared' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Shared' attribute. + * @see #setShared(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Shared() + * @model unique="false" + * @generated + */ + Boolean getShared(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getShared Shared}' attribute. + * + * + * @param value the new value of the 'Shared' attribute. + * @see #getShared() + * @generated + */ + void setShared(Boolean value); + + /** + * Returns the value of the 'External Network' attribute. + * + *

+ * If the meaning of the 'External Network' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'External Network' attribute. + * @see #setExternalNetwork(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_ExternalNetwork() + * @model unique="false" + * @generated + */ + String getExternalNetwork(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getExternalNetwork External Network}' attribute. + * + * + * @param value the new value of the 'External Network' attribute. + * @see #getExternalNetwork() + * @generated + */ + void setExternalNetwork(String value); + + /** + * Returns the value of the 'Ports' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Ports' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ports' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Ports() + * @model unique="false" + * @generated + */ + EList getPorts(); + + /** + * Returns the value of the 'Subnets' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Subnets' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Subnets' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Subnets() + * @model unique="false" + * @generated + */ + EList getSubnets(); + +} // CreateRouterRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateSubnetRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateSubnetRequest.java new file mode 100644 index 0000000..95a6516 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateSubnetRequest.java @@ -0,0 +1,240 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Create Subnet Request'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getNetwork_id Network id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getIp_version Ip version}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getCidr Cidr}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getAllocation_pools Allocation pools}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getDns_nameservers Dns nameservers}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getEnable_dhcp Enable dhcp}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getGateway_ip Gateway ip}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest() + * @model + * @generated + */ +public interface CreateSubnetRequest extends NeutronRequest { + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Network id' attribute. + * + *

+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Network_id() + * @model unique="false" required="true" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + + /** + * Returns the value of the 'Ip version' attribute. + * + *

+ * If the meaning of the 'Ip version' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ip version' attribute. + * @see #setIp_version(int) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Ip_version() + * @model unique="false" + * @generated + */ + int getIp_version(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getIp_version Ip version}' attribute. + * + * + * @param value the new value of the 'Ip version' attribute. + * @see #getIp_version() + * @generated + */ + void setIp_version(int value); + + /** + * Returns the value of the 'Cidr' attribute. + * + *

+ * If the meaning of the 'Cidr' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Cidr' attribute. + * @see #setCidr(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Cidr() + * @model unique="false" + * @generated + */ + String getCidr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getCidr Cidr}' attribute. + * + * + * @param value the new value of the 'Cidr' attribute. + * @see #getCidr() + * @generated + */ + void setCidr(String value); + + /** + * Returns the value of the 'Allocation pools' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.AllocationPool}. + * + *

+ * If the meaning of the 'Allocation pools' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Allocation pools' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Allocation_pools() + * @model containment="true" + * @generated + */ + EList getAllocation_pools(); + + /** + * Returns the value of the 'Dns nameservers' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Dns nameservers' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Dns nameservers' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Dns_nameservers() + * @model unique="false" + * @generated + */ + EList getDns_nameservers(); + + /** + * Returns the value of the 'Enable dhcp' attribute. + * + *

+ * If the meaning of the 'Enable dhcp' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Enable dhcp' attribute. + * @see #setEnable_dhcp(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Enable_dhcp() + * @model unique="false" + * @generated + */ + Boolean getEnable_dhcp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getEnable_dhcp Enable dhcp}' attribute. + * + * + * @param value the new value of the 'Enable dhcp' attribute. + * @see #getEnable_dhcp() + * @generated + */ + void setEnable_dhcp(Boolean value); + + /** + * Returns the value of the 'Gateway ip' attribute. + * + *

+ * If the meaning of the 'Gateway ip' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Gateway ip' attribute. + * @see #setGateway_ip(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Gateway_ip() + * @model unique="false" + * @generated + */ + String getGateway_ip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getGateway_ip Gateway ip}' attribute. + * + * + * @param value the new value of the 'Gateway ip' attribute. + * @see #getGateway_ip() + * @generated + */ + void setGateway_ip(String value); + +} // CreateSubnetRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/ExternalGateway.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/ExternalGateway.java new file mode 100644 index 0000000..2c9293e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/ExternalGateway.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'External Gateway'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getEnable_snat Enable snat}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getNetwork_id Network id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getExternalGateway() + * @model + * @generated + */ +public interface ExternalGateway extends EObject { + /** + * Returns the value of the 'Enable snat' attribute. + * + *

+ * If the meaning of the 'Enable snat' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Enable snat' attribute. + * @see #setEnable_snat(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getExternalGateway_Enable_snat() + * @model unique="false" + * @generated + */ + Boolean getEnable_snat(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getEnable_snat Enable snat}' attribute. + * + * + * @param value the new value of the 'Enable snat' attribute. + * @see #getEnable_snat() + * @generated + */ + void setEnable_snat(Boolean value); + + /** + * Returns the value of the 'Network id' attribute. + * + *

+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getExternalGateway_Network_id() + * @model unique="false" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + +} // ExternalGateway diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/FixedIp.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/FixedIp.java new file mode 100644 index 0000000..b671513 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/FixedIp.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Fixed Ip'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.FixedIp#getIp_address Ip address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.FixedIp#getSubnet_id Subnet id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getFixedIp() + * @model + * @generated + */ +public interface FixedIp extends EObject { + /** + * Returns the value of the 'Ip address' attribute. + * + *

+ * If the meaning of the 'Ip address' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ip address' attribute. + * @see #setIp_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getFixedIp_Ip_address() + * @model unique="false" + * @generated + */ + String getIp_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.FixedIp#getIp_address Ip address}' attribute. + * + * + * @param value the new value of the 'Ip address' attribute. + * @see #getIp_address() + * @generated + */ + void setIp_address(String value); + + /** + * Returns the value of the 'Subnet id' attribute. + * + *

+ * If the meaning of the 'Subnet id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Subnet id' attribute. + * @see #setSubnet_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getFixedIp_Subnet_id() + * @model unique="false" + * @generated + */ + String getSubnet_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.FixedIp#getSubnet_id Subnet id}' attribute. + * + * + * @param value the new value of the 'Subnet id' attribute. + * @see #getSubnet_id() + * @generated + */ + void setSubnet_id(String value); + +} // FixedIp diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Network.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Network.java new file mode 100644 index 0000000..ccc92b6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Network.java @@ -0,0 +1,331 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Network'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_network_type Provider network type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_physical_network Provider physical network}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_segmentation_id Provider segmentation id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getRouter_external Router external}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getShared Shared}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getSubnets Subnets}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Network#getTenant_id Tenant id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork() + * @model + * @generated + */ +public interface Network extends NeutronObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *

+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Provider network type' attribute. + * + *

+ * If the meaning of the 'Provider network type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Provider network type' attribute. + * @see #setProvider_network_type(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Provider_network_type() + * @model unique="false" + * @generated + */ + String getProvider_network_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_network_type Provider network type}' attribute. + * + * + * @param value the new value of the 'Provider network type' attribute. + * @see #getProvider_network_type() + * @generated + */ + void setProvider_network_type(String value); + + /** + * Returns the value of the 'Provider physical network' attribute. + * + *

+ * If the meaning of the 'Provider physical network' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Provider physical network' attribute. + * @see #setProvider_physical_network(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Provider_physical_network() + * @model unique="false" + * @generated + */ + String getProvider_physical_network(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_physical_network Provider physical network}' attribute. + * + * + * @param value the new value of the 'Provider physical network' attribute. + * @see #getProvider_physical_network() + * @generated + */ + void setProvider_physical_network(String value); + + /** + * Returns the value of the 'Provider segmentation id' attribute. + * + *

+ * If the meaning of the 'Provider segmentation id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Provider segmentation id' attribute. + * @see #setProvider_segmentation_id(Integer) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Provider_segmentation_id() + * @model unique="false" + * @generated + */ + Integer getProvider_segmentation_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_segmentation_id Provider segmentation id}' attribute. + * + * + * @param value the new value of the 'Provider segmentation id' attribute. + * @see #getProvider_segmentation_id() + * @generated + */ + void setProvider_segmentation_id(Integer value); + + /** + * Returns the value of the 'Router external' attribute. + * + *

+ * If the meaning of the 'Router external' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Router external' attribute. + * @see #setRouter_external(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Router_external() + * @model unique="false" + * @generated + */ + Boolean getRouter_external(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getRouter_external Router external}' attribute. + * + * + * @param value the new value of the 'Router external' attribute. + * @see #getRouter_external() + * @generated + */ + void setRouter_external(Boolean value); + + /** + * Returns the value of the 'Shared' attribute. + * + *

+ * If the meaning of the 'Shared' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Shared' attribute. + * @see #setShared(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Shared() + * @model unique="false" + * @generated + */ + Boolean getShared(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getShared Shared}' attribute. + * + * + * @param value the new value of the 'Shared' attribute. + * @see #getShared() + * @generated + */ + void setShared(Boolean value); + + /** + * Returns the value of the 'Status' attribute. + * + *

+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Subnets' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Subnets' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Subnets' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Subnets() + * @model unique="false" + * @generated + */ + EList getSubnets(); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // Network diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFactory.java new file mode 100644 index 0000000..0262c5c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFactory.java @@ -0,0 +1,198 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage + * @generated + */ +public interface NeutronFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + NeutronFactory eINSTANCE = org.openecomp.ncomp.openstack.neutron.impl.NeutronFactoryImpl.init(); + + /** + * Returns a new object of class 'Network'. + * + * + * @return a new object of class 'Network'. + * @generated + */ + Network createNetwork(); + + /** + * Returns a new object of class 'Subnet'. + * + * + * @return a new object of class 'Subnet'. + * @generated + */ + Subnet createSubnet(); + + /** + * Returns a new object of class 'Allocation Pool'. + * + * + * @return a new object of class 'Allocation Pool'. + * @generated + */ + AllocationPool createAllocationPool(); + + /** + * Returns a new object of class 'Router'. + * + * + * @return a new object of class 'Router'. + * @generated + */ + Router createRouter(); + + /** + * Returns a new object of class 'Port'. + * + * + * @return a new object of class 'Port'. + * @generated + */ + Port createPort(); + + /** + * Returns a new object of class 'Security Group'. + * + * + * @return a new object of class 'Security Group'. + * @generated + */ + NeutronSecurityGroup createNeutronSecurityGroup(); + + /** + * Returns a new object of class 'Security Rule'. + * + * + * @return a new object of class 'Security Rule'. + * @generated + */ + NeutronSecurityRule createNeutronSecurityRule(); + + /** + * Returns a new object of class 'Floating Ip'. + * + * + * @return a new object of class 'Floating Ip'. + * @generated + */ + NeutronFloatingIp createNeutronFloatingIp(); + + /** + * Returns a new object of class 'Binding Profile'. + * + * + * @return a new object of class 'Binding Profile'. + * @generated + */ + BindingProfile createBindingProfile(); + + /** + * Returns a new object of class 'Binding Vif Detail'. + * + * + * @return a new object of class 'Binding Vif Detail'. + * @generated + */ + BindingVifDetail createBindingVifDetail(); + + /** + * Returns a new object of class 'Fixed Ip'. + * + * + * @return a new object of class 'Fixed Ip'. + * @generated + */ + FixedIp createFixedIp(); + + /** + * Returns a new object of class 'External Gateway'. + * + * + * @return a new object of class 'External Gateway'. + * @generated + */ + ExternalGateway createExternalGateway(); + + /** + * Returns a new object of class 'Create Network Request'. + * + * + * @return a new object of class 'Create Network Request'. + * @generated + */ + CreateNetworkRequest createCreateNetworkRequest(); + + /** + * Returns a new object of class 'Create Subnet Request'. + * + * + * @return a new object of class 'Create Subnet Request'. + * @generated + */ + CreateSubnetRequest createCreateSubnetRequest(); + + /** + * Returns a new object of class 'Create Router Request'. + * + * + * @return a new object of class 'Create Router Request'. + * @generated + */ + CreateRouterRequest createCreateRouterRequest(); + + /** + * Returns a new object of class 'Create Port Request'. + * + * + * @return a new object of class 'Create Port Request'. + * @generated + */ + CreatePortRequest createCreatePortRequest(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + NeutronPackage getNeutronPackage(); + +} //NeutronFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFloatingIp.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFloatingIp.java new file mode 100644 index 0000000..4ae2622 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFloatingIp.java @@ -0,0 +1,286 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + + +/** + * + * A representation of the model object 'Floating Ip'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_network_id Floating network id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getRouter_id Router id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFixed_ip_address Fixed ip address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_ip_address Floating ip address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getPort_id Port id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp() + * @model + * @generated + */ +public interface NeutronFloatingIp extends NeutronObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *

+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Floating network id' attribute. + * + *

+ * If the meaning of the 'Floating network id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Floating network id' attribute. + * @see #setFloating_network_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Floating_network_id() + * @model unique="false" + * @generated + */ + String getFloating_network_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_network_id Floating network id}' attribute. + * + * + * @param value the new value of the 'Floating network id' attribute. + * @see #getFloating_network_id() + * @generated + */ + void setFloating_network_id(String value); + + /** + * Returns the value of the 'Router id' attribute. + * + *

+ * If the meaning of the 'Router id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Router id' attribute. + * @see #setRouter_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Router_id() + * @model unique="false" + * @generated + */ + String getRouter_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getRouter_id Router id}' attribute. + * + * + * @param value the new value of the 'Router id' attribute. + * @see #getRouter_id() + * @generated + */ + void setRouter_id(String value); + + /** + * Returns the value of the 'Fixed ip address' attribute. + * + *

+ * If the meaning of the 'Fixed ip address' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Fixed ip address' attribute. + * @see #setFixed_ip_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Fixed_ip_address() + * @model unique="false" + * @generated + */ + String getFixed_ip_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFixed_ip_address Fixed ip address}' attribute. + * + * + * @param value the new value of the 'Fixed ip address' attribute. + * @see #getFixed_ip_address() + * @generated + */ + void setFixed_ip_address(String value); + + /** + * Returns the value of the 'Floating ip address' attribute. + * + *

+ * If the meaning of the 'Floating ip address' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Floating ip address' attribute. + * @see #setFloating_ip_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Floating_ip_address() + * @model unique="false" + * @generated + */ + String getFloating_ip_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_ip_address Floating ip address}' attribute. + * + * + * @param value the new value of the 'Floating ip address' attribute. + * @see #getFloating_ip_address() + * @generated + */ + void setFloating_ip_address(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'Port id' attribute. + * + *

+ * If the meaning of the 'Port id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Port id' attribute. + * @see #setPort_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Port_id() + * @model unique="false" + * @generated + */ + String getPort_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getPort_id Port id}' attribute. + * + * + * @param value the new value of the 'Port id' attribute. + * @see #getPort_id() + * @generated + */ + void setPort_id(String value); + +} // NeutronFloatingIp diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronObject.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronObject.java new file mode 100644 index 0000000..0018968 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronObject.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Object'. + * + * + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronObject() + * @model abstract="true" + * @generated + */ +public interface NeutronObject extends EObject { +} // NeutronObject diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronPackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronPackage.java new file mode 100644 index 0000000..33eb6b0 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronPackage.java @@ -0,0 +1,4335 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.openecomp.ncomp.openstack.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/ncomp-openstack-model/src/main/xcore-gen' basePackage='org.openecomp.ncomp.openstack'" + * annotation="http://www.eclipse.org/emf/2011/Xcore openstack='http://openecomp.org/sirius/openstack'" + * @generated + */ +public interface NeutronPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "neutron"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.openstack.neutron"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "neutron"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + NeutronPackage eINSTANCE = org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronServiceImpl Service}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronServiceImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronService() + * @generated + */ + int NEUTRON_SERVICE = 0; + + /** + * The number of structural features of the 'Service' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE_FEATURE_COUNT = 0; + + /** + * The operation id for the 'Create Network' operation. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST = 0; + + /** + * The operation id for the 'Create Subnet' operation. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST = 1; + + /** + * The operation id for the 'Create Port' operation. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST = 2; + + /** + * The operation id for the 'Create Router' operation. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST = 3; + + /** + * The operation id for the 'Delete Network' operation. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING = 4; + + /** + * The operation id for the 'Delete Subnet' operation. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING = 5; + + /** + * The operation id for the 'Delete Port' operation. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE___DELETE_PORT__STRING_STRING = 6; + + /** + * The operation id for the 'Delete Router' operation. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING = 7; + + /** + * The operation id for the 'Associate Floating Ip' operation. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING = 8; + + /** + * The number of operations of the 'Service' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_SERVICE_OPERATION_COUNT = 9; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronObjectImpl Object}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronObjectImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronObject() + * @generated + */ + int NEUTRON_OBJECT = 1; + + /** + * The number of structural features of the 'Object' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_OBJECT_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Object' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_OBJECT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl Network}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNetwork() + * @generated + */ + int NETWORK = 2; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Admin state up' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__ADMIN_STATE_UP = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Provider network type' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__PROVIDER_NETWORK_TYPE = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Provider physical network' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__PROVIDER_PHYSICAL_NETWORK = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Provider segmentation id' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__PROVIDER_SEGMENTATION_ID = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Router external' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__ROUTER_EXTERNAL = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Shared' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__SHARED = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Subnets' attribute list. + * + * + * @generated + * @ordered + */ + int NETWORK__SUBNETS = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int NETWORK__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 10; + + /** + * The number of structural features of the 'Network' class. + * + * + * @generated + * @ordered + */ + int NETWORK_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 11; + + /** + * The number of operations of the 'Network' class. + * + * + * @generated + * @ordered + */ + int NETWORK_OPERATION_COUNT = NEUTRON_OBJECT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl Subnet}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getSubnet() + * @generated + */ + int SUBNET = 3; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Admin state up' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__ADMIN_STATE_UP = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Cidr' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__CIDR = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Allocation pools' containment reference list. + * + * + * @generated + * @ordered + */ + int SUBNET__ALLOCATION_POOLS = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Dns nameservers' attribute list. + * + * + * @generated + * @ordered + */ + int SUBNET__DNS_NAMESERVERS = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Enable dhcp' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__ENABLE_DHCP = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Gateway ip' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__GATEWAY_IP = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Host routes' attribute list. + * + * + * @generated + * @ordered + */ + int SUBNET__HOST_ROUTES = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Ip version' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__IP_VERSION = NEUTRON_OBJECT_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Network id' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__NETWORK_ID = NEUTRON_OBJECT_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int SUBNET__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 12; + + /** + * The number of structural features of the 'Subnet' class. + * + * + * @generated + * @ordered + */ + int SUBNET_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 13; + + /** + * The number of operations of the 'Subnet' class. + * + * + * @generated + * @ordered + */ + int SUBNET_OPERATION_COUNT = NEUTRON_OBJECT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl Allocation Pool}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getAllocationPool() + * @generated + */ + int ALLOCATION_POOL = 4; + + /** + * The feature id for the 'Start' attribute. + * + * + * @generated + * @ordered + */ + int ALLOCATION_POOL__START = 0; + + /** + * The feature id for the 'End' attribute. + * + * + * @generated + * @ordered + */ + int ALLOCATION_POOL__END = 1; + + /** + * The number of structural features of the 'Allocation Pool' class. + * + * + * @generated + * @ordered + */ + int ALLOCATION_POOL_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Allocation Pool' class. + * + * + * @generated + * @ordered + */ + int ALLOCATION_POOL_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl Router}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.RouterImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getRouter() + * @generated + */ + int ROUTER = 5; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int ROUTER__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int ROUTER__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int ROUTER__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Admin state up' attribute. + * + * + * @generated + * @ordered + */ + int ROUTER__ADMIN_STATE_UP = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'External gateway info' containment reference. + * + * + * @generated + * @ordered + */ + int ROUTER__EXTERNAL_GATEWAY_INFO = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int ROUTER__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Router' class. + * + * + * @generated + * @ordered + */ + int ROUTER_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The number of operations of the 'Router' class. + * + * + * @generated + * @ordered + */ + int ROUTER_OPERATION_COUNT = NEUTRON_OBJECT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl Port}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.PortImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getPort() + * @generated + */ + int PORT = 6; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int PORT__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int PORT__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int PORT__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Admin state up' attribute. + * + * + * @generated + * @ordered + */ + int PORT__ADMIN_STATE_UP = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'External gateway info' containment reference. + * + * + * @generated + * @ordered + */ + int PORT__EXTERNAL_GATEWAY_INFO = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int PORT__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Allowed address pairs' attribute list. + * + * + * @generated + * @ordered + */ + int PORT__ALLOWED_ADDRESS_PAIRS = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Binding host id' attribute. + * + * + * @generated + * @ordered + */ + int PORT__BINDING_HOST_ID = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Binding profile' containment reference. + * + * + * @generated + * @ordered + */ + int PORT__BINDING_PROFILE = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Binding vif details' containment reference. + * + * + * @generated + * @ordered + */ + int PORT__BINDING_VIF_DETAILS = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Binding vif type' attribute. + * + * + * @generated + * @ordered + */ + int PORT__BINDING_VIF_TYPE = NEUTRON_OBJECT_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Binding vnic type' attribute. + * + * + * @generated + * @ordered + */ + int PORT__BINDING_VNIC_TYPE = NEUTRON_OBJECT_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Device id' attribute. + * + * + * @generated + * @ordered + */ + int PORT__DEVICE_ID = NEUTRON_OBJECT_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Device owner' attribute. + * + * + * @generated + * @ordered + */ + int PORT__DEVICE_OWNER = NEUTRON_OBJECT_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Extra dhcp opts' attribute list. + * + * + * @generated + * @ordered + */ + int PORT__EXTRA_DHCP_OPTS = NEUTRON_OBJECT_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Fixed ips' containment reference list. + * + * + * @generated + * @ordered + */ + int PORT__FIXED_IPS = NEUTRON_OBJECT_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Mac address' attribute. + * + * + * @generated + * @ordered + */ + int PORT__MAC_ADDRESS = NEUTRON_OBJECT_FEATURE_COUNT + 16; + + /** + * The feature id for the 'Network id' attribute. + * + * + * @generated + * @ordered + */ + int PORT__NETWORK_ID = NEUTRON_OBJECT_FEATURE_COUNT + 17; + + /** + * The feature id for the 'Security groups' attribute list. + * + * + * @generated + * @ordered + */ + int PORT__SECURITY_GROUPS = NEUTRON_OBJECT_FEATURE_COUNT + 18; + + /** + * The number of structural features of the 'Port' class. + * + * + * @generated + * @ordered + */ + int PORT_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 19; + + /** + * The number of operations of the 'Port' class. + * + * + * @generated + * @ordered + */ + int PORT_OPERATION_COUNT = NEUTRON_OBJECT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl Security Group}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronSecurityGroup() + * @generated + */ + int NEUTRON_SECURITY_GROUP = 7; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__DESCRIPTION = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Security group rules' containment reference list. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'Security Group' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The number of operations of the 'Security Group' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP_OPERATION_COUNT = NEUTRON_OBJECT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl Security Rule}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronSecurityRule() + * @generated + */ + int NEUTRON_SECURITY_RULE = 8; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Direction' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__DIRECTION = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Ethertype' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__ETHERTYPE = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Port range min' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__PORT_RANGE_MIN = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Port range max' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__PORT_RANGE_MAX = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Protocol' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__PROTOCOL = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Remote group id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Remote ip prefix' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Security group id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The number of structural features of the 'Security Rule' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 10; + + /** + * The number of operations of the 'Security Rule' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE_OPERATION_COUNT = NEUTRON_OBJECT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl Floating Ip}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronFloatingIp() + * @generated + */ + int NEUTRON_FLOATING_IP = 9; + + /** + * The feature id for the 'Id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Floating network id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Router id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__ROUTER_ID = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Fixed ip address' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Floating ip address' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Tenant id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Port id' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__PORT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The number of structural features of the 'Floating Ip' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The number of operations of the 'Floating Ip' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP_OPERATION_COUNT = NEUTRON_OBJECT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.BindingProfileImpl Binding Profile}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.BindingProfileImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getBindingProfile() + * @generated + */ + int BINDING_PROFILE = 10; + + /** + * The number of structural features of the 'Binding Profile' class. + * + * + * @generated + * @ordered + */ + int BINDING_PROFILE_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Binding Profile' class. + * + * + * @generated + * @ordered + */ + int BINDING_PROFILE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl Binding Vif Detail}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getBindingVifDetail() + * @generated + */ + int BINDING_VIF_DETAIL = 11; + + /** + * The feature id for the 'Ovs hybrid plug' attribute. + * + * + * @generated + * @ordered + */ + int BINDING_VIF_DETAIL__OVS_HYBRID_PLUG = 0; + + /** + * The feature id for the 'Port filter' attribute. + * + * + * @generated + * @ordered + */ + int BINDING_VIF_DETAIL__PORT_FILTER = 1; + + /** + * The number of structural features of the 'Binding Vif Detail' class. + * + * + * @generated + * @ordered + */ + int BINDING_VIF_DETAIL_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Binding Vif Detail' class. + * + * + * @generated + * @ordered + */ + int BINDING_VIF_DETAIL_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl Fixed Ip}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getFixedIp() + * @generated + */ + int FIXED_IP = 12; + + /** + * The feature id for the 'Ip address' attribute. + * + * + * @generated + * @ordered + */ + int FIXED_IP__IP_ADDRESS = 0; + + /** + * The feature id for the 'Subnet id' attribute. + * + * + * @generated + * @ordered + */ + int FIXED_IP__SUBNET_ID = 1; + + /** + * The number of structural features of the 'Fixed Ip' class. + * + * + * @generated + * @ordered + */ + int FIXED_IP_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'Fixed Ip' class. + * + * + * @generated + * @ordered + */ + int FIXED_IP_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl External Gateway}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getExternalGateway() + * @generated + */ + int EXTERNAL_GATEWAY = 13; + + /** + * The feature id for the 'Enable snat' attribute. + * + * + * @generated + * @ordered + */ + int EXTERNAL_GATEWAY__ENABLE_SNAT = 0; + + /** + * The feature id for the 'Network id' attribute. + * + * + * @generated + * @ordered + */ + int EXTERNAL_GATEWAY__NETWORK_ID = 1; + + /** + * The number of structural features of the 'External Gateway' class. + * + * + * @generated + * @ordered + */ + int EXTERNAL_GATEWAY_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'External Gateway' class. + * + * + * @generated + * @ordered + */ + int EXTERNAL_GATEWAY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronRequestImpl Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronRequest() + * @generated + */ + int NEUTRON_REQUEST = 14; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int NEUTRON_REQUEST__PROJECT_NAME = CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The number of structural features of the 'Request' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_REQUEST_FEATURE_COUNT = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of operations of the 'Request' class. + * + * + * @generated + * @ordered + */ + int NEUTRON_REQUEST_OPERATION_COUNT = CorePackage.OPEN_STACK_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl Create Network Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getCreateNetworkRequest() + * @generated + */ + int CREATE_NETWORK_REQUEST = 15; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__PROJECT_NAME = NEUTRON_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__NAME = NEUTRON_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Provider Network Type' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE = NEUTRON_REQUEST_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Provider Physical Network' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK = NEUTRON_REQUEST_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Provider Segmentation Id' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID = NEUTRON_REQUEST_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Admin state up' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__ADMIN_STATE_UP = NEUTRON_REQUEST_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Shared' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__SHARED = NEUTRON_REQUEST_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Create Network Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST_FEATURE_COUNT = NEUTRON_REQUEST_FEATURE_COUNT + 6; + + /** + * The number of operations of the 'Create Network Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST_OPERATION_COUNT = NEUTRON_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl Create Subnet Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getCreateSubnetRequest() + * @generated + */ + int CREATE_SUBNET_REQUEST = 16; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__PROJECT_NAME = NEUTRON_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__NAME = NEUTRON_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Network id' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__NETWORK_ID = NEUTRON_REQUEST_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Ip version' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__IP_VERSION = NEUTRON_REQUEST_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Cidr' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__CIDR = NEUTRON_REQUEST_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Allocation pools' containment reference list. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__ALLOCATION_POOLS = NEUTRON_REQUEST_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Dns nameservers' attribute list. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__DNS_NAMESERVERS = NEUTRON_REQUEST_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Enable dhcp' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__ENABLE_DHCP = NEUTRON_REQUEST_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Gateway ip' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__GATEWAY_IP = NEUTRON_REQUEST_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Create Subnet Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST_FEATURE_COUNT = NEUTRON_REQUEST_FEATURE_COUNT + 8; + + /** + * The number of operations of the 'Create Subnet Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST_OPERATION_COUNT = NEUTRON_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl Create Router Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getCreateRouterRequest() + * @generated + */ + int CREATE_ROUTER_REQUEST = 17; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__PROJECT_NAME = NEUTRON_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__NAME = NEUTRON_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Admin state up' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__ADMIN_STATE_UP = NEUTRON_REQUEST_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Shared' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__SHARED = NEUTRON_REQUEST_FEATURE_COUNT + 2; + + /** + * The feature id for the 'External Network' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK = NEUTRON_REQUEST_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Ports' attribute list. + * + * + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__PORTS = NEUTRON_REQUEST_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Subnets' attribute list. + * + * + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__SUBNETS = NEUTRON_REQUEST_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Create Router Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST_FEATURE_COUNT = NEUTRON_REQUEST_FEATURE_COUNT + 6; + + /** + * The number of operations of the 'Create Router Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST_OPERATION_COUNT = NEUTRON_REQUEST_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl Create Port Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getCreatePortRequest() + * @generated + */ + int CREATE_PORT_REQUEST = 18; + + /** + * The feature id for the 'Project Name' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__PROJECT_NAME = NEUTRON_REQUEST__PROJECT_NAME; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__NAME = NEUTRON_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Binding Vnic Type' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__BINDING_VNIC_TYPE = NEUTRON_REQUEST_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__STATUS = NEUTRON_REQUEST_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Admin state up' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__ADMIN_STATE_UP = NEUTRON_REQUEST_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Fixed ips' containment reference list. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__FIXED_IPS = NEUTRON_REQUEST_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Mac address' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__MAC_ADDRESS = NEUTRON_REQUEST_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Network id' attribute. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__NETWORK_ID = NEUTRON_REQUEST_FEATURE_COUNT + 6; + + /** + * The number of structural features of the 'Create Port Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST_FEATURE_COUNT = NEUTRON_REQUEST_FEATURE_COUNT + 7; + + /** + * The number of operations of the 'Create Port Request' class. + * + * + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST_OPERATION_COUNT = NEUTRON_REQUEST_OPERATION_COUNT + 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.NeutronService Service}'. + * + * + * @return the meta object for class 'Service'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService + * @generated + */ + EClass getNeutronService(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.neutron.NeutronService#createNetwork(org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest) Create Network}' operation. + * + * + * @return the meta object for the 'Create Network' operation. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService#createNetwork(org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest) + * @generated + */ + EOperation getNeutronService__CreateNetwork__CreateNetworkRequest(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.neutron.NeutronService#createSubnet(org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest) Create Subnet}' operation. + * + * + * @return the meta object for the 'Create Subnet' operation. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService#createSubnet(org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest) + * @generated + */ + EOperation getNeutronService__CreateSubnet__CreateSubnetRequest(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.neutron.NeutronService#createPort(org.openecomp.ncomp.openstack.neutron.CreatePortRequest) Create Port}' operation. + * + * + * @return the meta object for the 'Create Port' operation. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService#createPort(org.openecomp.ncomp.openstack.neutron.CreatePortRequest) + * @generated + */ + EOperation getNeutronService__CreatePort__CreatePortRequest(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.neutron.NeutronService#createRouter(org.openecomp.ncomp.openstack.neutron.CreateRouterRequest) Create Router}' operation. + * + * + * @return the meta object for the 'Create Router' operation. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService#createRouter(org.openecomp.ncomp.openstack.neutron.CreateRouterRequest) + * @generated + */ + EOperation getNeutronService__CreateRouter__CreateRouterRequest(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.neutron.NeutronService#deleteNetwork(java.lang.String, java.lang.String) Delete Network}' operation. + * + * + * @return the meta object for the 'Delete Network' operation. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService#deleteNetwork(java.lang.String, java.lang.String) + * @generated + */ + EOperation getNeutronService__DeleteNetwork__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.neutron.NeutronService#deleteSubnet(java.lang.String, java.lang.String) Delete Subnet}' operation. + * + * + * @return the meta object for the 'Delete Subnet' operation. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService#deleteSubnet(java.lang.String, java.lang.String) + * @generated + */ + EOperation getNeutronService__DeleteSubnet__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.neutron.NeutronService#deletePort(java.lang.String, java.lang.String) Delete Port}' operation. + * + * + * @return the meta object for the 'Delete Port' operation. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService#deletePort(java.lang.String, java.lang.String) + * @generated + */ + EOperation getNeutronService__DeletePort__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.neutron.NeutronService#deleteRouter(java.lang.String, java.lang.String) Delete Router}' operation. + * + * + * @return the meta object for the 'Delete Router' operation. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService#deleteRouter(java.lang.String, java.lang.String) + * @generated + */ + EOperation getNeutronService__DeleteRouter__String_String(); + + /** + * Returns the meta object for the '{@link org.openecomp.ncomp.openstack.neutron.NeutronService#associateFloatingIp(java.lang.String, java.lang.String, java.lang.String) Associate Floating Ip}' operation. + * + * + * @return the meta object for the 'Associate Floating Ip' operation. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService#associateFloatingIp(java.lang.String, java.lang.String, java.lang.String) + * @generated + */ + EOperation getNeutronService__AssociateFloatingIp__String_String_String(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.NeutronObject Object}'. + * + * + * @return the meta object for class 'Object'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronObject + * @generated + */ + EClass getNeutronObject(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.Network Network}'. + * + * + * @return the meta object for class 'Network'. + * @see org.openecomp.ncomp.openstack.neutron.Network + * @generated + */ + EClass getNetwork(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getId() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getName() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getAdmin_state_up Admin state up}'. + * + * + * @return the meta object for the attribute 'Admin state up'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getAdmin_state_up() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Admin_state_up(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_network_type Provider network type}'. + * + * + * @return the meta object for the attribute 'Provider network type'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getProvider_network_type() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Provider_network_type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_physical_network Provider physical network}'. + * + * + * @return the meta object for the attribute 'Provider physical network'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getProvider_physical_network() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Provider_physical_network(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_segmentation_id Provider segmentation id}'. + * + * + * @return the meta object for the attribute 'Provider segmentation id'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getProvider_segmentation_id() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Provider_segmentation_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getRouter_external Router external}'. + * + * + * @return the meta object for the attribute 'Router external'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getRouter_external() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Router_external(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getShared Shared}'. + * + * + * @return the meta object for the attribute 'Shared'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getShared() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Shared(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getStatus Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getStatus() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Status(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.neutron.Network#getSubnets Subnets}'. + * + * + * @return the meta object for the attribute list 'Subnets'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getSubnets() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Subnets(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Network#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.neutron.Network#getTenant_id() + * @see #getNetwork() + * @generated + */ + EAttribute getNetwork_Tenant_id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.Subnet Subnet}'. + * + * + * @return the meta object for class 'Subnet'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet + * @generated + */ + EClass getSubnet(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getId() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getName() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getStatus Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getStatus() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getAdmin_state_up Admin state up}'. + * + * + * @return the meta object for the attribute 'Admin state up'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getAdmin_state_up() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Admin_state_up(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getCidr Cidr}'. + * + * + * @return the meta object for the attribute 'Cidr'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getCidr() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Cidr(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getAllocation_pools Allocation pools}'. + * + * + * @return the meta object for the containment reference list 'Allocation pools'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getAllocation_pools() + * @see #getSubnet() + * @generated + */ + EReference getSubnet_Allocation_pools(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getDns_nameservers Dns nameservers}'. + * + * + * @return the meta object for the attribute list 'Dns nameservers'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getDns_nameservers() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Dns_nameservers(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getEnable_dhcp Enable dhcp}'. + * + * + * @return the meta object for the attribute 'Enable dhcp'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getEnable_dhcp() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Enable_dhcp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getGateway_ip Gateway ip}'. + * + * + * @return the meta object for the attribute 'Gateway ip'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getGateway_ip() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Gateway_ip(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getHost_routes Host routes}'. + * + * + * @return the meta object for the attribute list 'Host routes'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getHost_routes() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Host_routes(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getIp_version Ip version}'. + * + * + * @return the meta object for the attribute 'Ip version'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getIp_version() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Ip_version(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getNetwork_id Network id}'. + * + * + * @return the meta object for the attribute 'Network id'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getNetwork_id() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Network_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.neutron.Subnet#getTenant_id() + * @see #getSubnet() + * @generated + */ + EAttribute getSubnet_Tenant_id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.AllocationPool Allocation Pool}'. + * + * + * @return the meta object for class 'Allocation Pool'. + * @see org.openecomp.ncomp.openstack.neutron.AllocationPool + * @generated + */ + EClass getAllocationPool(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getStart Start}'. + * + * + * @return the meta object for the attribute 'Start'. + * @see org.openecomp.ncomp.openstack.neutron.AllocationPool#getStart() + * @see #getAllocationPool() + * @generated + */ + EAttribute getAllocationPool_Start(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getEnd End}'. + * + * + * @return the meta object for the attribute 'End'. + * @see org.openecomp.ncomp.openstack.neutron.AllocationPool#getEnd() + * @see #getAllocationPool() + * @generated + */ + EAttribute getAllocationPool_End(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.Router Router}'. + * + * + * @return the meta object for class 'Router'. + * @see org.openecomp.ncomp.openstack.neutron.Router + * @generated + */ + EClass getRouter(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Router#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.neutron.Router#getId() + * @see #getRouter() + * @generated + */ + EAttribute getRouter_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Router#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.Router#getName() + * @see #getRouter() + * @generated + */ + EAttribute getRouter_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Router#getStatus Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @see org.openecomp.ncomp.openstack.neutron.Router#getStatus() + * @see #getRouter() + * @generated + */ + EAttribute getRouter_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Router#getAdmin_state_up Admin state up}'. + * + * + * @return the meta object for the attribute 'Admin state up'. + * @see org.openecomp.ncomp.openstack.neutron.Router#getAdmin_state_up() + * @see #getRouter() + * @generated + */ + EAttribute getRouter_Admin_state_up(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.neutron.Router#getExternal_gateway_info External gateway info}'. + * + * + * @return the meta object for the containment reference 'External gateway info'. + * @see org.openecomp.ncomp.openstack.neutron.Router#getExternal_gateway_info() + * @see #getRouter() + * @generated + */ + EReference getRouter_External_gateway_info(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Router#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.neutron.Router#getTenant_id() + * @see #getRouter() + * @generated + */ + EAttribute getRouter_Tenant_id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.Port Port}'. + * + * + * @return the meta object for class 'Port'. + * @see org.openecomp.ncomp.openstack.neutron.Port + * @generated + */ + EClass getPort(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getId() + * @see #getPort() + * @generated + */ + EAttribute getPort_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getName() + * @see #getPort() + * @generated + */ + EAttribute getPort_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getStatus Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getStatus() + * @see #getPort() + * @generated + */ + EAttribute getPort_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getAdmin_state_up Admin state up}'. + * + * + * @return the meta object for the attribute 'Admin state up'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getAdmin_state_up() + * @see #getPort() + * @generated + */ + EAttribute getPort_Admin_state_up(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.neutron.Port#getExternal_gateway_info External gateway info}'. + * + * + * @return the meta object for the containment reference 'External gateway info'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getExternal_gateway_info() + * @see #getPort() + * @generated + */ + EReference getPort_External_gateway_info(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getTenant_id() + * @see #getPort() + * @generated + */ + EAttribute getPort_Tenant_id(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.neutron.Port#getAllowed_address_pairs Allowed address pairs}'. + * + * + * @return the meta object for the attribute list 'Allowed address pairs'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getAllowed_address_pairs() + * @see #getPort() + * @generated + */ + EAttribute getPort_Allowed_address_pairs(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_host_id Binding host id}'. + * + * + * @return the meta object for the attribute 'Binding host id'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getBinding_host_id() + * @see #getPort() + * @generated + */ + EAttribute getPort_Binding_host_id(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_profile Binding profile}'. + * + * + * @return the meta object for the containment reference 'Binding profile'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getBinding_profile() + * @see #getPort() + * @generated + */ + EReference getPort_Binding_profile(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_details Binding vif details}'. + * + * + * @return the meta object for the containment reference 'Binding vif details'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_details() + * @see #getPort() + * @generated + */ + EReference getPort_Binding_vif_details(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_type Binding vif type}'. + * + * + * @return the meta object for the attribute 'Binding vif type'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_type() + * @see #getPort() + * @generated + */ + EAttribute getPort_Binding_vif_type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vnic_type Binding vnic type}'. + * + * + * @return the meta object for the attribute 'Binding vnic type'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getBinding_vnic_type() + * @see #getPort() + * @generated + */ + EAttribute getPort_Binding_vnic_type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_id Device id}'. + * + * + * @return the meta object for the attribute 'Device id'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getDevice_id() + * @see #getPort() + * @generated + */ + EAttribute getPort_Device_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_owner Device owner}'. + * + * + * @return the meta object for the attribute 'Device owner'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getDevice_owner() + * @see #getPort() + * @generated + */ + EAttribute getPort_Device_owner(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.neutron.Port#getExtra_dhcp_opts Extra dhcp opts}'. + * + * + * @return the meta object for the attribute list 'Extra dhcp opts'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getExtra_dhcp_opts() + * @see #getPort() + * @generated + */ + EAttribute getPort_Extra_dhcp_opts(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.neutron.Port#getFixed_ips Fixed ips}'. + * + * + * @return the meta object for the containment reference list 'Fixed ips'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getFixed_ips() + * @see #getPort() + * @generated + */ + EReference getPort_Fixed_ips(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getMac_address Mac address}'. + * + * + * @return the meta object for the attribute 'Mac address'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getMac_address() + * @see #getPort() + * @generated + */ + EAttribute getPort_Mac_address(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.Port#getNetwork_id Network id}'. + * + * + * @return the meta object for the attribute 'Network id'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getNetwork_id() + * @see #getPort() + * @generated + */ + EAttribute getPort_Network_id(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.neutron.Port#getSecurity_groups Security groups}'. + * + * + * @return the meta object for the attribute list 'Security groups'. + * @see org.openecomp.ncomp.openstack.neutron.Port#getSecurity_groups() + * @see #getPort() + * @generated + */ + EAttribute getPort_Security_groups(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup Security Group}'. + * + * + * @return the meta object for class 'Security Group'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup + * @generated + */ + EClass getNeutronSecurityGroup(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getId() + * @see #getNeutronSecurityGroup() + * @generated + */ + EAttribute getNeutronSecurityGroup_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getName() + * @see #getNeutronSecurityGroup() + * @generated + */ + EAttribute getNeutronSecurityGroup_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getDescription Description}'. + * + * + * @return the meta object for the attribute 'Description'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getDescription() + * @see #getNeutronSecurityGroup() + * @generated + */ + EAttribute getNeutronSecurityGroup_Description(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getSecurity_group_rules Security group rules}'. + * + * + * @return the meta object for the containment reference list 'Security group rules'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getSecurity_group_rules() + * @see #getNeutronSecurityGroup() + * @generated + */ + EReference getNeutronSecurityGroup_Security_group_rules(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getTenant_id() + * @see #getNeutronSecurityGroup() + * @generated + */ + EAttribute getNeutronSecurityGroup_Tenant_id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule Security Rule}'. + * + * + * @return the meta object for class 'Security Rule'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule + * @generated + */ + EClass getNeutronSecurityRule(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getId() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getDirection Direction}'. + * + * + * @return the meta object for the attribute 'Direction'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getDirection() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Direction(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getEthertype Ethertype}'. + * + * + * @return the meta object for the attribute 'Ethertype'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getEthertype() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Ethertype(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_min Port range min}'. + * + * + * @return the meta object for the attribute 'Port range min'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_min() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Port_range_min(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_max Port range max}'. + * + * + * @return the meta object for the attribute 'Port range max'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_max() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Port_range_max(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getProtocol Protocol}'. + * + * + * @return the meta object for the attribute 'Protocol'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getProtocol() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Protocol(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_group_id Remote group id}'. + * + * + * @return the meta object for the attribute 'Remote group id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_group_id() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Remote_group_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_ip_prefix Remote ip prefix}'. + * + * + * @return the meta object for the attribute 'Remote ip prefix'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_ip_prefix() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Remote_ip_prefix(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getSecurity_group_id Security group id}'. + * + * + * @return the meta object for the attribute 'Security group id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getSecurity_group_id() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Security_group_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getTenant_id() + * @see #getNeutronSecurityRule() + * @generated + */ + EAttribute getNeutronSecurityRule_Tenant_id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp Floating Ip}'. + * + * + * @return the meta object for class 'Floating Ip'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp + * @generated + */ + EClass getNeutronFloatingIp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getId Id}'. + * + * + * @return the meta object for the attribute 'Id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getId() + * @see #getNeutronFloatingIp() + * @generated + */ + EAttribute getNeutronFloatingIp_Id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getName() + * @see #getNeutronFloatingIp() + * @generated + */ + EAttribute getNeutronFloatingIp_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getStatus Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getStatus() + * @see #getNeutronFloatingIp() + * @generated + */ + EAttribute getNeutronFloatingIp_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_network_id Floating network id}'. + * + * + * @return the meta object for the attribute 'Floating network id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_network_id() + * @see #getNeutronFloatingIp() + * @generated + */ + EAttribute getNeutronFloatingIp_Floating_network_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getRouter_id Router id}'. + * + * + * @return the meta object for the attribute 'Router id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getRouter_id() + * @see #getNeutronFloatingIp() + * @generated + */ + EAttribute getNeutronFloatingIp_Router_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFixed_ip_address Fixed ip address}'. + * + * + * @return the meta object for the attribute 'Fixed ip address'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFixed_ip_address() + * @see #getNeutronFloatingIp() + * @generated + */ + EAttribute getNeutronFloatingIp_Fixed_ip_address(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_ip_address Floating ip address}'. + * + * + * @return the meta object for the attribute 'Floating ip address'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_ip_address() + * @see #getNeutronFloatingIp() + * @generated + */ + EAttribute getNeutronFloatingIp_Floating_ip_address(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getTenant_id Tenant id}'. + * + * + * @return the meta object for the attribute 'Tenant id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getTenant_id() + * @see #getNeutronFloatingIp() + * @generated + */ + EAttribute getNeutronFloatingIp_Tenant_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getPort_id Port id}'. + * + * + * @return the meta object for the attribute 'Port id'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getPort_id() + * @see #getNeutronFloatingIp() + * @generated + */ + EAttribute getNeutronFloatingIp_Port_id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.BindingProfile Binding Profile}'. + * + * + * @return the meta object for class 'Binding Profile'. + * @see org.openecomp.ncomp.openstack.neutron.BindingProfile + * @generated + */ + EClass getBindingProfile(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail Binding Vif Detail}'. + * + * + * @return the meta object for class 'Binding Vif Detail'. + * @see org.openecomp.ncomp.openstack.neutron.BindingVifDetail + * @generated + */ + EClass getBindingVifDetail(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getOvs_hybrid_plug Ovs hybrid plug}'. + * + * + * @return the meta object for the attribute 'Ovs hybrid plug'. + * @see org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getOvs_hybrid_plug() + * @see #getBindingVifDetail() + * @generated + */ + EAttribute getBindingVifDetail_Ovs_hybrid_plug(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getPort_filter Port filter}'. + * + * + * @return the meta object for the attribute 'Port filter'. + * @see org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getPort_filter() + * @see #getBindingVifDetail() + * @generated + */ + EAttribute getBindingVifDetail_Port_filter(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.FixedIp Fixed Ip}'. + * + * + * @return the meta object for class 'Fixed Ip'. + * @see org.openecomp.ncomp.openstack.neutron.FixedIp + * @generated + */ + EClass getFixedIp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.FixedIp#getIp_address Ip address}'. + * + * + * @return the meta object for the attribute 'Ip address'. + * @see org.openecomp.ncomp.openstack.neutron.FixedIp#getIp_address() + * @see #getFixedIp() + * @generated + */ + EAttribute getFixedIp_Ip_address(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.FixedIp#getSubnet_id Subnet id}'. + * + * + * @return the meta object for the attribute 'Subnet id'. + * @see org.openecomp.ncomp.openstack.neutron.FixedIp#getSubnet_id() + * @see #getFixedIp() + * @generated + */ + EAttribute getFixedIp_Subnet_id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway External Gateway}'. + * + * + * @return the meta object for class 'External Gateway'. + * @see org.openecomp.ncomp.openstack.neutron.ExternalGateway + * @generated + */ + EClass getExternalGateway(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getEnable_snat Enable snat}'. + * + * + * @return the meta object for the attribute 'Enable snat'. + * @see org.openecomp.ncomp.openstack.neutron.ExternalGateway#getEnable_snat() + * @see #getExternalGateway() + * @generated + */ + EAttribute getExternalGateway_Enable_snat(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getNetwork_id Network id}'. + * + * + * @return the meta object for the attribute 'Network id'. + * @see org.openecomp.ncomp.openstack.neutron.ExternalGateway#getNetwork_id() + * @see #getExternalGateway() + * @generated + */ + EAttribute getExternalGateway_Network_id(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.NeutronRequest Request}'. + * + * + * @return the meta object for class 'Request'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronRequest + * @generated + */ + EClass getNeutronRequest(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest Create Network Request}'. + * + * + * @return the meta object for class 'Create Network Request'. + * @see org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest + * @generated + */ + EClass getCreateNetworkRequest(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getName() + * @see #getCreateNetworkRequest() + * @generated + */ + EAttribute getCreateNetworkRequest_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderNetworkType Provider Network Type}'. + * + * + * @return the meta object for the attribute 'Provider Network Type'. + * @see org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderNetworkType() + * @see #getCreateNetworkRequest() + * @generated + */ + EAttribute getCreateNetworkRequest_ProviderNetworkType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderPhysicalNetwork Provider Physical Network}'. + * + * + * @return the meta object for the attribute 'Provider Physical Network'. + * @see org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderPhysicalNetwork() + * @see #getCreateNetworkRequest() + * @generated + */ + EAttribute getCreateNetworkRequest_ProviderPhysicalNetwork(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderSegmentationId Provider Segmentation Id}'. + * + * + * @return the meta object for the attribute 'Provider Segmentation Id'. + * @see org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderSegmentationId() + * @see #getCreateNetworkRequest() + * @generated + */ + EAttribute getCreateNetworkRequest_ProviderSegmentationId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getAdmin_state_up Admin state up}'. + * + * + * @return the meta object for the attribute 'Admin state up'. + * @see org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getAdmin_state_up() + * @see #getCreateNetworkRequest() + * @generated + */ + EAttribute getCreateNetworkRequest_Admin_state_up(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getShared Shared}'. + * + * + * @return the meta object for the attribute 'Shared'. + * @see org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getShared() + * @see #getCreateNetworkRequest() + * @generated + */ + EAttribute getCreateNetworkRequest_Shared(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest Create Subnet Request}'. + * + * + * @return the meta object for class 'Create Subnet Request'. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest + * @generated + */ + EClass getCreateSubnetRequest(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getName() + * @see #getCreateSubnetRequest() + * @generated + */ + EAttribute getCreateSubnetRequest_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getNetwork_id Network id}'. + * + * + * @return the meta object for the attribute 'Network id'. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getNetwork_id() + * @see #getCreateSubnetRequest() + * @generated + */ + EAttribute getCreateSubnetRequest_Network_id(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getIp_version Ip version}'. + * + * + * @return the meta object for the attribute 'Ip version'. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getIp_version() + * @see #getCreateSubnetRequest() + * @generated + */ + EAttribute getCreateSubnetRequest_Ip_version(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getCidr Cidr}'. + * + * + * @return the meta object for the attribute 'Cidr'. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getCidr() + * @see #getCreateSubnetRequest() + * @generated + */ + EAttribute getCreateSubnetRequest_Cidr(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getAllocation_pools Allocation pools}'. + * + * + * @return the meta object for the containment reference list 'Allocation pools'. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getAllocation_pools() + * @see #getCreateSubnetRequest() + * @generated + */ + EReference getCreateSubnetRequest_Allocation_pools(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getDns_nameservers Dns nameservers}'. + * + * + * @return the meta object for the attribute list 'Dns nameservers'. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getDns_nameservers() + * @see #getCreateSubnetRequest() + * @generated + */ + EAttribute getCreateSubnetRequest_Dns_nameservers(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getEnable_dhcp Enable dhcp}'. + * + * + * @return the meta object for the attribute 'Enable dhcp'. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getEnable_dhcp() + * @see #getCreateSubnetRequest() + * @generated + */ + EAttribute getCreateSubnetRequest_Enable_dhcp(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getGateway_ip Gateway ip}'. + * + * + * @return the meta object for the attribute 'Gateway ip'. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getGateway_ip() + * @see #getCreateSubnetRequest() + * @generated + */ + EAttribute getCreateSubnetRequest_Gateway_ip(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest Create Router Request}'. + * + * + * @return the meta object for class 'Create Router Request'. + * @see org.openecomp.ncomp.openstack.neutron.CreateRouterRequest + * @generated + */ + EClass getCreateRouterRequest(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getName() + * @see #getCreateRouterRequest() + * @generated + */ + EAttribute getCreateRouterRequest_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getAdmin_state_up Admin state up}'. + * + * + * @return the meta object for the attribute 'Admin state up'. + * @see org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getAdmin_state_up() + * @see #getCreateRouterRequest() + * @generated + */ + EAttribute getCreateRouterRequest_Admin_state_up(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getShared Shared}'. + * + * + * @return the meta object for the attribute 'Shared'. + * @see org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getShared() + * @see #getCreateRouterRequest() + * @generated + */ + EAttribute getCreateRouterRequest_Shared(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getExternalNetwork External Network}'. + * + * + * @return the meta object for the attribute 'External Network'. + * @see org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getExternalNetwork() + * @see #getCreateRouterRequest() + * @generated + */ + EAttribute getCreateRouterRequest_ExternalNetwork(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getPorts Ports}'. + * + * + * @return the meta object for the attribute list 'Ports'. + * @see org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getPorts() + * @see #getCreateRouterRequest() + * @generated + */ + EAttribute getCreateRouterRequest_Ports(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getSubnets Subnets}'. + * + * + * @return the meta object for the attribute list 'Subnets'. + * @see org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getSubnets() + * @see #getCreateRouterRequest() + * @generated + */ + EAttribute getCreateRouterRequest_Subnets(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest Create Port Request}'. + * + * + * @return the meta object for class 'Create Port Request'. + * @see org.openecomp.ncomp.openstack.neutron.CreatePortRequest + * @generated + */ + EClass getCreatePortRequest(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getName() + * @see #getCreatePortRequest() + * @generated + */ + EAttribute getCreatePortRequest_Name(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getBindingVnicType Binding Vnic Type}'. + * + * + * @return the meta object for the attribute 'Binding Vnic Type'. + * @see org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getBindingVnicType() + * @see #getCreatePortRequest() + * @generated + */ + EAttribute getCreatePortRequest_BindingVnicType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getStatus Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @see org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getStatus() + * @see #getCreatePortRequest() + * @generated + */ + EAttribute getCreatePortRequest_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getAdmin_state_up Admin state up}'. + * + * + * @return the meta object for the attribute 'Admin state up'. + * @see org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getAdmin_state_up() + * @see #getCreatePortRequest() + * @generated + */ + EAttribute getCreatePortRequest_Admin_state_up(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getFixed_ips Fixed ips}'. + * + * + * @return the meta object for the containment reference list 'Fixed ips'. + * @see org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getFixed_ips() + * @see #getCreatePortRequest() + * @generated + */ + EReference getCreatePortRequest_Fixed_ips(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getMac_address Mac address}'. + * + * + * @return the meta object for the attribute 'Mac address'. + * @see org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getMac_address() + * @see #getCreatePortRequest() + * @generated + */ + EAttribute getCreatePortRequest_Mac_address(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getNetwork_id Network id}'. + * + * + * @return the meta object for the attribute 'Network id'. + * @see org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getNetwork_id() + * @see #getCreatePortRequest() + * @generated + */ + EAttribute getCreatePortRequest_Network_id(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + NeutronFactory getNeutronFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronServiceImpl Service}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronServiceImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronService() + * @generated + */ + EClass NEUTRON_SERVICE = eINSTANCE.getNeutronService(); + + /** + * The meta object literal for the 'Create Network' operation. + * + * + * @generated + */ + EOperation NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST = eINSTANCE.getNeutronService__CreateNetwork__CreateNetworkRequest(); + + /** + * The meta object literal for the 'Create Subnet' operation. + * + * + * @generated + */ + EOperation NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST = eINSTANCE.getNeutronService__CreateSubnet__CreateSubnetRequest(); + + /** + * The meta object literal for the 'Create Port' operation. + * + * + * @generated + */ + EOperation NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST = eINSTANCE.getNeutronService__CreatePort__CreatePortRequest(); + + /** + * The meta object literal for the 'Create Router' operation. + * + * + * @generated + */ + EOperation NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST = eINSTANCE.getNeutronService__CreateRouter__CreateRouterRequest(); + + /** + * The meta object literal for the 'Delete Network' operation. + * + * + * @generated + */ + EOperation NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING = eINSTANCE.getNeutronService__DeleteNetwork__String_String(); + + /** + * The meta object literal for the 'Delete Subnet' operation. + * + * + * @generated + */ + EOperation NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING = eINSTANCE.getNeutronService__DeleteSubnet__String_String(); + + /** + * The meta object literal for the 'Delete Port' operation. + * + * + * @generated + */ + EOperation NEUTRON_SERVICE___DELETE_PORT__STRING_STRING = eINSTANCE.getNeutronService__DeletePort__String_String(); + + /** + * The meta object literal for the 'Delete Router' operation. + * + * + * @generated + */ + EOperation NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING = eINSTANCE.getNeutronService__DeleteRouter__String_String(); + + /** + * The meta object literal for the 'Associate Floating Ip' operation. + * + * + * @generated + */ + EOperation NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING = eINSTANCE.getNeutronService__AssociateFloatingIp__String_String_String(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronObjectImpl Object}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronObjectImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronObject() + * @generated + */ + EClass NEUTRON_OBJECT = eINSTANCE.getNeutronObject(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl Network}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNetwork() + * @generated + */ + EClass NETWORK = eINSTANCE.getNetwork(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__ID = eINSTANCE.getNetwork_Id(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__NAME = eINSTANCE.getNetwork_Name(); + + /** + * The meta object literal for the 'Admin state up' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__ADMIN_STATE_UP = eINSTANCE.getNetwork_Admin_state_up(); + + /** + * The meta object literal for the 'Provider network type' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__PROVIDER_NETWORK_TYPE = eINSTANCE.getNetwork_Provider_network_type(); + + /** + * The meta object literal for the 'Provider physical network' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__PROVIDER_PHYSICAL_NETWORK = eINSTANCE.getNetwork_Provider_physical_network(); + + /** + * The meta object literal for the 'Provider segmentation id' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__PROVIDER_SEGMENTATION_ID = eINSTANCE.getNetwork_Provider_segmentation_id(); + + /** + * The meta object literal for the 'Router external' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__ROUTER_EXTERNAL = eINSTANCE.getNetwork_Router_external(); + + /** + * The meta object literal for the 'Shared' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__SHARED = eINSTANCE.getNetwork_Shared(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__STATUS = eINSTANCE.getNetwork_Status(); + + /** + * The meta object literal for the 'Subnets' attribute list feature. + * + * + * @generated + */ + EAttribute NETWORK__SUBNETS = eINSTANCE.getNetwork_Subnets(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute NETWORK__TENANT_ID = eINSTANCE.getNetwork_Tenant_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl Subnet}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getSubnet() + * @generated + */ + EClass SUBNET = eINSTANCE.getSubnet(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__ID = eINSTANCE.getSubnet_Id(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__NAME = eINSTANCE.getSubnet_Name(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__STATUS = eINSTANCE.getSubnet_Status(); + + /** + * The meta object literal for the 'Admin state up' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__ADMIN_STATE_UP = eINSTANCE.getSubnet_Admin_state_up(); + + /** + * The meta object literal for the 'Cidr' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__CIDR = eINSTANCE.getSubnet_Cidr(); + + /** + * The meta object literal for the 'Allocation pools' containment reference list feature. + * + * + * @generated + */ + EReference SUBNET__ALLOCATION_POOLS = eINSTANCE.getSubnet_Allocation_pools(); + + /** + * The meta object literal for the 'Dns nameservers' attribute list feature. + * + * + * @generated + */ + EAttribute SUBNET__DNS_NAMESERVERS = eINSTANCE.getSubnet_Dns_nameservers(); + + /** + * The meta object literal for the 'Enable dhcp' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__ENABLE_DHCP = eINSTANCE.getSubnet_Enable_dhcp(); + + /** + * The meta object literal for the 'Gateway ip' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__GATEWAY_IP = eINSTANCE.getSubnet_Gateway_ip(); + + /** + * The meta object literal for the 'Host routes' attribute list feature. + * + * + * @generated + */ + EAttribute SUBNET__HOST_ROUTES = eINSTANCE.getSubnet_Host_routes(); + + /** + * The meta object literal for the 'Ip version' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__IP_VERSION = eINSTANCE.getSubnet_Ip_version(); + + /** + * The meta object literal for the 'Network id' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__NETWORK_ID = eINSTANCE.getSubnet_Network_id(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute SUBNET__TENANT_ID = eINSTANCE.getSubnet_Tenant_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl Allocation Pool}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getAllocationPool() + * @generated + */ + EClass ALLOCATION_POOL = eINSTANCE.getAllocationPool(); + + /** + * The meta object literal for the 'Start' attribute feature. + * + * + * @generated + */ + EAttribute ALLOCATION_POOL__START = eINSTANCE.getAllocationPool_Start(); + + /** + * The meta object literal for the 'End' attribute feature. + * + * + * @generated + */ + EAttribute ALLOCATION_POOL__END = eINSTANCE.getAllocationPool_End(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl Router}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.RouterImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getRouter() + * @generated + */ + EClass ROUTER = eINSTANCE.getRouter(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute ROUTER__ID = eINSTANCE.getRouter_Id(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute ROUTER__NAME = eINSTANCE.getRouter_Name(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute ROUTER__STATUS = eINSTANCE.getRouter_Status(); + + /** + * The meta object literal for the 'Admin state up' attribute feature. + * + * + * @generated + */ + EAttribute ROUTER__ADMIN_STATE_UP = eINSTANCE.getRouter_Admin_state_up(); + + /** + * The meta object literal for the 'External gateway info' containment reference feature. + * + * + * @generated + */ + EReference ROUTER__EXTERNAL_GATEWAY_INFO = eINSTANCE.getRouter_External_gateway_info(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute ROUTER__TENANT_ID = eINSTANCE.getRouter_Tenant_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl Port}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.PortImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getPort() + * @generated + */ + EClass PORT = eINSTANCE.getPort(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute PORT__ID = eINSTANCE.getPort_Id(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute PORT__NAME = eINSTANCE.getPort_Name(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute PORT__STATUS = eINSTANCE.getPort_Status(); + + /** + * The meta object literal for the 'Admin state up' attribute feature. + * + * + * @generated + */ + EAttribute PORT__ADMIN_STATE_UP = eINSTANCE.getPort_Admin_state_up(); + + /** + * The meta object literal for the 'External gateway info' containment reference feature. + * + * + * @generated + */ + EReference PORT__EXTERNAL_GATEWAY_INFO = eINSTANCE.getPort_External_gateway_info(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute PORT__TENANT_ID = eINSTANCE.getPort_Tenant_id(); + + /** + * The meta object literal for the 'Allowed address pairs' attribute list feature. + * + * + * @generated + */ + EAttribute PORT__ALLOWED_ADDRESS_PAIRS = eINSTANCE.getPort_Allowed_address_pairs(); + + /** + * The meta object literal for the 'Binding host id' attribute feature. + * + * + * @generated + */ + EAttribute PORT__BINDING_HOST_ID = eINSTANCE.getPort_Binding_host_id(); + + /** + * The meta object literal for the 'Binding profile' containment reference feature. + * + * + * @generated + */ + EReference PORT__BINDING_PROFILE = eINSTANCE.getPort_Binding_profile(); + + /** + * The meta object literal for the 'Binding vif details' containment reference feature. + * + * + * @generated + */ + EReference PORT__BINDING_VIF_DETAILS = eINSTANCE.getPort_Binding_vif_details(); + + /** + * The meta object literal for the 'Binding vif type' attribute feature. + * + * + * @generated + */ + EAttribute PORT__BINDING_VIF_TYPE = eINSTANCE.getPort_Binding_vif_type(); + + /** + * The meta object literal for the 'Binding vnic type' attribute feature. + * + * + * @generated + */ + EAttribute PORT__BINDING_VNIC_TYPE = eINSTANCE.getPort_Binding_vnic_type(); + + /** + * The meta object literal for the 'Device id' attribute feature. + * + * + * @generated + */ + EAttribute PORT__DEVICE_ID = eINSTANCE.getPort_Device_id(); + + /** + * The meta object literal for the 'Device owner' attribute feature. + * + * + * @generated + */ + EAttribute PORT__DEVICE_OWNER = eINSTANCE.getPort_Device_owner(); + + /** + * The meta object literal for the 'Extra dhcp opts' attribute list feature. + * + * + * @generated + */ + EAttribute PORT__EXTRA_DHCP_OPTS = eINSTANCE.getPort_Extra_dhcp_opts(); + + /** + * The meta object literal for the 'Fixed ips' containment reference list feature. + * + * + * @generated + */ + EReference PORT__FIXED_IPS = eINSTANCE.getPort_Fixed_ips(); + + /** + * The meta object literal for the 'Mac address' attribute feature. + * + * + * @generated + */ + EAttribute PORT__MAC_ADDRESS = eINSTANCE.getPort_Mac_address(); + + /** + * The meta object literal for the 'Network id' attribute feature. + * + * + * @generated + */ + EAttribute PORT__NETWORK_ID = eINSTANCE.getPort_Network_id(); + + /** + * The meta object literal for the 'Security groups' attribute list feature. + * + * + * @generated + */ + EAttribute PORT__SECURITY_GROUPS = eINSTANCE.getPort_Security_groups(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl Security Group}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronSecurityGroup() + * @generated + */ + EClass NEUTRON_SECURITY_GROUP = eINSTANCE.getNeutronSecurityGroup(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_GROUP__ID = eINSTANCE.getNeutronSecurityGroup_Id(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_GROUP__NAME = eINSTANCE.getNeutronSecurityGroup_Name(); + + /** + * The meta object literal for the 'Description' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_GROUP__DESCRIPTION = eINSTANCE.getNeutronSecurityGroup_Description(); + + /** + * The meta object literal for the 'Security group rules' containment reference list feature. + * + * + * @generated + */ + EReference NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES = eINSTANCE.getNeutronSecurityGroup_Security_group_rules(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_GROUP__TENANT_ID = eINSTANCE.getNeutronSecurityGroup_Tenant_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl Security Rule}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronSecurityRule() + * @generated + */ + EClass NEUTRON_SECURITY_RULE = eINSTANCE.getNeutronSecurityRule(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__ID = eINSTANCE.getNeutronSecurityRule_Id(); + + /** + * The meta object literal for the 'Direction' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__DIRECTION = eINSTANCE.getNeutronSecurityRule_Direction(); + + /** + * The meta object literal for the 'Ethertype' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__ETHERTYPE = eINSTANCE.getNeutronSecurityRule_Ethertype(); + + /** + * The meta object literal for the 'Port range min' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__PORT_RANGE_MIN = eINSTANCE.getNeutronSecurityRule_Port_range_min(); + + /** + * The meta object literal for the 'Port range max' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__PORT_RANGE_MAX = eINSTANCE.getNeutronSecurityRule_Port_range_max(); + + /** + * The meta object literal for the 'Protocol' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__PROTOCOL = eINSTANCE.getNeutronSecurityRule_Protocol(); + + /** + * The meta object literal for the 'Remote group id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID = eINSTANCE.getNeutronSecurityRule_Remote_group_id(); + + /** + * The meta object literal for the 'Remote ip prefix' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX = eINSTANCE.getNeutronSecurityRule_Remote_ip_prefix(); + + /** + * The meta object literal for the 'Security group id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID = eINSTANCE.getNeutronSecurityRule_Security_group_id(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__TENANT_ID = eINSTANCE.getNeutronSecurityRule_Tenant_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl Floating Ip}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronFloatingIp() + * @generated + */ + EClass NEUTRON_FLOATING_IP = eINSTANCE.getNeutronFloatingIp(); + + /** + * The meta object literal for the 'Id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__ID = eINSTANCE.getNeutronFloatingIp_Id(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__NAME = eINSTANCE.getNeutronFloatingIp_Name(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__STATUS = eINSTANCE.getNeutronFloatingIp_Status(); + + /** + * The meta object literal for the 'Floating network id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID = eINSTANCE.getNeutronFloatingIp_Floating_network_id(); + + /** + * The meta object literal for the 'Router id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__ROUTER_ID = eINSTANCE.getNeutronFloatingIp_Router_id(); + + /** + * The meta object literal for the 'Fixed ip address' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS = eINSTANCE.getNeutronFloatingIp_Fixed_ip_address(); + + /** + * The meta object literal for the 'Floating ip address' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS = eINSTANCE.getNeutronFloatingIp_Floating_ip_address(); + + /** + * The meta object literal for the 'Tenant id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__TENANT_ID = eINSTANCE.getNeutronFloatingIp_Tenant_id(); + + /** + * The meta object literal for the 'Port id' attribute feature. + * + * + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__PORT_ID = eINSTANCE.getNeutronFloatingIp_Port_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.BindingProfileImpl Binding Profile}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.BindingProfileImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getBindingProfile() + * @generated + */ + EClass BINDING_PROFILE = eINSTANCE.getBindingProfile(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl Binding Vif Detail}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getBindingVifDetail() + * @generated + */ + EClass BINDING_VIF_DETAIL = eINSTANCE.getBindingVifDetail(); + + /** + * The meta object literal for the 'Ovs hybrid plug' attribute feature. + * + * + * @generated + */ + EAttribute BINDING_VIF_DETAIL__OVS_HYBRID_PLUG = eINSTANCE.getBindingVifDetail_Ovs_hybrid_plug(); + + /** + * The meta object literal for the 'Port filter' attribute feature. + * + * + * @generated + */ + EAttribute BINDING_VIF_DETAIL__PORT_FILTER = eINSTANCE.getBindingVifDetail_Port_filter(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl Fixed Ip}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getFixedIp() + * @generated + */ + EClass FIXED_IP = eINSTANCE.getFixedIp(); + + /** + * The meta object literal for the 'Ip address' attribute feature. + * + * + * @generated + */ + EAttribute FIXED_IP__IP_ADDRESS = eINSTANCE.getFixedIp_Ip_address(); + + /** + * The meta object literal for the 'Subnet id' attribute feature. + * + * + * @generated + */ + EAttribute FIXED_IP__SUBNET_ID = eINSTANCE.getFixedIp_Subnet_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl External Gateway}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getExternalGateway() + * @generated + */ + EClass EXTERNAL_GATEWAY = eINSTANCE.getExternalGateway(); + + /** + * The meta object literal for the 'Enable snat' attribute feature. + * + * + * @generated + */ + EAttribute EXTERNAL_GATEWAY__ENABLE_SNAT = eINSTANCE.getExternalGateway_Enable_snat(); + + /** + * The meta object literal for the 'Network id' attribute feature. + * + * + * @generated + */ + EAttribute EXTERNAL_GATEWAY__NETWORK_ID = eINSTANCE.getExternalGateway_Network_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronRequestImpl Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getNeutronRequest() + * @generated + */ + EClass NEUTRON_REQUEST = eINSTANCE.getNeutronRequest(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl Create Network Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getCreateNetworkRequest() + * @generated + */ + EClass CREATE_NETWORK_REQUEST = eINSTANCE.getCreateNetworkRequest(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__NAME = eINSTANCE.getCreateNetworkRequest_Name(); + + /** + * The meta object literal for the 'Provider Network Type' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE = eINSTANCE.getCreateNetworkRequest_ProviderNetworkType(); + + /** + * The meta object literal for the 'Provider Physical Network' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK = eINSTANCE.getCreateNetworkRequest_ProviderPhysicalNetwork(); + + /** + * The meta object literal for the 'Provider Segmentation Id' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID = eINSTANCE.getCreateNetworkRequest_ProviderSegmentationId(); + + /** + * The meta object literal for the 'Admin state up' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__ADMIN_STATE_UP = eINSTANCE.getCreateNetworkRequest_Admin_state_up(); + + /** + * The meta object literal for the 'Shared' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__SHARED = eINSTANCE.getCreateNetworkRequest_Shared(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl Create Subnet Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getCreateSubnetRequest() + * @generated + */ + EClass CREATE_SUBNET_REQUEST = eINSTANCE.getCreateSubnetRequest(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__NAME = eINSTANCE.getCreateSubnetRequest_Name(); + + /** + * The meta object literal for the 'Network id' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__NETWORK_ID = eINSTANCE.getCreateSubnetRequest_Network_id(); + + /** + * The meta object literal for the 'Ip version' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__IP_VERSION = eINSTANCE.getCreateSubnetRequest_Ip_version(); + + /** + * The meta object literal for the 'Cidr' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__CIDR = eINSTANCE.getCreateSubnetRequest_Cidr(); + + /** + * The meta object literal for the 'Allocation pools' containment reference list feature. + * + * + * @generated + */ + EReference CREATE_SUBNET_REQUEST__ALLOCATION_POOLS = eINSTANCE.getCreateSubnetRequest_Allocation_pools(); + + /** + * The meta object literal for the 'Dns nameservers' attribute list feature. + * + * + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__DNS_NAMESERVERS = eINSTANCE.getCreateSubnetRequest_Dns_nameservers(); + + /** + * The meta object literal for the 'Enable dhcp' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__ENABLE_DHCP = eINSTANCE.getCreateSubnetRequest_Enable_dhcp(); + + /** + * The meta object literal for the 'Gateway ip' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__GATEWAY_IP = eINSTANCE.getCreateSubnetRequest_Gateway_ip(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl Create Router Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getCreateRouterRequest() + * @generated + */ + EClass CREATE_ROUTER_REQUEST = eINSTANCE.getCreateRouterRequest(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__NAME = eINSTANCE.getCreateRouterRequest_Name(); + + /** + * The meta object literal for the 'Admin state up' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__ADMIN_STATE_UP = eINSTANCE.getCreateRouterRequest_Admin_state_up(); + + /** + * The meta object literal for the 'Shared' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__SHARED = eINSTANCE.getCreateRouterRequest_Shared(); + + /** + * The meta object literal for the 'External Network' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK = eINSTANCE.getCreateRouterRequest_ExternalNetwork(); + + /** + * The meta object literal for the 'Ports' attribute list feature. + * + * + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__PORTS = eINSTANCE.getCreateRouterRequest_Ports(); + + /** + * The meta object literal for the 'Subnets' attribute list feature. + * + * + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__SUBNETS = eINSTANCE.getCreateRouterRequest_Subnets(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl Create Port Request}' class. + * + * + * @see org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl + * @see org.openecomp.ncomp.openstack.neutron.impl.NeutronPackageImpl#getCreatePortRequest() + * @generated + */ + EClass CREATE_PORT_REQUEST = eINSTANCE.getCreatePortRequest(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_PORT_REQUEST__NAME = eINSTANCE.getCreatePortRequest_Name(); + + /** + * The meta object literal for the 'Binding Vnic Type' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_PORT_REQUEST__BINDING_VNIC_TYPE = eINSTANCE.getCreatePortRequest_BindingVnicType(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_PORT_REQUEST__STATUS = eINSTANCE.getCreatePortRequest_Status(); + + /** + * The meta object literal for the 'Admin state up' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_PORT_REQUEST__ADMIN_STATE_UP = eINSTANCE.getCreatePortRequest_Admin_state_up(); + + /** + * The meta object literal for the 'Fixed ips' containment reference list feature. + * + * + * @generated + */ + EReference CREATE_PORT_REQUEST__FIXED_IPS = eINSTANCE.getCreatePortRequest_Fixed_ips(); + + /** + * The meta object literal for the 'Mac address' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_PORT_REQUEST__MAC_ADDRESS = eINSTANCE.getCreatePortRequest_Mac_address(); + + /** + * The meta object literal for the 'Network id' attribute feature. + * + * + * @generated + */ + EAttribute CREATE_PORT_REQUEST__NETWORK_ID = eINSTANCE.getCreatePortRequest_Network_id(); + + } + +} //NeutronPackage diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronRequest.java new file mode 100644 index 0000000..cc822f6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronRequest.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +/** + * + * A representation of the model object 'Request'. + * + * + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronRequest() + * @model abstract="true" + * @generated + */ +public interface NeutronRequest extends OpenStackRequest { +} // NeutronRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityGroup.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityGroup.java new file mode 100644 index 0000000..28a36f8 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityGroup.java @@ -0,0 +1,169 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Security Group'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getDescription Description}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getSecurity_group_rules Security group rules}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getTenant_id Tenant id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup() + * @model + * @generated + */ +public interface NeutronSecurityGroup extends NeutronObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Description' attribute. + * + *

+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Security group rules' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule}. + * + *

+ * If the meaning of the 'Security group rules' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Security group rules' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Security_group_rules() + * @model containment="true" + * @generated + */ + EList getSecurity_group_rules(); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // NeutronSecurityGroup diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityRule.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityRule.java new file mode 100644 index 0000000..94fa065 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityRule.java @@ -0,0 +1,313 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + + +/** + * + * A representation of the model object 'Security Rule'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getDirection Direction}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getEthertype Ethertype}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_min Port range min}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_max Port range max}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getProtocol Protocol}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_group_id Remote group id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_ip_prefix Remote ip prefix}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getSecurity_group_id Security group id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getTenant_id Tenant id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule() + * @model + * @generated + */ +public interface NeutronSecurityRule extends NeutronObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Direction' attribute. + * + *

+ * If the meaning of the 'Direction' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Direction' attribute. + * @see #setDirection(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Direction() + * @model unique="false" + * @generated + */ + String getDirection(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getDirection Direction}' attribute. + * + * + * @param value the new value of the 'Direction' attribute. + * @see #getDirection() + * @generated + */ + void setDirection(String value); + + /** + * Returns the value of the 'Ethertype' attribute. + * + *

+ * If the meaning of the 'Ethertype' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ethertype' attribute. + * @see #setEthertype(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Ethertype() + * @model unique="false" + * @generated + */ + String getEthertype(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getEthertype Ethertype}' attribute. + * + * + * @param value the new value of the 'Ethertype' attribute. + * @see #getEthertype() + * @generated + */ + void setEthertype(String value); + + /** + * Returns the value of the 'Port range min' attribute. + * + *

+ * If the meaning of the 'Port range min' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Port range min' attribute. + * @see #setPort_range_min(Integer) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Port_range_min() + * @model unique="false" + * @generated + */ + Integer getPort_range_min(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_min Port range min}' attribute. + * + * + * @param value the new value of the 'Port range min' attribute. + * @see #getPort_range_min() + * @generated + */ + void setPort_range_min(Integer value); + + /** + * Returns the value of the 'Port range max' attribute. + * + *

+ * If the meaning of the 'Port range max' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Port range max' attribute. + * @see #setPort_range_max(Integer) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Port_range_max() + * @model unique="false" + * @generated + */ + Integer getPort_range_max(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_max Port range max}' attribute. + * + * + * @param value the new value of the 'Port range max' attribute. + * @see #getPort_range_max() + * @generated + */ + void setPort_range_max(Integer value); + + /** + * Returns the value of the 'Protocol' attribute. + * + *

+ * If the meaning of the 'Protocol' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Protocol' attribute. + * @see #setProtocol(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Protocol() + * @model unique="false" + * @generated + */ + String getProtocol(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getProtocol Protocol}' attribute. + * + * + * @param value the new value of the 'Protocol' attribute. + * @see #getProtocol() + * @generated + */ + void setProtocol(String value); + + /** + * Returns the value of the 'Remote group id' attribute. + * + *

+ * If the meaning of the 'Remote group id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Remote group id' attribute. + * @see #setRemote_group_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Remote_group_id() + * @model unique="false" + * @generated + */ + String getRemote_group_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_group_id Remote group id}' attribute. + * + * + * @param value the new value of the 'Remote group id' attribute. + * @see #getRemote_group_id() + * @generated + */ + void setRemote_group_id(String value); + + /** + * Returns the value of the 'Remote ip prefix' attribute. + * + *

+ * If the meaning of the 'Remote ip prefix' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Remote ip prefix' attribute. + * @see #setRemote_ip_prefix(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Remote_ip_prefix() + * @model unique="false" + * @generated + */ + String getRemote_ip_prefix(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_ip_prefix Remote ip prefix}' attribute. + * + * + * @param value the new value of the 'Remote ip prefix' attribute. + * @see #getRemote_ip_prefix() + * @generated + */ + void setRemote_ip_prefix(String value); + + /** + * Returns the value of the 'Security group id' attribute. + * + *

+ * If the meaning of the 'Security group id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Security group id' attribute. + * @see #setSecurity_group_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Security_group_id() + * @model unique="false" + * @generated + */ + String getSecurity_group_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getSecurity_group_id Security group id}' attribute. + * + * + * @param value the new value of the 'Security group id' attribute. + * @see #getSecurity_group_id() + * @generated + */ + void setSecurity_group_id(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // NeutronSecurityRule diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronService.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronService.java new file mode 100644 index 0000000..128c596 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronService.java @@ -0,0 +1,111 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Service'. + * + * + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronService() + * @model abstract="true" + * @generated + */ +public interface NeutronService extends EObject { + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + Network createNetwork(CreateNetworkRequest request); + + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + Subnet createSubnet(CreateSubnetRequest request); + + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + Port createPort(CreatePortRequest request); + + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + Router createRouter(CreateRouterRequest request); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteNetwork(String projectName, String name); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteSubnet(String projectName, String name); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deletePort(String projectName, String name); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteRouter(String projectName, String name); + + /** + * + * + * @model projectNameUnique="false" ipIdUnique="false" portIdUnique="false" + * @generated + */ + void associateFloatingIp(String projectName, String ipId, String portId); + +} // NeutronService diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Port.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Port.java new file mode 100644 index 0000000..ca409f1 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Port.java @@ -0,0 +1,517 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Port'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getExternal_gateway_info External gateway info}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getAllowed_address_pairs Allowed address pairs}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_host_id Binding host id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_profile Binding profile}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_details Binding vif details}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_type Binding vif type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vnic_type Binding vnic type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_id Device id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_owner Device owner}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getExtra_dhcp_opts Extra dhcp opts}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getFixed_ips Fixed ips}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getMac_address Mac address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getNetwork_id Network id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Port#getSecurity_groups Security groups}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort() + * @model + * @generated + */ +public interface Port extends NeutronObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *

+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *

+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'External gateway info' containment reference. + * + *

+ * If the meaning of the 'External gateway info' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'External gateway info' containment reference. + * @see #setExternal_gateway_info(ExternalGateway) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_External_gateway_info() + * @model containment="true" + * @generated + */ + ExternalGateway getExternal_gateway_info(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getExternal_gateway_info External gateway info}' containment reference. + * + * + * @param value the new value of the 'External gateway info' containment reference. + * @see #getExternal_gateway_info() + * @generated + */ + void setExternal_gateway_info(ExternalGateway value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'Allowed address pairs' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Allowed address pairs' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Allowed address pairs' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Allowed_address_pairs() + * @model unique="false" + * @generated + */ + EList getAllowed_address_pairs(); + + /** + * Returns the value of the 'Binding host id' attribute. + * + *

+ * If the meaning of the 'Binding host id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Binding host id' attribute. + * @see #setBinding_host_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_host_id() + * @model unique="false" + * @generated + */ + String getBinding_host_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_host_id Binding host id}' attribute. + * + * + * @param value the new value of the 'Binding host id' attribute. + * @see #getBinding_host_id() + * @generated + */ + void setBinding_host_id(String value); + + /** + * Returns the value of the 'Binding profile' containment reference. + * + *

+ * If the meaning of the 'Binding profile' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Binding profile' containment reference. + * @see #setBinding_profile(BindingProfile) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_profile() + * @model containment="true" + * @generated + */ + BindingProfile getBinding_profile(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_profile Binding profile}' containment reference. + * + * + * @param value the new value of the 'Binding profile' containment reference. + * @see #getBinding_profile() + * @generated + */ + void setBinding_profile(BindingProfile value); + + /** + * Returns the value of the 'Binding vif details' containment reference. + * + *

+ * If the meaning of the 'Binding vif details' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Binding vif details' containment reference. + * @see #setBinding_vif_details(BindingVifDetail) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_vif_details() + * @model containment="true" + * @generated + */ + BindingVifDetail getBinding_vif_details(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_details Binding vif details}' containment reference. + * + * + * @param value the new value of the 'Binding vif details' containment reference. + * @see #getBinding_vif_details() + * @generated + */ + void setBinding_vif_details(BindingVifDetail value); + + /** + * Returns the value of the 'Binding vif type' attribute. + * + *

+ * If the meaning of the 'Binding vif type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Binding vif type' attribute. + * @see #setBinding_vif_type(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_vif_type() + * @model unique="false" + * @generated + */ + String getBinding_vif_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_type Binding vif type}' attribute. + * + * + * @param value the new value of the 'Binding vif type' attribute. + * @see #getBinding_vif_type() + * @generated + */ + void setBinding_vif_type(String value); + + /** + * Returns the value of the 'Binding vnic type' attribute. + * + *

+ * If the meaning of the 'Binding vnic type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Binding vnic type' attribute. + * @see #setBinding_vnic_type(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_vnic_type() + * @model unique="false" + * @generated + */ + String getBinding_vnic_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vnic_type Binding vnic type}' attribute. + * + * + * @param value the new value of the 'Binding vnic type' attribute. + * @see #getBinding_vnic_type() + * @generated + */ + void setBinding_vnic_type(String value); + + /** + * Returns the value of the 'Device id' attribute. + * + *

+ * If the meaning of the 'Device id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Device id' attribute. + * @see #setDevice_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Device_id() + * @model unique="false" + * @generated + */ + String getDevice_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_id Device id}' attribute. + * + * + * @param value the new value of the 'Device id' attribute. + * @see #getDevice_id() + * @generated + */ + void setDevice_id(String value); + + /** + * Returns the value of the 'Device owner' attribute. + * + *

+ * If the meaning of the 'Device owner' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Device owner' attribute. + * @see #setDevice_owner(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Device_owner() + * @model unique="false" + * @generated + */ + String getDevice_owner(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_owner Device owner}' attribute. + * + * + * @param value the new value of the 'Device owner' attribute. + * @see #getDevice_owner() + * @generated + */ + void setDevice_owner(String value); + + /** + * Returns the value of the 'Extra dhcp opts' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Extra dhcp opts' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Extra dhcp opts' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Extra_dhcp_opts() + * @model unique="false" + * @generated + */ + EList getExtra_dhcp_opts(); + + /** + * Returns the value of the 'Fixed ips' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.FixedIp}. + * + *

+ * If the meaning of the 'Fixed ips' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Fixed ips' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Fixed_ips() + * @model containment="true" + * @generated + */ + EList getFixed_ips(); + + /** + * Returns the value of the 'Mac address' attribute. + * + *

+ * If the meaning of the 'Mac address' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Mac address' attribute. + * @see #setMac_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Mac_address() + * @model unique="false" + * @generated + */ + String getMac_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getMac_address Mac address}' attribute. + * + * + * @param value the new value of the 'Mac address' attribute. + * @see #getMac_address() + * @generated + */ + void setMac_address(String value); + + /** + * Returns the value of the 'Network id' attribute. + * + *

+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Network_id() + * @model unique="false" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + + /** + * Returns the value of the 'Security groups' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Security groups' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Security groups' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Security_groups() + * @model unique="false" + * @generated + */ + EList getSecurity_groups(); + +} // Port diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Router.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Router.java new file mode 100644 index 0000000..aa7b0ab --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Router.java @@ -0,0 +1,205 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + + +/** + * + * A representation of the model object 'Router'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.Router#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Router#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Router#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Router#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Router#getExternal_gateway_info External gateway info}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Router#getTenant_id Tenant id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter() + * @model + * @generated + */ +public interface Router extends NeutronObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *

+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *

+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'External gateway info' containment reference. + * + *

+ * If the meaning of the 'External gateway info' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'External gateway info' containment reference. + * @see #setExternal_gateway_info(ExternalGateway) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_External_gateway_info() + * @model containment="true" + * @generated + */ + ExternalGateway getExternal_gateway_info(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getExternal_gateway_info External gateway info}' containment reference. + * + * + * @param value the new value of the 'External gateway info' containment reference. + * @see #getExternal_gateway_info() + * @generated + */ + void setExternal_gateway_info(ExternalGateway value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // Router diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Subnet.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Subnet.java new file mode 100644 index 0000000..01f824b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Subnet.java @@ -0,0 +1,365 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Subnet'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getCidr Cidr}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getAllocation_pools Allocation pools}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getDns_nameservers Dns nameservers}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getEnable_dhcp Enable dhcp}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getGateway_ip Gateway ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getHost_routes Host routes}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getIp_version Ip version}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getNetwork_id Network id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.Subnet#getTenant_id Tenant id}
  • + *
+ *

+ * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet() + * @model + * @generated + */ +public interface Subnet extends NeutronObject { + /** + * Returns the value of the 'Id' attribute. + * + *

+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *

+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *

+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Cidr' attribute. + * + *

+ * If the meaning of the 'Cidr' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Cidr' attribute. + * @see #setCidr(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Cidr() + * @model unique="false" + * @generated + */ + String getCidr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getCidr Cidr}' attribute. + * + * + * @param value the new value of the 'Cidr' attribute. + * @see #getCidr() + * @generated + */ + void setCidr(String value); + + /** + * Returns the value of the 'Allocation pools' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.AllocationPool}. + * + *

+ * If the meaning of the 'Allocation pools' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Allocation pools' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Allocation_pools() + * @model containment="true" + * @generated + */ + EList getAllocation_pools(); + + /** + * Returns the value of the 'Dns nameservers' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Dns nameservers' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Dns nameservers' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Dns_nameservers() + * @model unique="false" + * @generated + */ + EList getDns_nameservers(); + + /** + * Returns the value of the 'Enable dhcp' attribute. + * + *

+ * If the meaning of the 'Enable dhcp' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Enable dhcp' attribute. + * @see #setEnable_dhcp(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Enable_dhcp() + * @model unique="false" + * @generated + */ + Boolean getEnable_dhcp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getEnable_dhcp Enable dhcp}' attribute. + * + * + * @param value the new value of the 'Enable dhcp' attribute. + * @see #getEnable_dhcp() + * @generated + */ + void setEnable_dhcp(Boolean value); + + /** + * Returns the value of the 'Gateway ip' attribute. + * + *

+ * If the meaning of the 'Gateway ip' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Gateway ip' attribute. + * @see #setGateway_ip(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Gateway_ip() + * @model unique="false" + * @generated + */ + String getGateway_ip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getGateway_ip Gateway ip}' attribute. + * + * + * @param value the new value of the 'Gateway ip' attribute. + * @see #getGateway_ip() + * @generated + */ + void setGateway_ip(String value); + + /** + * Returns the value of the 'Host routes' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

+ * If the meaning of the 'Host routes' attribute list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Host routes' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Host_routes() + * @model unique="false" + * @generated + */ + EList getHost_routes(); + + /** + * Returns the value of the 'Ip version' attribute. + * + *

+ * If the meaning of the 'Ip version' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Ip version' attribute. + * @see #setIp_version(Integer) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Ip_version() + * @model unique="false" + * @generated + */ + Integer getIp_version(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getIp_version Ip version}' attribute. + * + * + * @param value the new value of the 'Ip version' attribute. + * @see #getIp_version() + * @generated + */ + void setIp_version(Integer value); + + /** + * Returns the value of the 'Network id' attribute. + * + *

+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Network_id() + * @model unique="false" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *

+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // Subnet diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java new file mode 100644 index 0000000..2bb19b7 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.AllocationPool; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Allocation Pool'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl#getStart Start}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl#getEnd End}
  • + *
+ *

+ * + * @generated + */ +public class AllocationPoolImpl extends MinimalEObjectImpl.Container implements AllocationPool { + /** + * The default value of the '{@link #getStart() Start}' attribute. + * + * + * @see #getStart() + * @generated + * @ordered + */ + protected static final String START_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStart() Start}' attribute. + * + * + * @see #getStart() + * @generated + * @ordered + */ + protected String start = START_EDEFAULT; + + /** + * The default value of the '{@link #getEnd() End}' attribute. + * + * + * @see #getEnd() + * @generated + * @ordered + */ + protected static final String END_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnd() End}' attribute. + * + * + * @see #getEnd() + * @generated + * @ordered + */ + protected String end = END_EDEFAULT; + + /** + * + * + * @generated + */ + protected AllocationPoolImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.ALLOCATION_POOL; + } + + /** + * + * + * @generated + */ + public String getStart() { + return start; + } + + /** + * + * + * @generated + */ + public void setStart(String newStart) { + String oldStart = start; + start = newStart; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ALLOCATION_POOL__START, oldStart, start)); + } + + /** + * + * + * @generated + */ + public String getEnd() { + return end; + } + + /** + * + * + * @generated + */ + public void setEnd(String newEnd) { + String oldEnd = end; + end = newEnd; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ALLOCATION_POOL__END, oldEnd, end)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.ALLOCATION_POOL__START: + return getStart(); + case NeutronPackage.ALLOCATION_POOL__END: + return getEnd(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.ALLOCATION_POOL__START: + setStart((String)newValue); + return; + case NeutronPackage.ALLOCATION_POOL__END: + setEnd((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.ALLOCATION_POOL__START: + setStart(START_EDEFAULT); + return; + case NeutronPackage.ALLOCATION_POOL__END: + setEnd(END_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.ALLOCATION_POOL__START: + return START_EDEFAULT == null ? start != null : !START_EDEFAULT.equals(start); + case NeutronPackage.ALLOCATION_POOL__END: + return END_EDEFAULT == null ? end != null : !END_EDEFAULT.equals(end); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (start: "); + result.append(start); + result.append(", end: "); + result.append(end); + result.append(')'); + return result.toString(); + } + +} //AllocationPoolImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingProfileImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingProfileImpl.java new file mode 100644 index 0000000..6c0f7b2 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingProfileImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.BindingProfile; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Binding Profile'. + * + *

+ *

+ * + * @generated + */ +public class BindingProfileImpl extends MinimalEObjectImpl.Container implements BindingProfile { + /** + * + * + * @generated + */ + protected BindingProfileImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.BINDING_PROFILE; + } + +} //BindingProfileImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java new file mode 100644 index 0000000..32770b5 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.BindingVifDetail; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Binding Vif Detail'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl#getOvs_hybrid_plug Ovs hybrid plug}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl#getPort_filter Port filter}
  • + *
+ *

+ * + * @generated + */ +public class BindingVifDetailImpl extends MinimalEObjectImpl.Container implements BindingVifDetail { + /** + * The default value of the '{@link #getOvs_hybrid_plug() Ovs hybrid plug}' attribute. + * + * + * @see #getOvs_hybrid_plug() + * @generated + * @ordered + */ + protected static final Boolean OVS_HYBRID_PLUG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOvs_hybrid_plug() Ovs hybrid plug}' attribute. + * + * + * @see #getOvs_hybrid_plug() + * @generated + * @ordered + */ + protected Boolean ovs_hybrid_plug = OVS_HYBRID_PLUG_EDEFAULT; + + /** + * The default value of the '{@link #getPort_filter() Port filter}' attribute. + * + * + * @see #getPort_filter() + * @generated + * @ordered + */ + protected static final Boolean PORT_FILTER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPort_filter() Port filter}' attribute. + * + * + * @see #getPort_filter() + * @generated + * @ordered + */ + protected Boolean port_filter = PORT_FILTER_EDEFAULT; + + /** + * + * + * @generated + */ + protected BindingVifDetailImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.BINDING_VIF_DETAIL; + } + + /** + * + * + * @generated + */ + public Boolean getOvs_hybrid_plug() { + return ovs_hybrid_plug; + } + + /** + * + * + * @generated + */ + public void setOvs_hybrid_plug(Boolean newOvs_hybrid_plug) { + Boolean oldOvs_hybrid_plug = ovs_hybrid_plug; + ovs_hybrid_plug = newOvs_hybrid_plug; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG, oldOvs_hybrid_plug, ovs_hybrid_plug)); + } + + /** + * + * + * @generated + */ + public Boolean getPort_filter() { + return port_filter; + } + + /** + * + * + * @generated + */ + public void setPort_filter(Boolean newPort_filter) { + Boolean oldPort_filter = port_filter; + port_filter = newPort_filter; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER, oldPort_filter, port_filter)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG: + return getOvs_hybrid_plug(); + case NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER: + return getPort_filter(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG: + setOvs_hybrid_plug((Boolean)newValue); + return; + case NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER: + setPort_filter((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG: + setOvs_hybrid_plug(OVS_HYBRID_PLUG_EDEFAULT); + return; + case NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER: + setPort_filter(PORT_FILTER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.BINDING_VIF_DETAIL__OVS_HYBRID_PLUG: + return OVS_HYBRID_PLUG_EDEFAULT == null ? ovs_hybrid_plug != null : !OVS_HYBRID_PLUG_EDEFAULT.equals(ovs_hybrid_plug); + case NeutronPackage.BINDING_VIF_DETAIL__PORT_FILTER: + return PORT_FILTER_EDEFAULT == null ? port_filter != null : !PORT_FILTER_EDEFAULT.equals(port_filter); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (ovs_hybrid_plug: "); + result.append(ovs_hybrid_plug); + result.append(", port_filter: "); + result.append(port_filter); + result.append(')'); + return result.toString(); + } + +} //BindingVifDetailImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateNetworkRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateNetworkRequestImpl.java new file mode 100644 index 0000000..6daf134 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateNetworkRequestImpl.java @@ -0,0 +1,453 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Create Network Request'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getProviderNetworkType Provider Network Type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getProviderPhysicalNetwork Provider Physical Network}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getProviderSegmentationId Provider Segmentation Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getShared Shared}
  • + *
+ *

+ * + * @generated + */ +public class CreateNetworkRequestImpl extends NeutronRequestImpl implements CreateNetworkRequest { + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getProviderNetworkType() Provider Network Type}' attribute. + * + * + * @see #getProviderNetworkType() + * @generated + * @ordered + */ + protected static final String PROVIDER_NETWORK_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProviderNetworkType() Provider Network Type}' attribute. + * + * + * @see #getProviderNetworkType() + * @generated + * @ordered + */ + protected String providerNetworkType = PROVIDER_NETWORK_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getProviderPhysicalNetwork() Provider Physical Network}' attribute. + * + * + * @see #getProviderPhysicalNetwork() + * @generated + * @ordered + */ + protected static final String PROVIDER_PHYSICAL_NETWORK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProviderPhysicalNetwork() Provider Physical Network}' attribute. + * + * + * @see #getProviderPhysicalNetwork() + * @generated + * @ordered + */ + protected String providerPhysicalNetwork = PROVIDER_PHYSICAL_NETWORK_EDEFAULT; + + /** + * The default value of the '{@link #getProviderSegmentationId() Provider Segmentation Id}' attribute. + * + * + * @see #getProviderSegmentationId() + * @generated + * @ordered + */ + protected static final int PROVIDER_SEGMENTATION_ID_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getProviderSegmentationId() Provider Segmentation Id}' attribute. + * + * + * @see #getProviderSegmentationId() + * @generated + * @ordered + */ + protected int providerSegmentationId = PROVIDER_SEGMENTATION_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The default value of the '{@link #getShared() Shared}' attribute. + * + * + * @see #getShared() + * @generated + * @ordered + */ + protected static final Boolean SHARED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShared() Shared}' attribute. + * + * + * @see #getShared() + * @generated + * @ordered + */ + protected Boolean shared = SHARED_EDEFAULT; + + /** + * + * + * @generated + */ + protected CreateNetworkRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.CREATE_NETWORK_REQUEST; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getProviderNetworkType() { + return providerNetworkType; + } + + /** + * + * + * @generated + */ + public void setProviderNetworkType(String newProviderNetworkType) { + String oldProviderNetworkType = providerNetworkType; + providerNetworkType = newProviderNetworkType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE, oldProviderNetworkType, providerNetworkType)); + } + + /** + * + * + * @generated + */ + public String getProviderPhysicalNetwork() { + return providerPhysicalNetwork; + } + + /** + * + * + * @generated + */ + public void setProviderPhysicalNetwork(String newProviderPhysicalNetwork) { + String oldProviderPhysicalNetwork = providerPhysicalNetwork; + providerPhysicalNetwork = newProviderPhysicalNetwork; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK, oldProviderPhysicalNetwork, providerPhysicalNetwork)); + } + + /** + * + * + * @generated + */ + public int getProviderSegmentationId() { + return providerSegmentationId; + } + + /** + * + * + * @generated + */ + public void setProviderSegmentationId(int newProviderSegmentationId) { + int oldProviderSegmentationId = providerSegmentationId; + providerSegmentationId = newProviderSegmentationId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID, oldProviderSegmentationId, providerSegmentationId)); + } + + /** + * + * + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * + * + * @generated + */ + public void setAdmin_state_up(Boolean newAdmin_state_up) { + Boolean oldAdmin_state_up = admin_state_up; + admin_state_up = newAdmin_state_up; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up)); + } + + /** + * + * + * @generated + */ + public Boolean getShared() { + return shared; + } + + /** + * + * + * @generated + */ + public void setShared(Boolean newShared) { + Boolean oldShared = shared; + shared = newShared; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_NETWORK_REQUEST__SHARED, oldShared, shared)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.CREATE_NETWORK_REQUEST__NAME: + return getName(); + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE: + return getProviderNetworkType(); + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK: + return getProviderPhysicalNetwork(); + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID: + return getProviderSegmentationId(); + case NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP: + return getAdmin_state_up(); + case NeutronPackage.CREATE_NETWORK_REQUEST__SHARED: + return getShared(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.CREATE_NETWORK_REQUEST__NAME: + setName((String)newValue); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE: + setProviderNetworkType((String)newValue); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK: + setProviderPhysicalNetwork((String)newValue); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID: + setProviderSegmentationId((Integer)newValue); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP: + setAdmin_state_up((Boolean)newValue); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__SHARED: + setShared((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.CREATE_NETWORK_REQUEST__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE: + setProviderNetworkType(PROVIDER_NETWORK_TYPE_EDEFAULT); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK: + setProviderPhysicalNetwork(PROVIDER_PHYSICAL_NETWORK_EDEFAULT); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID: + setProviderSegmentationId(PROVIDER_SEGMENTATION_ID_EDEFAULT); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP: + setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT); + return; + case NeutronPackage.CREATE_NETWORK_REQUEST__SHARED: + setShared(SHARED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.CREATE_NETWORK_REQUEST__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE: + return PROVIDER_NETWORK_TYPE_EDEFAULT == null ? providerNetworkType != null : !PROVIDER_NETWORK_TYPE_EDEFAULT.equals(providerNetworkType); + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK: + return PROVIDER_PHYSICAL_NETWORK_EDEFAULT == null ? providerPhysicalNetwork != null : !PROVIDER_PHYSICAL_NETWORK_EDEFAULT.equals(providerPhysicalNetwork); + case NeutronPackage.CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID: + return providerSegmentationId != PROVIDER_SEGMENTATION_ID_EDEFAULT; + case NeutronPackage.CREATE_NETWORK_REQUEST__ADMIN_STATE_UP: + return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up); + case NeutronPackage.CREATE_NETWORK_REQUEST__SHARED: + return SHARED_EDEFAULT == null ? shared != null : !SHARED_EDEFAULT.equals(shared); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", providerNetworkType: "); + result.append(providerNetworkType); + result.append(", providerPhysicalNetwork: "); + result.append(providerPhysicalNetwork); + result.append(", providerSegmentationId: "); + result.append(providerSegmentationId); + result.append(", admin_state_up: "); + result.append(admin_state_up); + result.append(", shared: "); + result.append(shared); + result.append(')'); + return result.toString(); + } + +} //CreateNetworkRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreatePortRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreatePortRequestImpl.java new file mode 100644 index 0000000..0babe21 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreatePortRequestImpl.java @@ -0,0 +1,506 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.CreatePortRequest; +import org.openecomp.ncomp.openstack.neutron.FixedIp; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Create Port Request'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getBindingVnicType Binding Vnic Type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getFixed_ips Fixed ips}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getMac_address Mac address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getNetwork_id Network id}
  • + *
+ *

+ * + * @generated + */ +public class CreatePortRequestImpl extends NeutronRequestImpl implements CreatePortRequest { + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getBindingVnicType() Binding Vnic Type}' attribute. + * + * + * @see #getBindingVnicType() + * @generated + * @ordered + */ + protected static final String BINDING_VNIC_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBindingVnicType() Binding Vnic Type}' attribute. + * + * + * @see #getBindingVnicType() + * @generated + * @ordered + */ + protected String bindingVnicType = BINDING_VNIC_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The cached value of the '{@link #getFixed_ips() Fixed ips}' containment reference list. + * + * + * @see #getFixed_ips() + * @generated + * @ordered + */ + protected EList fixed_ips; + + /** + * The default value of the '{@link #getMac_address() Mac address}' attribute. + * + * + * @see #getMac_address() + * @generated + * @ordered + */ + protected static final String MAC_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMac_address() Mac address}' attribute. + * + * + * @see #getMac_address() + * @generated + * @ordered + */ + protected String mac_address = MAC_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected CreatePortRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.CREATE_PORT_REQUEST; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getBindingVnicType() { + return bindingVnicType; + } + + /** + * + * + * @generated + */ + public void setBindingVnicType(String newBindingVnicType) { + String oldBindingVnicType = bindingVnicType; + bindingVnicType = newBindingVnicType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE, oldBindingVnicType, bindingVnicType)); + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__STATUS, oldStatus, status)); + } + + /** + * + * + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * + * + * @generated + */ + public void setAdmin_state_up(Boolean newAdmin_state_up) { + Boolean oldAdmin_state_up = admin_state_up; + admin_state_up = newAdmin_state_up; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up)); + } + + /** + * + * + * @generated + */ + public EList getFixed_ips() { + if (fixed_ips == null) { + fixed_ips = new EObjectContainmentEList(FixedIp.class, this, NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS); + } + return fixed_ips; + } + + /** + * + * + * @generated + */ + public String getMac_address() { + return mac_address; + } + + /** + * + * + * @generated + */ + public void setMac_address(String newMac_address) { + String oldMac_address = mac_address; + mac_address = newMac_address; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS, oldMac_address, mac_address)); + } + + /** + * + * + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * + * + * @generated + */ + public void setNetwork_id(String newNetwork_id) { + String oldNetwork_id = network_id; + network_id = newNetwork_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID, oldNetwork_id, network_id)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS: + return ((InternalEList)getFixed_ips()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.CREATE_PORT_REQUEST__NAME: + return getName(); + case NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE: + return getBindingVnicType(); + case NeutronPackage.CREATE_PORT_REQUEST__STATUS: + return getStatus(); + case NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP: + return getAdmin_state_up(); + case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS: + return getFixed_ips(); + case NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS: + return getMac_address(); + case NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID: + return getNetwork_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.CREATE_PORT_REQUEST__NAME: + setName((String)newValue); + return; + case NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE: + setBindingVnicType((String)newValue); + return; + case NeutronPackage.CREATE_PORT_REQUEST__STATUS: + setStatus((String)newValue); + return; + case NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP: + setAdmin_state_up((Boolean)newValue); + return; + case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS: + getFixed_ips().clear(); + getFixed_ips().addAll((Collection)newValue); + return; + case NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS: + setMac_address((String)newValue); + return; + case NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID: + setNetwork_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.CREATE_PORT_REQUEST__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE: + setBindingVnicType(BINDING_VNIC_TYPE_EDEFAULT); + return; + case NeutronPackage.CREATE_PORT_REQUEST__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP: + setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT); + return; + case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS: + getFixed_ips().clear(); + return; + case NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS: + setMac_address(MAC_ADDRESS_EDEFAULT); + return; + case NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID: + setNetwork_id(NETWORK_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.CREATE_PORT_REQUEST__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.CREATE_PORT_REQUEST__BINDING_VNIC_TYPE: + return BINDING_VNIC_TYPE_EDEFAULT == null ? bindingVnicType != null : !BINDING_VNIC_TYPE_EDEFAULT.equals(bindingVnicType); + case NeutronPackage.CREATE_PORT_REQUEST__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case NeutronPackage.CREATE_PORT_REQUEST__ADMIN_STATE_UP: + return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up); + case NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS: + return fixed_ips != null && !fixed_ips.isEmpty(); + case NeutronPackage.CREATE_PORT_REQUEST__MAC_ADDRESS: + return MAC_ADDRESS_EDEFAULT == null ? mac_address != null : !MAC_ADDRESS_EDEFAULT.equals(mac_address); + case NeutronPackage.CREATE_PORT_REQUEST__NETWORK_ID: + return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", bindingVnicType: "); + result.append(bindingVnicType); + result.append(", status: "); + result.append(status); + result.append(", admin_state_up: "); + result.append(admin_state_up); + result.append(", mac_address: "); + result.append(mac_address); + result.append(", network_id: "); + result.append(network_id); + result.append(')'); + return result.toString(); + } + +} //CreatePortRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateRouterRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateRouterRequestImpl.java new file mode 100644 index 0000000..9da0436 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateRouterRequestImpl.java @@ -0,0 +1,421 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.CreateRouterRequest; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Create Router Request'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getShared Shared}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getExternalNetwork External Network}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getPorts Ports}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getSubnets Subnets}
  • + *
+ *

+ * + * @generated + */ +public class CreateRouterRequestImpl extends NeutronRequestImpl implements CreateRouterRequest { + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The default value of the '{@link #getShared() Shared}' attribute. + * + * + * @see #getShared() + * @generated + * @ordered + */ + protected static final Boolean SHARED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShared() Shared}' attribute. + * + * + * @see #getShared() + * @generated + * @ordered + */ + protected Boolean shared = SHARED_EDEFAULT; + + /** + * The default value of the '{@link #getExternalNetwork() External Network}' attribute. + * + * + * @see #getExternalNetwork() + * @generated + * @ordered + */ + protected static final String EXTERNAL_NETWORK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getExternalNetwork() External Network}' attribute. + * + * + * @see #getExternalNetwork() + * @generated + * @ordered + */ + protected String externalNetwork = EXTERNAL_NETWORK_EDEFAULT; + + /** + * The cached value of the '{@link #getPorts() Ports}' attribute list. + * + * + * @see #getPorts() + * @generated + * @ordered + */ + protected EList ports; + + /** + * The cached value of the '{@link #getSubnets() Subnets}' attribute list. + * + * + * @see #getSubnets() + * @generated + * @ordered + */ + protected EList subnets; + + /** + * + * + * @generated + */ + protected CreateRouterRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.CREATE_ROUTER_REQUEST; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_ROUTER_REQUEST__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * + * + * @generated + */ + public void setAdmin_state_up(Boolean newAdmin_state_up) { + Boolean oldAdmin_state_up = admin_state_up; + admin_state_up = newAdmin_state_up; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up)); + } + + /** + * + * + * @generated + */ + public Boolean getShared() { + return shared; + } + + /** + * + * + * @generated + */ + public void setShared(Boolean newShared) { + Boolean oldShared = shared; + shared = newShared; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_ROUTER_REQUEST__SHARED, oldShared, shared)); + } + + /** + * + * + * @generated + */ + public String getExternalNetwork() { + return externalNetwork; + } + + /** + * + * + * @generated + */ + public void setExternalNetwork(String newExternalNetwork) { + String oldExternalNetwork = externalNetwork; + externalNetwork = newExternalNetwork; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK, oldExternalNetwork, externalNetwork)); + } + + /** + * + * + * @generated + */ + public EList getPorts() { + if (ports == null) { + ports = new EDataTypeEList(String.class, this, NeutronPackage.CREATE_ROUTER_REQUEST__PORTS); + } + return ports; + } + + /** + * + * + * @generated + */ + public EList getSubnets() { + if (subnets == null) { + subnets = new EDataTypeEList(String.class, this, NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS); + } + return subnets; + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.CREATE_ROUTER_REQUEST__NAME: + return getName(); + case NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP: + return getAdmin_state_up(); + case NeutronPackage.CREATE_ROUTER_REQUEST__SHARED: + return getShared(); + case NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK: + return getExternalNetwork(); + case NeutronPackage.CREATE_ROUTER_REQUEST__PORTS: + return getPorts(); + case NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS: + return getSubnets(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.CREATE_ROUTER_REQUEST__NAME: + setName((String)newValue); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP: + setAdmin_state_up((Boolean)newValue); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__SHARED: + setShared((Boolean)newValue); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK: + setExternalNetwork((String)newValue); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__PORTS: + getPorts().clear(); + getPorts().addAll((Collection)newValue); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS: + getSubnets().clear(); + getSubnets().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.CREATE_ROUTER_REQUEST__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP: + setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__SHARED: + setShared(SHARED_EDEFAULT); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK: + setExternalNetwork(EXTERNAL_NETWORK_EDEFAULT); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__PORTS: + getPorts().clear(); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS: + getSubnets().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.CREATE_ROUTER_REQUEST__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.CREATE_ROUTER_REQUEST__ADMIN_STATE_UP: + return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up); + case NeutronPackage.CREATE_ROUTER_REQUEST__SHARED: + return SHARED_EDEFAULT == null ? shared != null : !SHARED_EDEFAULT.equals(shared); + case NeutronPackage.CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK: + return EXTERNAL_NETWORK_EDEFAULT == null ? externalNetwork != null : !EXTERNAL_NETWORK_EDEFAULT.equals(externalNetwork); + case NeutronPackage.CREATE_ROUTER_REQUEST__PORTS: + return ports != null && !ports.isEmpty(); + case NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS: + return subnets != null && !subnets.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", admin_state_up: "); + result.append(admin_state_up); + result.append(", shared: "); + result.append(shared); + result.append(", externalNetwork: "); + result.append(externalNetwork); + result.append(", ports: "); + result.append(ports); + result.append(", subnets: "); + result.append(subnets); + result.append(')'); + return result.toString(); + } + +} //CreateRouterRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateSubnetRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateSubnetRequestImpl.java new file mode 100644 index 0000000..ef8f399 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/CreateSubnetRequestImpl.java @@ -0,0 +1,549 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.AllocationPool; +import org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Create Subnet Request'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getNetwork_id Network id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getIp_version Ip version}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getCidr Cidr}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getAllocation_pools Allocation pools}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getDns_nameservers Dns nameservers}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getEnable_dhcp Enable dhcp}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getGateway_ip Gateway ip}
  • + *
+ *

+ * + * @generated + */ +public class CreateSubnetRequestImpl extends NeutronRequestImpl implements CreateSubnetRequest { + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * The default value of the '{@link #getIp_version() Ip version}' attribute. + * + * + * @see #getIp_version() + * @generated + * @ordered + */ + protected static final int IP_VERSION_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getIp_version() Ip version}' attribute. + * + * + * @see #getIp_version() + * @generated + * @ordered + */ + protected int ip_version = IP_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getCidr() Cidr}' attribute. + * + * + * @see #getCidr() + * @generated + * @ordered + */ + protected static final String CIDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCidr() Cidr}' attribute. + * + * + * @see #getCidr() + * @generated + * @ordered + */ + protected String cidr = CIDR_EDEFAULT; + + /** + * The cached value of the '{@link #getAllocation_pools() Allocation pools}' containment reference list. + * + * + * @see #getAllocation_pools() + * @generated + * @ordered + */ + protected EList allocation_pools; + + /** + * The cached value of the '{@link #getDns_nameservers() Dns nameservers}' attribute list. + * + * + * @see #getDns_nameservers() + * @generated + * @ordered + */ + protected EList dns_nameservers; + + /** + * The default value of the '{@link #getEnable_dhcp() Enable dhcp}' attribute. + * + * + * @see #getEnable_dhcp() + * @generated + * @ordered + */ + protected static final Boolean ENABLE_DHCP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnable_dhcp() Enable dhcp}' attribute. + * + * + * @see #getEnable_dhcp() + * @generated + * @ordered + */ + protected Boolean enable_dhcp = ENABLE_DHCP_EDEFAULT; + + /** + * The default value of the '{@link #getGateway_ip() Gateway ip}' attribute. + * + * + * @see #getGateway_ip() + * @generated + * @ordered + */ + protected static final String GATEWAY_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGateway_ip() Gateway ip}' attribute. + * + * + * @see #getGateway_ip() + * @generated + * @ordered + */ + protected String gateway_ip = GATEWAY_IP_EDEFAULT; + + /** + * + * + * @generated + */ + protected CreateSubnetRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.CREATE_SUBNET_REQUEST; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * + * + * @generated + */ + public void setNetwork_id(String newNetwork_id) { + String oldNetwork_id = network_id; + network_id = newNetwork_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID, oldNetwork_id, network_id)); + } + + /** + * + * + * @generated + */ + public int getIp_version() { + return ip_version; + } + + /** + * + * + * @generated + */ + public void setIp_version(int newIp_version) { + int oldIp_version = ip_version; + ip_version = newIp_version; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION, oldIp_version, ip_version)); + } + + /** + * + * + * @generated + */ + public String getCidr() { + return cidr; + } + + /** + * + * + * @generated + */ + public void setCidr(String newCidr) { + String oldCidr = cidr; + cidr = newCidr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__CIDR, oldCidr, cidr)); + } + + /** + * + * + * @generated + */ + public EList getAllocation_pools() { + if (allocation_pools == null) { + allocation_pools = new EObjectContainmentEList(AllocationPool.class, this, NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS); + } + return allocation_pools; + } + + /** + * + * + * @generated + */ + public EList getDns_nameservers() { + if (dns_nameservers == null) { + dns_nameservers = new EDataTypeEList(String.class, this, NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS); + } + return dns_nameservers; + } + + /** + * + * + * @generated + */ + public Boolean getEnable_dhcp() { + return enable_dhcp; + } + + /** + * + * + * @generated + */ + public void setEnable_dhcp(Boolean newEnable_dhcp) { + Boolean oldEnable_dhcp = enable_dhcp; + enable_dhcp = newEnable_dhcp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP, oldEnable_dhcp, enable_dhcp)); + } + + /** + * + * + * @generated + */ + public String getGateway_ip() { + return gateway_ip; + } + + /** + * + * + * @generated + */ + public void setGateway_ip(String newGateway_ip) { + String oldGateway_ip = gateway_ip; + gateway_ip = newGateway_ip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP, oldGateway_ip, gateway_ip)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS: + return ((InternalEList)getAllocation_pools()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.CREATE_SUBNET_REQUEST__NAME: + return getName(); + case NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID: + return getNetwork_id(); + case NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION: + return getIp_version(); + case NeutronPackage.CREATE_SUBNET_REQUEST__CIDR: + return getCidr(); + case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS: + return getAllocation_pools(); + case NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS: + return getDns_nameservers(); + case NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP: + return getEnable_dhcp(); + case NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP: + return getGateway_ip(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.CREATE_SUBNET_REQUEST__NAME: + setName((String)newValue); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID: + setNetwork_id((String)newValue); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION: + setIp_version((Integer)newValue); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__CIDR: + setCidr((String)newValue); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS: + getAllocation_pools().clear(); + getAllocation_pools().addAll((Collection)newValue); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS: + getDns_nameservers().clear(); + getDns_nameservers().addAll((Collection)newValue); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP: + setEnable_dhcp((Boolean)newValue); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP: + setGateway_ip((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.CREATE_SUBNET_REQUEST__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID: + setNetwork_id(NETWORK_ID_EDEFAULT); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION: + setIp_version(IP_VERSION_EDEFAULT); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__CIDR: + setCidr(CIDR_EDEFAULT); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS: + getAllocation_pools().clear(); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS: + getDns_nameservers().clear(); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP: + setEnable_dhcp(ENABLE_DHCP_EDEFAULT); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP: + setGateway_ip(GATEWAY_IP_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.CREATE_SUBNET_REQUEST__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.CREATE_SUBNET_REQUEST__NETWORK_ID: + return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id); + case NeutronPackage.CREATE_SUBNET_REQUEST__IP_VERSION: + return ip_version != IP_VERSION_EDEFAULT; + case NeutronPackage.CREATE_SUBNET_REQUEST__CIDR: + return CIDR_EDEFAULT == null ? cidr != null : !CIDR_EDEFAULT.equals(cidr); + case NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS: + return allocation_pools != null && !allocation_pools.isEmpty(); + case NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS: + return dns_nameservers != null && !dns_nameservers.isEmpty(); + case NeutronPackage.CREATE_SUBNET_REQUEST__ENABLE_DHCP: + return ENABLE_DHCP_EDEFAULT == null ? enable_dhcp != null : !ENABLE_DHCP_EDEFAULT.equals(enable_dhcp); + case NeutronPackage.CREATE_SUBNET_REQUEST__GATEWAY_IP: + return GATEWAY_IP_EDEFAULT == null ? gateway_ip != null : !GATEWAY_IP_EDEFAULT.equals(gateway_ip); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", network_id: "); + result.append(network_id); + result.append(", ip_version: "); + result.append(ip_version); + result.append(", cidr: "); + result.append(cidr); + result.append(", dns_nameservers: "); + result.append(dns_nameservers); + result.append(", enable_dhcp: "); + result.append(enable_dhcp); + result.append(", gateway_ip: "); + result.append(gateway_ip); + result.append(')'); + return result.toString(); + } + +} //CreateSubnetRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/ExternalGatewayImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/ExternalGatewayImpl.java new file mode 100644 index 0000000..85e873b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/ExternalGatewayImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.ExternalGateway; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'External Gateway'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl#getEnable_snat Enable snat}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl#getNetwork_id Network id}
  • + *
+ *

+ * + * @generated + */ +public class ExternalGatewayImpl extends MinimalEObjectImpl.Container implements ExternalGateway { + /** + * The default value of the '{@link #getEnable_snat() Enable snat}' attribute. + * + * + * @see #getEnable_snat() + * @generated + * @ordered + */ + protected static final Boolean ENABLE_SNAT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnable_snat() Enable snat}' attribute. + * + * + * @see #getEnable_snat() + * @generated + * @ordered + */ + protected Boolean enable_snat = ENABLE_SNAT_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected ExternalGatewayImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.EXTERNAL_GATEWAY; + } + + /** + * + * + * @generated + */ + public Boolean getEnable_snat() { + return enable_snat; + } + + /** + * + * + * @generated + */ + public void setEnable_snat(Boolean newEnable_snat) { + Boolean oldEnable_snat = enable_snat; + enable_snat = newEnable_snat; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT, oldEnable_snat, enable_snat)); + } + + /** + * + * + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * + * + * @generated + */ + public void setNetwork_id(String newNetwork_id) { + String oldNetwork_id = network_id; + network_id = newNetwork_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID, oldNetwork_id, network_id)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT: + return getEnable_snat(); + case NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID: + return getNetwork_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT: + setEnable_snat((Boolean)newValue); + return; + case NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID: + setNetwork_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT: + setEnable_snat(ENABLE_SNAT_EDEFAULT); + return; + case NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID: + setNetwork_id(NETWORK_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.EXTERNAL_GATEWAY__ENABLE_SNAT: + return ENABLE_SNAT_EDEFAULT == null ? enable_snat != null : !ENABLE_SNAT_EDEFAULT.equals(enable_snat); + case NeutronPackage.EXTERNAL_GATEWAY__NETWORK_ID: + return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (enable_snat: "); + result.append(enable_snat); + result.append(", network_id: "); + result.append(network_id); + result.append(')'); + return result.toString(); + } + +} //ExternalGatewayImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/FixedIpImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/FixedIpImpl.java new file mode 100644 index 0000000..e61d5df --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/FixedIpImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.FixedIp; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Fixed Ip'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl#getIp_address Ip address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl#getSubnet_id Subnet id}
  • + *
+ *

+ * + * @generated + */ +public class FixedIpImpl extends MinimalEObjectImpl.Container implements FixedIp { + /** + * The default value of the '{@link #getIp_address() Ip address}' attribute. + * + * + * @see #getIp_address() + * @generated + * @ordered + */ + protected static final String IP_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIp_address() Ip address}' attribute. + * + * + * @see #getIp_address() + * @generated + * @ordered + */ + protected String ip_address = IP_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getSubnet_id() Subnet id}' attribute. + * + * + * @see #getSubnet_id() + * @generated + * @ordered + */ + protected static final String SUBNET_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubnet_id() Subnet id}' attribute. + * + * + * @see #getSubnet_id() + * @generated + * @ordered + */ + protected String subnet_id = SUBNET_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected FixedIpImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.FIXED_IP; + } + + /** + * + * + * @generated + */ + public String getIp_address() { + return ip_address; + } + + /** + * + * + * @generated + */ + public void setIp_address(String newIp_address) { + String oldIp_address = ip_address; + ip_address = newIp_address; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.FIXED_IP__IP_ADDRESS, oldIp_address, ip_address)); + } + + /** + * + * + * @generated + */ + public String getSubnet_id() { + return subnet_id; + } + + /** + * + * + * @generated + */ + public void setSubnet_id(String newSubnet_id) { + String oldSubnet_id = subnet_id; + subnet_id = newSubnet_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.FIXED_IP__SUBNET_ID, oldSubnet_id, subnet_id)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.FIXED_IP__IP_ADDRESS: + return getIp_address(); + case NeutronPackage.FIXED_IP__SUBNET_ID: + return getSubnet_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.FIXED_IP__IP_ADDRESS: + setIp_address((String)newValue); + return; + case NeutronPackage.FIXED_IP__SUBNET_ID: + setSubnet_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.FIXED_IP__IP_ADDRESS: + setIp_address(IP_ADDRESS_EDEFAULT); + return; + case NeutronPackage.FIXED_IP__SUBNET_ID: + setSubnet_id(SUBNET_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.FIXED_IP__IP_ADDRESS: + return IP_ADDRESS_EDEFAULT == null ? ip_address != null : !IP_ADDRESS_EDEFAULT.equals(ip_address); + case NeutronPackage.FIXED_IP__SUBNET_ID: + return SUBNET_ID_EDEFAULT == null ? subnet_id != null : !SUBNET_ID_EDEFAULT.equals(subnet_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (ip_address: "); + result.append(ip_address); + result.append(", subnet_id: "); + result.append(subnet_id); + result.append(')'); + return result.toString(); + } + +} //FixedIpImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NetworkImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NetworkImpl.java new file mode 100644 index 0000000..ea878d3 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NetworkImpl.java @@ -0,0 +1,712 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.Network; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Network'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getProvider_network_type Provider network type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getProvider_physical_network Provider physical network}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getProvider_segmentation_id Provider segmentation id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getRouter_external Router external}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getShared Shared}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getSubnets Subnets}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getTenant_id Tenant id}
  • + *
+ *

+ * + * @generated + */ +public class NetworkImpl extends NeutronObjectImpl implements Network { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The default value of the '{@link #getProvider_network_type() Provider network type}' attribute. + * + * + * @see #getProvider_network_type() + * @generated + * @ordered + */ + protected static final String PROVIDER_NETWORK_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProvider_network_type() Provider network type}' attribute. + * + * + * @see #getProvider_network_type() + * @generated + * @ordered + */ + protected String provider_network_type = PROVIDER_NETWORK_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getProvider_physical_network() Provider physical network}' attribute. + * + * + * @see #getProvider_physical_network() + * @generated + * @ordered + */ + protected static final String PROVIDER_PHYSICAL_NETWORK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProvider_physical_network() Provider physical network}' attribute. + * + * + * @see #getProvider_physical_network() + * @generated + * @ordered + */ + protected String provider_physical_network = PROVIDER_PHYSICAL_NETWORK_EDEFAULT; + + /** + * The default value of the '{@link #getProvider_segmentation_id() Provider segmentation id}' attribute. + * + * + * @see #getProvider_segmentation_id() + * @generated + * @ordered + */ + protected static final Integer PROVIDER_SEGMENTATION_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProvider_segmentation_id() Provider segmentation id}' attribute. + * + * + * @see #getProvider_segmentation_id() + * @generated + * @ordered + */ + protected Integer provider_segmentation_id = PROVIDER_SEGMENTATION_ID_EDEFAULT; + + /** + * The default value of the '{@link #getRouter_external() Router external}' attribute. + * + * + * @see #getRouter_external() + * @generated + * @ordered + */ + protected static final Boolean ROUTER_EXTERNAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRouter_external() Router external}' attribute. + * + * + * @see #getRouter_external() + * @generated + * @ordered + */ + protected Boolean router_external = ROUTER_EXTERNAL_EDEFAULT; + + /** + * The default value of the '{@link #getShared() Shared}' attribute. + * + * + * @see #getShared() + * @generated + * @ordered + */ + protected static final Boolean SHARED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShared() Shared}' attribute. + * + * + * @see #getShared() + * @generated + * @ordered + */ + protected Boolean shared = SHARED_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The cached value of the '{@link #getSubnets() Subnets}' attribute list. + * + * + * @see #getSubnets() + * @generated + * @ordered + */ + protected EList subnets; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected NetworkImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NETWORK; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * + * + * @generated + */ + public void setAdmin_state_up(Boolean newAdmin_state_up) { + Boolean oldAdmin_state_up = admin_state_up; + admin_state_up = newAdmin_state_up; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up)); + } + + /** + * + * + * @generated + */ + public String getProvider_network_type() { + return provider_network_type; + } + + /** + * + * + * @generated + */ + public void setProvider_network_type(String newProvider_network_type) { + String oldProvider_network_type = provider_network_type; + provider_network_type = newProvider_network_type; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE, oldProvider_network_type, provider_network_type)); + } + + /** + * + * + * @generated + */ + public String getProvider_physical_network() { + return provider_physical_network; + } + + /** + * + * + * @generated + */ + public void setProvider_physical_network(String newProvider_physical_network) { + String oldProvider_physical_network = provider_physical_network; + provider_physical_network = newProvider_physical_network; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK, oldProvider_physical_network, provider_physical_network)); + } + + /** + * + * + * @generated + */ + public Integer getProvider_segmentation_id() { + return provider_segmentation_id; + } + + /** + * + * + * @generated + */ + public void setProvider_segmentation_id(Integer newProvider_segmentation_id) { + Integer oldProvider_segmentation_id = provider_segmentation_id; + provider_segmentation_id = newProvider_segmentation_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID, oldProvider_segmentation_id, provider_segmentation_id)); + } + + /** + * + * + * @generated + */ + public Boolean getRouter_external() { + return router_external; + } + + /** + * + * + * @generated + */ + public void setRouter_external(Boolean newRouter_external) { + Boolean oldRouter_external = router_external; + router_external = newRouter_external; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__ROUTER_EXTERNAL, oldRouter_external, router_external)); + } + + /** + * + * + * @generated + */ + public Boolean getShared() { + return shared; + } + + /** + * + * + * @generated + */ + public void setShared(Boolean newShared) { + Boolean oldShared = shared; + shared = newShared; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__SHARED, oldShared, shared)); + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__STATUS, oldStatus, status)); + } + + /** + * + * + * @generated + */ + public EList getSubnets() { + if (subnets == null) { + subnets = new EDataTypeEList(String.class, this, NeutronPackage.NETWORK__SUBNETS); + } + return subnets; + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.NETWORK__ID: + return getId(); + case NeutronPackage.NETWORK__NAME: + return getName(); + case NeutronPackage.NETWORK__ADMIN_STATE_UP: + return getAdmin_state_up(); + case NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE: + return getProvider_network_type(); + case NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK: + return getProvider_physical_network(); + case NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID: + return getProvider_segmentation_id(); + case NeutronPackage.NETWORK__ROUTER_EXTERNAL: + return getRouter_external(); + case NeutronPackage.NETWORK__SHARED: + return getShared(); + case NeutronPackage.NETWORK__STATUS: + return getStatus(); + case NeutronPackage.NETWORK__SUBNETS: + return getSubnets(); + case NeutronPackage.NETWORK__TENANT_ID: + return getTenant_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.NETWORK__ID: + setId((String)newValue); + return; + case NeutronPackage.NETWORK__NAME: + setName((String)newValue); + return; + case NeutronPackage.NETWORK__ADMIN_STATE_UP: + setAdmin_state_up((Boolean)newValue); + return; + case NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE: + setProvider_network_type((String)newValue); + return; + case NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK: + setProvider_physical_network((String)newValue); + return; + case NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID: + setProvider_segmentation_id((Integer)newValue); + return; + case NeutronPackage.NETWORK__ROUTER_EXTERNAL: + setRouter_external((Boolean)newValue); + return; + case NeutronPackage.NETWORK__SHARED: + setShared((Boolean)newValue); + return; + case NeutronPackage.NETWORK__STATUS: + setStatus((String)newValue); + return; + case NeutronPackage.NETWORK__SUBNETS: + getSubnets().clear(); + getSubnets().addAll((Collection)newValue); + return; + case NeutronPackage.NETWORK__TENANT_ID: + setTenant_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.NETWORK__ID: + setId(ID_EDEFAULT); + return; + case NeutronPackage.NETWORK__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.NETWORK__ADMIN_STATE_UP: + setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT); + return; + case NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE: + setProvider_network_type(PROVIDER_NETWORK_TYPE_EDEFAULT); + return; + case NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK: + setProvider_physical_network(PROVIDER_PHYSICAL_NETWORK_EDEFAULT); + return; + case NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID: + setProvider_segmentation_id(PROVIDER_SEGMENTATION_ID_EDEFAULT); + return; + case NeutronPackage.NETWORK__ROUTER_EXTERNAL: + setRouter_external(ROUTER_EXTERNAL_EDEFAULT); + return; + case NeutronPackage.NETWORK__SHARED: + setShared(SHARED_EDEFAULT); + return; + case NeutronPackage.NETWORK__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case NeutronPackage.NETWORK__SUBNETS: + getSubnets().clear(); + return; + case NeutronPackage.NETWORK__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.NETWORK__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case NeutronPackage.NETWORK__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.NETWORK__ADMIN_STATE_UP: + return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up); + case NeutronPackage.NETWORK__PROVIDER_NETWORK_TYPE: + return PROVIDER_NETWORK_TYPE_EDEFAULT == null ? provider_network_type != null : !PROVIDER_NETWORK_TYPE_EDEFAULT.equals(provider_network_type); + case NeutronPackage.NETWORK__PROVIDER_PHYSICAL_NETWORK: + return PROVIDER_PHYSICAL_NETWORK_EDEFAULT == null ? provider_physical_network != null : !PROVIDER_PHYSICAL_NETWORK_EDEFAULT.equals(provider_physical_network); + case NeutronPackage.NETWORK__PROVIDER_SEGMENTATION_ID: + return PROVIDER_SEGMENTATION_ID_EDEFAULT == null ? provider_segmentation_id != null : !PROVIDER_SEGMENTATION_ID_EDEFAULT.equals(provider_segmentation_id); + case NeutronPackage.NETWORK__ROUTER_EXTERNAL: + return ROUTER_EXTERNAL_EDEFAULT == null ? router_external != null : !ROUTER_EXTERNAL_EDEFAULT.equals(router_external); + case NeutronPackage.NETWORK__SHARED: + return SHARED_EDEFAULT == null ? shared != null : !SHARED_EDEFAULT.equals(shared); + case NeutronPackage.NETWORK__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case NeutronPackage.NETWORK__SUBNETS: + return subnets != null && !subnets.isEmpty(); + case NeutronPackage.NETWORK__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", admin_state_up: "); + result.append(admin_state_up); + result.append(", provider_network_type: "); + result.append(provider_network_type); + result.append(", provider_physical_network: "); + result.append(provider_physical_network); + result.append(", provider_segmentation_id: "); + result.append(provider_segmentation_id); + result.append(", router_external: "); + result.append(router_external); + result.append(", shared: "); + result.append(shared); + result.append(", status: "); + result.append(status); + result.append(", subnets: "); + result.append(subnets); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(')'); + return result.toString(); + } + +} //NetworkImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFactoryImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFactoryImpl.java new file mode 100644 index 0000000..c2450c3 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFactoryImpl.java @@ -0,0 +1,281 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class NeutronFactoryImpl extends EFactoryImpl implements NeutronFactory { + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static NeutronFactory init() { + try { + NeutronFactory theNeutronFactory = (NeutronFactory)EPackage.Registry.INSTANCE.getEFactory(NeutronPackage.eNS_URI); + if (theNeutronFactory != null) { + return theNeutronFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new NeutronFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public NeutronFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case NeutronPackage.NETWORK: return createNetwork(); + case NeutronPackage.SUBNET: return createSubnet(); + case NeutronPackage.ALLOCATION_POOL: return createAllocationPool(); + case NeutronPackage.ROUTER: return createRouter(); + case NeutronPackage.PORT: return createPort(); + case NeutronPackage.NEUTRON_SECURITY_GROUP: return createNeutronSecurityGroup(); + case NeutronPackage.NEUTRON_SECURITY_RULE: return createNeutronSecurityRule(); + case NeutronPackage.NEUTRON_FLOATING_IP: return createNeutronFloatingIp(); + case NeutronPackage.BINDING_PROFILE: return createBindingProfile(); + case NeutronPackage.BINDING_VIF_DETAIL: return createBindingVifDetail(); + case NeutronPackage.FIXED_IP: return createFixedIp(); + case NeutronPackage.EXTERNAL_GATEWAY: return createExternalGateway(); + case NeutronPackage.CREATE_NETWORK_REQUEST: return createCreateNetworkRequest(); + case NeutronPackage.CREATE_SUBNET_REQUEST: return createCreateSubnetRequest(); + case NeutronPackage.CREATE_ROUTER_REQUEST: return createCreateRouterRequest(); + case NeutronPackage.CREATE_PORT_REQUEST: return createCreatePortRequest(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public Network createNetwork() { + NetworkImpl network = new NetworkImpl(); + return network; + } + + /** + * + * + * @generated + */ + public Subnet createSubnet() { + SubnetImpl subnet = new SubnetImpl(); + return subnet; + } + + /** + * + * + * @generated + */ + public AllocationPool createAllocationPool() { + AllocationPoolImpl allocationPool = new AllocationPoolImpl(); + return allocationPool; + } + + /** + * + * + * @generated + */ + public Router createRouter() { + RouterImpl router = new RouterImpl(); + return router; + } + + /** + * + * + * @generated + */ + public Port createPort() { + PortImpl port = new PortImpl(); + return port; + } + + /** + * + * + * @generated + */ + public NeutronSecurityGroup createNeutronSecurityGroup() { + NeutronSecurityGroupImpl neutronSecurityGroup = new NeutronSecurityGroupImpl(); + return neutronSecurityGroup; + } + + /** + * + * + * @generated + */ + public NeutronSecurityRule createNeutronSecurityRule() { + NeutronSecurityRuleImpl neutronSecurityRule = new NeutronSecurityRuleImpl(); + return neutronSecurityRule; + } + + /** + * + * + * @generated + */ + public NeutronFloatingIp createNeutronFloatingIp() { + NeutronFloatingIpImpl neutronFloatingIp = new NeutronFloatingIpImpl(); + return neutronFloatingIp; + } + + /** + * + * + * @generated + */ + public BindingProfile createBindingProfile() { + BindingProfileImpl bindingProfile = new BindingProfileImpl(); + return bindingProfile; + } + + /** + * + * + * @generated + */ + public BindingVifDetail createBindingVifDetail() { + BindingVifDetailImpl bindingVifDetail = new BindingVifDetailImpl(); + return bindingVifDetail; + } + + /** + * + * + * @generated + */ + public FixedIp createFixedIp() { + FixedIpImpl fixedIp = new FixedIpImpl(); + return fixedIp; + } + + /** + * + * + * @generated + */ + public ExternalGateway createExternalGateway() { + ExternalGatewayImpl externalGateway = new ExternalGatewayImpl(); + return externalGateway; + } + + /** + * + * + * @generated + */ + public CreateNetworkRequest createCreateNetworkRequest() { + CreateNetworkRequestImpl createNetworkRequest = new CreateNetworkRequestImpl(); + return createNetworkRequest; + } + + /** + * + * + * @generated + */ + public CreateSubnetRequest createCreateSubnetRequest() { + CreateSubnetRequestImpl createSubnetRequest = new CreateSubnetRequestImpl(); + return createSubnetRequest; + } + + /** + * + * + * @generated + */ + public CreateRouterRequest createCreateRouterRequest() { + CreateRouterRequestImpl createRouterRequest = new CreateRouterRequestImpl(); + return createRouterRequest; + } + + /** + * + * + * @generated + */ + public CreatePortRequest createCreatePortRequest() { + CreatePortRequestImpl createPortRequest = new CreatePortRequestImpl(); + return createPortRequest; + } + + /** + * + * + * @generated + */ + public NeutronPackage getNeutronPackage() { + return (NeutronPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static NeutronPackage getPackage() { + return NeutronPackage.eINSTANCE; + } + +} //NeutronFactoryImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFloatingIpImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFloatingIpImpl.java new file mode 100644 index 0000000..7e4e1fb --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronFloatingIpImpl.java @@ -0,0 +1,615 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Floating Ip'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getFloating_network_id Floating network id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getRouter_id Router id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getFixed_ip_address Fixed ip address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getFloating_ip_address Floating ip address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getPort_id Port id}
  • + *
+ *

+ * + * @generated + */ +public class NeutronFloatingIpImpl extends NeutronObjectImpl implements NeutronFloatingIp { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getFloating_network_id() Floating network id}' attribute. + * + * + * @see #getFloating_network_id() + * @generated + * @ordered + */ + protected static final String FLOATING_NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFloating_network_id() Floating network id}' attribute. + * + * + * @see #getFloating_network_id() + * @generated + * @ordered + */ + protected String floating_network_id = FLOATING_NETWORK_ID_EDEFAULT; + + /** + * The default value of the '{@link #getRouter_id() Router id}' attribute. + * + * + * @see #getRouter_id() + * @generated + * @ordered + */ + protected static final String ROUTER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRouter_id() Router id}' attribute. + * + * + * @see #getRouter_id() + * @generated + * @ordered + */ + protected String router_id = ROUTER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getFixed_ip_address() Fixed ip address}' attribute. + * + * + * @see #getFixed_ip_address() + * @generated + * @ordered + */ + protected static final String FIXED_IP_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFixed_ip_address() Fixed ip address}' attribute. + * + * + * @see #getFixed_ip_address() + * @generated + * @ordered + */ + protected String fixed_ip_address = FIXED_IP_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getFloating_ip_address() Floating ip address}' attribute. + * + * + * @see #getFloating_ip_address() + * @generated + * @ordered + */ + protected static final String FLOATING_IP_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFloating_ip_address() Floating ip address}' attribute. + * + * + * @see #getFloating_ip_address() + * @generated + * @ordered + */ + protected String floating_ip_address = FLOATING_IP_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getPort_id() Port id}' attribute. + * + * + * @see #getPort_id() + * @generated + * @ordered + */ + protected static final String PORT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPort_id() Port id}' attribute. + * + * + * @see #getPort_id() + * @generated + * @ordered + */ + protected String port_id = PORT_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected NeutronFloatingIpImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_FLOATING_IP; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__STATUS, oldStatus, status)); + } + + /** + * + * + * @generated + */ + public String getFloating_network_id() { + return floating_network_id; + } + + /** + * + * + * @generated + */ + public void setFloating_network_id(String newFloating_network_id) { + String oldFloating_network_id = floating_network_id; + floating_network_id = newFloating_network_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID, oldFloating_network_id, floating_network_id)); + } + + /** + * + * + * @generated + */ + public String getRouter_id() { + return router_id; + } + + /** + * + * + * @generated + */ + public void setRouter_id(String newRouter_id) { + String oldRouter_id = router_id; + router_id = newRouter_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID, oldRouter_id, router_id)); + } + + /** + * + * + * @generated + */ + public String getFixed_ip_address() { + return fixed_ip_address; + } + + /** + * + * + * @generated + */ + public void setFixed_ip_address(String newFixed_ip_address) { + String oldFixed_ip_address = fixed_ip_address; + fixed_ip_address = newFixed_ip_address; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS, oldFixed_ip_address, fixed_ip_address)); + } + + /** + * + * + * @generated + */ + public String getFloating_ip_address() { + return floating_ip_address; + } + + /** + * + * + * @generated + */ + public void setFloating_ip_address(String newFloating_ip_address) { + String oldFloating_ip_address = floating_ip_address; + floating_ip_address = newFloating_ip_address; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS, oldFloating_ip_address, floating_ip_address)); + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + public String getPort_id() { + return port_id; + } + + /** + * + * + * @generated + */ + public void setPort_id(String newPort_id) { + String oldPort_id = port_id; + port_id = newPort_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID, oldPort_id, port_id)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.NEUTRON_FLOATING_IP__ID: + return getId(); + case NeutronPackage.NEUTRON_FLOATING_IP__NAME: + return getName(); + case NeutronPackage.NEUTRON_FLOATING_IP__STATUS: + return getStatus(); + case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID: + return getFloating_network_id(); + case NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID: + return getRouter_id(); + case NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS: + return getFixed_ip_address(); + case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS: + return getFloating_ip_address(); + case NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID: + return getTenant_id(); + case NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID: + return getPort_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.NEUTRON_FLOATING_IP__ID: + setId((String)newValue); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__NAME: + setName((String)newValue); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__STATUS: + setStatus((String)newValue); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID: + setFloating_network_id((String)newValue); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID: + setRouter_id((String)newValue); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS: + setFixed_ip_address((String)newValue); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS: + setFloating_ip_address((String)newValue); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID: + setTenant_id((String)newValue); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID: + setPort_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.NEUTRON_FLOATING_IP__ID: + setId(ID_EDEFAULT); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID: + setFloating_network_id(FLOATING_NETWORK_ID_EDEFAULT); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID: + setRouter_id(ROUTER_ID_EDEFAULT); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS: + setFixed_ip_address(FIXED_IP_ADDRESS_EDEFAULT); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS: + setFloating_ip_address(FLOATING_IP_ADDRESS_EDEFAULT); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + case NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID: + setPort_id(PORT_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.NEUTRON_FLOATING_IP__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case NeutronPackage.NEUTRON_FLOATING_IP__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.NEUTRON_FLOATING_IP__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID: + return FLOATING_NETWORK_ID_EDEFAULT == null ? floating_network_id != null : !FLOATING_NETWORK_ID_EDEFAULT.equals(floating_network_id); + case NeutronPackage.NEUTRON_FLOATING_IP__ROUTER_ID: + return ROUTER_ID_EDEFAULT == null ? router_id != null : !ROUTER_ID_EDEFAULT.equals(router_id); + case NeutronPackage.NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS: + return FIXED_IP_ADDRESS_EDEFAULT == null ? fixed_ip_address != null : !FIXED_IP_ADDRESS_EDEFAULT.equals(fixed_ip_address); + case NeutronPackage.NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS: + return FLOATING_IP_ADDRESS_EDEFAULT == null ? floating_ip_address != null : !FLOATING_IP_ADDRESS_EDEFAULT.equals(floating_ip_address); + case NeutronPackage.NEUTRON_FLOATING_IP__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + case NeutronPackage.NEUTRON_FLOATING_IP__PORT_ID: + return PORT_ID_EDEFAULT == null ? port_id != null : !PORT_ID_EDEFAULT.equals(port_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", status: "); + result.append(status); + result.append(", floating_network_id: "); + result.append(floating_network_id); + result.append(", router_id: "); + result.append(router_id); + result.append(", fixed_ip_address: "); + result.append(fixed_ip_address); + result.append(", floating_ip_address: "); + result.append(floating_ip_address); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(", port_id: "); + result.append(port_id); + result.append(')'); + return result.toString(); + } + +} //NeutronFloatingIpImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronObjectImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronObjectImpl.java new file mode 100644 index 0000000..7a5b76e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronObjectImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.NeutronObject; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Object'. + * + *

+ *

+ * + * @generated + */ +public abstract class NeutronObjectImpl extends MinimalEObjectImpl.Container implements NeutronObject { + /** + * + * + * @generated + */ + protected NeutronObjectImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_OBJECT; + } + +} //NeutronObjectImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java new file mode 100644 index 0000000..d105474 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java @@ -0,0 +1,1962 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.core.CorePackage; + +import org.openecomp.ncomp.openstack.neutron.AllocationPool; +import org.openecomp.ncomp.openstack.neutron.BindingProfile; +import org.openecomp.ncomp.openstack.neutron.BindingVifDetail; +import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest; +import org.openecomp.ncomp.openstack.neutron.CreatePortRequest; +import org.openecomp.ncomp.openstack.neutron.CreateRouterRequest; +import org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest; +import org.openecomp.ncomp.openstack.neutron.ExternalGateway; +import org.openecomp.ncomp.openstack.neutron.FixedIp; +import org.openecomp.ncomp.openstack.neutron.Network; +import org.openecomp.ncomp.openstack.neutron.NeutronFactory; +import org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp; +import org.openecomp.ncomp.openstack.neutron.NeutronObject; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronRequest; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule; +import org.openecomp.ncomp.openstack.neutron.NeutronService; +import org.openecomp.ncomp.openstack.neutron.Port; +import org.openecomp.ncomp.openstack.neutron.Router; +import org.openecomp.ncomp.openstack.neutron.Subnet; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class NeutronPackageImpl extends EPackageImpl implements NeutronPackage { + /** + * + * + * @generated + */ + private EClass neutronServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronObjectEClass = null; + + /** + * + * + * @generated + */ + private EClass networkEClass = null; + + /** + * + * + * @generated + */ + private EClass subnetEClass = null; + + /** + * + * + * @generated + */ + private EClass allocationPoolEClass = null; + + /** + * + * + * @generated + */ + private EClass routerEClass = null; + + /** + * + * + * @generated + */ + private EClass portEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronSecurityGroupEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronSecurityRuleEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronFloatingIpEClass = null; + + /** + * + * + * @generated + */ + private EClass bindingProfileEClass = null; + + /** + * + * + * @generated + */ + private EClass bindingVifDetailEClass = null; + + /** + * + * + * @generated + */ + private EClass fixedIpEClass = null; + + /** + * + * + * @generated + */ + private EClass externalGatewayEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass createNetworkRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass createSubnetRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass createRouterRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass createPortRequestEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#eNS_URI + * @see #init() + * @generated + */ + private NeutronPackageImpl() { + super(eNS_URI, NeutronFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link NeutronPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static NeutronPackage init() { + if (isInited) return (NeutronPackage)EPackage.Registry.INSTANCE.getEPackage(NeutronPackage.eNS_URI); + + // Obtain or create and register package + NeutronPackageImpl theNeutronPackage = (NeutronPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof NeutronPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new NeutronPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theNeutronPackage.createPackageContents(); + + // Initialize created meta-data + theNeutronPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theNeutronPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(NeutronPackage.eNS_URI, theNeutronPackage); + return theNeutronPackage; + } + + /** + * + * + * @generated + */ + public EClass getNeutronService() { + return neutronServiceEClass; + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__CreateNetwork__CreateNetworkRequest() { + return neutronServiceEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__CreateSubnet__CreateSubnetRequest() { + return neutronServiceEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__CreatePort__CreatePortRequest() { + return neutronServiceEClass.getEOperations().get(2); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__CreateRouter__CreateRouterRequest() { + return neutronServiceEClass.getEOperations().get(3); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__DeleteNetwork__String_String() { + return neutronServiceEClass.getEOperations().get(4); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__DeleteSubnet__String_String() { + return neutronServiceEClass.getEOperations().get(5); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__DeletePort__String_String() { + return neutronServiceEClass.getEOperations().get(6); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__DeleteRouter__String_String() { + return neutronServiceEClass.getEOperations().get(7); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__AssociateFloatingIp__String_String_String() { + return neutronServiceEClass.getEOperations().get(8); + } + + /** + * + * + * @generated + */ + public EClass getNeutronObject() { + return neutronObjectEClass; + } + + /** + * + * + * @generated + */ + public EClass getNetwork() { + return networkEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Id() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Name() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Admin_state_up() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Provider_network_type() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Provider_physical_network() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Provider_segmentation_id() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Router_external() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Shared() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Status() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Subnets() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Tenant_id() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EClass getSubnet() { + return subnetEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Id() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Name() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Status() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Admin_state_up() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Cidr() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSubnet_Allocation_pools() { + return (EReference)subnetEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Dns_nameservers() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Enable_dhcp() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Gateway_ip() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Host_routes() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Ip_version() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Network_id() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Tenant_id() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EClass getAllocationPool() { + return allocationPoolEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAllocationPool_Start() { + return (EAttribute)allocationPoolEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getAllocationPool_End() { + return (EAttribute)allocationPoolEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getRouter() { + return routerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Id() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Name() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Status() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Admin_state_up() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getRouter_External_gateway_info() { + return (EReference)routerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Tenant_id() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getPort() { + return portEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Name() { + return (EAttribute)portEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Status() { + return (EAttribute)portEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Admin_state_up() { + return (EAttribute)portEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getPort_External_gateway_info() { + return (EReference)portEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Tenant_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Allowed_address_pairs() { + return (EAttribute)portEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Binding_host_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getPort_Binding_profile() { + return (EReference)portEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getPort_Binding_vif_details() { + return (EReference)portEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Binding_vif_type() { + return (EAttribute)portEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Binding_vnic_type() { + return (EAttribute)portEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Device_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Device_owner() { + return (EAttribute)portEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Extra_dhcp_opts() { + return (EAttribute)portEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EReference getPort_Fixed_ips() { + return (EReference)portEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Mac_address() { + return (EAttribute)portEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Network_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Security_groups() { + return (EAttribute)portEClass.getEStructuralFeatures().get(18); + } + + /** + * + * + * @generated + */ + public EClass getNeutronSecurityGroup() { + return neutronSecurityGroupEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityGroup_Id() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityGroup_Name() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityGroup_Description() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getNeutronSecurityGroup_Security_group_rules() { + return (EReference)neutronSecurityGroupEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityGroup_Tenant_id() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getNeutronSecurityRule() { + return neutronSecurityRuleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Direction() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Ethertype() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Port_range_min() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Port_range_max() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Protocol() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Remote_group_id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Remote_ip_prefix() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Security_group_id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Tenant_id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EClass getNeutronFloatingIp() { + return neutronFloatingIpEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Name() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Status() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Floating_network_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Router_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Fixed_ip_address() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Floating_ip_address() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Tenant_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Port_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EClass getBindingProfile() { + return bindingProfileEClass; + } + + /** + * + * + * @generated + */ + public EClass getBindingVifDetail() { + return bindingVifDetailEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getBindingVifDetail_Ovs_hybrid_plug() { + return (EAttribute)bindingVifDetailEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getBindingVifDetail_Port_filter() { + return (EAttribute)bindingVifDetailEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFixedIp() { + return fixedIpEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFixedIp_Ip_address() { + return (EAttribute)fixedIpEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFixedIp_Subnet_id() { + return (EAttribute)fixedIpEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getExternalGateway() { + return externalGatewayEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getExternalGateway_Enable_snat() { + return (EAttribute)externalGatewayEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getExternalGateway_Network_id() { + return (EAttribute)externalGatewayEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getNeutronRequest() { + return neutronRequestEClass; + } + + /** + * + * + * @generated + */ + public EClass getCreateNetworkRequest() { + return createNetworkRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_Name() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_ProviderNetworkType() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_ProviderPhysicalNetwork() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_ProviderSegmentationId() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_Admin_state_up() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_Shared() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getCreateSubnetRequest() { + return createSubnetRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Name() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Network_id() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Ip_version() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Cidr() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getCreateSubnetRequest_Allocation_pools() { + return (EReference)createSubnetRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Dns_nameservers() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Enable_dhcp() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Gateway_ip() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getCreateRouterRequest() { + return createRouterRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Name() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Admin_state_up() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Shared() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_ExternalNetwork() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Ports() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Subnets() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getCreatePortRequest() { + return createPortRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Name() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_BindingVnicType() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Status() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Admin_state_up() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getCreatePortRequest_Fixed_ips() { + return (EReference)createPortRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Mac_address() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Network_id() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public NeutronFactory getNeutronFactory() { + return (NeutronFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + neutronServiceEClass = createEClass(NEUTRON_SERVICE); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_PORT__STRING_STRING); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING); + + neutronObjectEClass = createEClass(NEUTRON_OBJECT); + + networkEClass = createEClass(NETWORK); + createEAttribute(networkEClass, NETWORK__ID); + createEAttribute(networkEClass, NETWORK__NAME); + createEAttribute(networkEClass, NETWORK__ADMIN_STATE_UP); + createEAttribute(networkEClass, NETWORK__PROVIDER_NETWORK_TYPE); + createEAttribute(networkEClass, NETWORK__PROVIDER_PHYSICAL_NETWORK); + createEAttribute(networkEClass, NETWORK__PROVIDER_SEGMENTATION_ID); + createEAttribute(networkEClass, NETWORK__ROUTER_EXTERNAL); + createEAttribute(networkEClass, NETWORK__SHARED); + createEAttribute(networkEClass, NETWORK__STATUS); + createEAttribute(networkEClass, NETWORK__SUBNETS); + createEAttribute(networkEClass, NETWORK__TENANT_ID); + + subnetEClass = createEClass(SUBNET); + createEAttribute(subnetEClass, SUBNET__ID); + createEAttribute(subnetEClass, SUBNET__NAME); + createEAttribute(subnetEClass, SUBNET__STATUS); + createEAttribute(subnetEClass, SUBNET__ADMIN_STATE_UP); + createEAttribute(subnetEClass, SUBNET__CIDR); + createEReference(subnetEClass, SUBNET__ALLOCATION_POOLS); + createEAttribute(subnetEClass, SUBNET__DNS_NAMESERVERS); + createEAttribute(subnetEClass, SUBNET__ENABLE_DHCP); + createEAttribute(subnetEClass, SUBNET__GATEWAY_IP); + createEAttribute(subnetEClass, SUBNET__HOST_ROUTES); + createEAttribute(subnetEClass, SUBNET__IP_VERSION); + createEAttribute(subnetEClass, SUBNET__NETWORK_ID); + createEAttribute(subnetEClass, SUBNET__TENANT_ID); + + allocationPoolEClass = createEClass(ALLOCATION_POOL); + createEAttribute(allocationPoolEClass, ALLOCATION_POOL__START); + createEAttribute(allocationPoolEClass, ALLOCATION_POOL__END); + + routerEClass = createEClass(ROUTER); + createEAttribute(routerEClass, ROUTER__ID); + createEAttribute(routerEClass, ROUTER__NAME); + createEAttribute(routerEClass, ROUTER__STATUS); + createEAttribute(routerEClass, ROUTER__ADMIN_STATE_UP); + createEReference(routerEClass, ROUTER__EXTERNAL_GATEWAY_INFO); + createEAttribute(routerEClass, ROUTER__TENANT_ID); + + portEClass = createEClass(PORT); + createEAttribute(portEClass, PORT__ID); + createEAttribute(portEClass, PORT__NAME); + createEAttribute(portEClass, PORT__STATUS); + createEAttribute(portEClass, PORT__ADMIN_STATE_UP); + createEReference(portEClass, PORT__EXTERNAL_GATEWAY_INFO); + createEAttribute(portEClass, PORT__TENANT_ID); + createEAttribute(portEClass, PORT__ALLOWED_ADDRESS_PAIRS); + createEAttribute(portEClass, PORT__BINDING_HOST_ID); + createEReference(portEClass, PORT__BINDING_PROFILE); + createEReference(portEClass, PORT__BINDING_VIF_DETAILS); + createEAttribute(portEClass, PORT__BINDING_VIF_TYPE); + createEAttribute(portEClass, PORT__BINDING_VNIC_TYPE); + createEAttribute(portEClass, PORT__DEVICE_ID); + createEAttribute(portEClass, PORT__DEVICE_OWNER); + createEAttribute(portEClass, PORT__EXTRA_DHCP_OPTS); + createEReference(portEClass, PORT__FIXED_IPS); + createEAttribute(portEClass, PORT__MAC_ADDRESS); + createEAttribute(portEClass, PORT__NETWORK_ID); + createEAttribute(portEClass, PORT__SECURITY_GROUPS); + + neutronSecurityGroupEClass = createEClass(NEUTRON_SECURITY_GROUP); + createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__ID); + createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__NAME); + createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__DESCRIPTION); + createEReference(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES); + createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__TENANT_ID); + + neutronSecurityRuleEClass = createEClass(NEUTRON_SECURITY_RULE); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__ID); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__DIRECTION); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__ETHERTYPE); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__PORT_RANGE_MIN); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__PORT_RANGE_MAX); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__PROTOCOL); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__TENANT_ID); + + neutronFloatingIpEClass = createEClass(NEUTRON_FLOATING_IP); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__ID); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__NAME); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__STATUS); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__ROUTER_ID); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__TENANT_ID); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__PORT_ID); + + bindingProfileEClass = createEClass(BINDING_PROFILE); + + bindingVifDetailEClass = createEClass(BINDING_VIF_DETAIL); + createEAttribute(bindingVifDetailEClass, BINDING_VIF_DETAIL__OVS_HYBRID_PLUG); + createEAttribute(bindingVifDetailEClass, BINDING_VIF_DETAIL__PORT_FILTER); + + fixedIpEClass = createEClass(FIXED_IP); + createEAttribute(fixedIpEClass, FIXED_IP__IP_ADDRESS); + createEAttribute(fixedIpEClass, FIXED_IP__SUBNET_ID); + + externalGatewayEClass = createEClass(EXTERNAL_GATEWAY); + createEAttribute(externalGatewayEClass, EXTERNAL_GATEWAY__ENABLE_SNAT); + createEAttribute(externalGatewayEClass, EXTERNAL_GATEWAY__NETWORK_ID); + + neutronRequestEClass = createEClass(NEUTRON_REQUEST); + + createNetworkRequestEClass = createEClass(CREATE_NETWORK_REQUEST); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__NAME); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__ADMIN_STATE_UP); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__SHARED); + + createSubnetRequestEClass = createEClass(CREATE_SUBNET_REQUEST); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__NAME); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__NETWORK_ID); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__IP_VERSION); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__CIDR); + createEReference(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__ALLOCATION_POOLS); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__DNS_NAMESERVERS); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__ENABLE_DHCP); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__GATEWAY_IP); + + createRouterRequestEClass = createEClass(CREATE_ROUTER_REQUEST); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__NAME); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__ADMIN_STATE_UP); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__SHARED); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__PORTS); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__SUBNETS); + + createPortRequestEClass = createEClass(CREATE_PORT_REQUEST); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__NAME); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__BINDING_VNIC_TYPE); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__STATUS); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__ADMIN_STATE_UP); + createEReference(createPortRequestEClass, CREATE_PORT_REQUEST__FIXED_IPS); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__MAC_ADDRESS); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__NETWORK_ID); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + networkEClass.getESuperTypes().add(this.getNeutronObject()); + subnetEClass.getESuperTypes().add(this.getNeutronObject()); + routerEClass.getESuperTypes().add(this.getNeutronObject()); + portEClass.getESuperTypes().add(this.getNeutronObject()); + neutronSecurityGroupEClass.getESuperTypes().add(this.getNeutronObject()); + neutronSecurityRuleEClass.getESuperTypes().add(this.getNeutronObject()); + neutronFloatingIpEClass.getESuperTypes().add(this.getNeutronObject()); + neutronRequestEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + createNetworkRequestEClass.getESuperTypes().add(this.getNeutronRequest()); + createSubnetRequestEClass.getESuperTypes().add(this.getNeutronRequest()); + createRouterRequestEClass.getESuperTypes().add(this.getNeutronRequest()); + createPortRequestEClass.getESuperTypes().add(this.getNeutronRequest()); + + // Initialize classes, features, and operations; add parameters + initEClass(neutronServiceEClass, NeutronService.class, "NeutronService", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + EOperation op = initEOperation(getNeutronService__CreateNetwork__CreateNetworkRequest(), this.getNetwork(), "createNetwork", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreateNetworkRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__CreateSubnet__CreateSubnetRequest(), this.getSubnet(), "createSubnet", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreateSubnetRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__CreatePort__CreatePortRequest(), this.getPort(), "createPort", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreatePortRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__CreateRouter__CreateRouterRequest(), this.getRouter(), "createRouter", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreateRouterRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__DeleteNetwork__String_String(), null, "deleteNetwork", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__DeleteSubnet__String_String(), null, "deleteSubnet", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__DeletePort__String_String(), null, "deletePort", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__DeleteRouter__String_String(), null, "deleteRouter", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__AssociateFloatingIp__String_String_String(), null, "associateFloatingIp", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "ipId", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "portId", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(neutronObjectEClass, NeutronObject.class, "NeutronObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(networkEClass, Network.class, "Network", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNetwork_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Provider_network_type(), theEcorePackage.getEString(), "provider_network_type", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Provider_physical_network(), theEcorePackage.getEString(), "provider_physical_network", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Provider_segmentation_id(), theEcorePackage.getEIntegerObject(), "provider_segmentation_id", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Router_external(), theEcorePackage.getEBooleanObject(), "router_external", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Shared(), theEcorePackage.getEBooleanObject(), "shared", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Subnets(), theEcorePackage.getEString(), "subnets", null, 0, -1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(subnetEClass, Subnet.class, "Subnet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSubnet_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Cidr(), theEcorePackage.getEString(), "cidr", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSubnet_Allocation_pools(), this.getAllocationPool(), null, "allocation_pools", null, 0, -1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Dns_nameservers(), theEcorePackage.getEString(), "dns_nameservers", null, 0, -1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Enable_dhcp(), theEcorePackage.getEBooleanObject(), "enable_dhcp", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Gateway_ip(), theEcorePackage.getEString(), "gateway_ip", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Host_routes(), theEcorePackage.getEString(), "host_routes", null, 0, -1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Ip_version(), theEcorePackage.getEIntegerObject(), "ip_version", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Network_id(), theEcorePackage.getEString(), "network_id", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(allocationPoolEClass, AllocationPool.class, "AllocationPool", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAllocationPool_Start(), theEcorePackage.getEString(), "start", null, 0, 1, AllocationPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAllocationPool_End(), theEcorePackage.getEString(), "end", null, 0, 1, AllocationPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(routerEClass, Router.class, "Router", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRouter_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRouter_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRouter_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRouter_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getRouter_External_gateway_info(), this.getExternalGateway(), null, "external_gateway_info", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRouter_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(portEClass, Port.class, "Port", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPort_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPort_External_gateway_info(), this.getExternalGateway(), null, "external_gateway_info", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Allowed_address_pairs(), theEcorePackage.getEString(), "allowed_address_pairs", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Binding_host_id(), theEcorePackage.getEString(), "binding_host_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPort_Binding_profile(), this.getBindingProfile(), null, "binding_profile", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPort_Binding_vif_details(), this.getBindingVifDetail(), null, "binding_vif_details", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Binding_vif_type(), theEcorePackage.getEString(), "binding_vif_type", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Binding_vnic_type(), theEcorePackage.getEString(), "binding_vnic_type", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Device_id(), theEcorePackage.getEString(), "device_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Device_owner(), theEcorePackage.getEString(), "device_owner", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Extra_dhcp_opts(), theEcorePackage.getEString(), "extra_dhcp_opts", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPort_Fixed_ips(), this.getFixedIp(), null, "fixed_ips", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Mac_address(), theEcorePackage.getEString(), "mac_address", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Network_id(), theEcorePackage.getEString(), "network_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Security_groups(), theEcorePackage.getEString(), "security_groups", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(neutronSecurityGroupEClass, NeutronSecurityGroup.class, "NeutronSecurityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNeutronSecurityGroup_Id(), theEcorePackage.getEString(), "id", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityGroup_Name(), theEcorePackage.getEString(), "name", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityGroup_Description(), theEcorePackage.getEString(), "description", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getNeutronSecurityGroup_Security_group_rules(), this.getNeutronSecurityRule(), null, "security_group_rules", null, 0, -1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityGroup_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(neutronSecurityRuleEClass, NeutronSecurityRule.class, "NeutronSecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNeutronSecurityRule_Id(), theEcorePackage.getEString(), "id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Direction(), theEcorePackage.getEString(), "direction", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Ethertype(), theEcorePackage.getEString(), "ethertype", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Port_range_min(), theEcorePackage.getEIntegerObject(), "port_range_min", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Port_range_max(), theEcorePackage.getEIntegerObject(), "port_range_max", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Protocol(), theEcorePackage.getEString(), "protocol", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Remote_group_id(), theEcorePackage.getEString(), "remote_group_id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Remote_ip_prefix(), theEcorePackage.getEString(), "remote_ip_prefix", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Security_group_id(), theEcorePackage.getEString(), "security_group_id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(neutronFloatingIpEClass, NeutronFloatingIp.class, "NeutronFloatingIp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNeutronFloatingIp_Id(), theEcorePackage.getEString(), "id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Name(), theEcorePackage.getEString(), "name", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Status(), theEcorePackage.getEString(), "status", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Floating_network_id(), theEcorePackage.getEString(), "floating_network_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Router_id(), theEcorePackage.getEString(), "router_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Fixed_ip_address(), theEcorePackage.getEString(), "fixed_ip_address", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Floating_ip_address(), theEcorePackage.getEString(), "floating_ip_address", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Port_id(), theEcorePackage.getEString(), "port_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(bindingProfileEClass, BindingProfile.class, "BindingProfile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(bindingVifDetailEClass, BindingVifDetail.class, "BindingVifDetail", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBindingVifDetail_Ovs_hybrid_plug(), theEcorePackage.getEBooleanObject(), "ovs_hybrid_plug", null, 0, 1, BindingVifDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getBindingVifDetail_Port_filter(), theEcorePackage.getEBooleanObject(), "port_filter", null, 0, 1, BindingVifDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fixedIpEClass, FixedIp.class, "FixedIp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFixedIp_Ip_address(), theEcorePackage.getEString(), "ip_address", null, 0, 1, FixedIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFixedIp_Subnet_id(), theEcorePackage.getEString(), "subnet_id", null, 0, 1, FixedIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(externalGatewayEClass, ExternalGateway.class, "ExternalGateway", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getExternalGateway_Enable_snat(), theEcorePackage.getEBooleanObject(), "enable_snat", null, 0, 1, ExternalGateway.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getExternalGateway_Network_id(), theEcorePackage.getEString(), "network_id", null, 0, 1, ExternalGateway.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(neutronRequestEClass, NeutronRequest.class, "NeutronRequest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(createNetworkRequestEClass, CreateNetworkRequest.class, "CreateNetworkRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCreateNetworkRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_ProviderNetworkType(), theEcorePackage.getEString(), "providerNetworkType", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_ProviderPhysicalNetwork(), theEcorePackage.getEString(), "providerPhysicalNetwork", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_ProviderSegmentationId(), theEcorePackage.getEInt(), "providerSegmentationId", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_Shared(), theEcorePackage.getEBooleanObject(), "shared", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(createSubnetRequestEClass, CreateSubnetRequest.class, "CreateSubnetRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCreateSubnetRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Network_id(), theEcorePackage.getEString(), "network_id", null, 1, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Ip_version(), theEcorePackage.getEInt(), "ip_version", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Cidr(), theEcorePackage.getEString(), "cidr", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCreateSubnetRequest_Allocation_pools(), this.getAllocationPool(), null, "allocation_pools", null, 0, -1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Dns_nameservers(), theEcorePackage.getEString(), "dns_nameservers", null, 0, -1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Enable_dhcp(), theEcorePackage.getEBooleanObject(), "enable_dhcp", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Gateway_ip(), theEcorePackage.getEString(), "gateway_ip", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(createRouterRequestEClass, CreateRouterRequest.class, "CreateRouterRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCreateRouterRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_Shared(), theEcorePackage.getEBooleanObject(), "shared", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_ExternalNetwork(), theEcorePackage.getEString(), "externalNetwork", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_Ports(), theEcorePackage.getEString(), "ports", null, 0, -1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_Subnets(), theEcorePackage.getEString(), "subnets", null, 0, -1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(createPortRequestEClass, CreatePortRequest.class, "CreatePortRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCreatePortRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_BindingVnicType(), theEcorePackage.getEString(), "bindingVnicType", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_Status(), theEcorePackage.getEString(), "status", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCreatePortRequest_Fixed_ips(), this.getFixedIp(), null, "fixed_ips", null, 0, -1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_Mac_address(), theEcorePackage.getEString(), "mac_address", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_Network_id(), theEcorePackage.getEString(), "network_id", null, 1, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org/sirius/openstack + createOpenstackAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "openstack", "http://openecomp.org/sirius/openstack" + }); + } + + /** + * Initializes the annotations for http://openecomp.org/sirius/openstack. + * + * + * @generated + */ + protected void createOpenstackAnnotations() { + String source = "http://openecomp.org/sirius/openstack"; + addAnnotation + (getCreateNetworkRequest_ProviderNetworkType(), + source, + new String[] { + "name", "provider:network_type" + }); + addAnnotation + (getCreateNetworkRequest_ProviderPhysicalNetwork(), + source, + new String[] { + "name", "provider:physical_network" + }); + addAnnotation + (getCreateNetworkRequest_ProviderSegmentationId(), + source, + new String[] { + "name", "provider:segmentation_id" + }); + addAnnotation + (getCreatePortRequest_BindingVnicType(), + source, + new String[] { + "name", "binding:vnic_type" + }); + addAnnotation + (getCreatePortRequest_Fixed_ips(), + source, + new String[] { + "removeEmptyList", "true" + }); + } + +} //NeutronPackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java new file mode 100644 index 0000000..d2c350d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronRequest; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Request'. + * + *

+ *

+ * + * @generated + */ +public abstract class NeutronRequestImpl extends OpenStackRequestImpl implements NeutronRequest { + /** + * + * + * @generated + */ + protected NeutronRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_REQUEST; + } + +} //NeutronRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java new file mode 100644 index 0000000..70d84c1 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java @@ -0,0 +1,404 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Security Group'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getDescription Description}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getSecurity_group_rules Security group rules}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getTenant_id Tenant id}
  • + *
+ *

+ * + * @generated + */ +public class NeutronSecurityGroupImpl extends NeutronObjectImpl implements NeutronSecurityGroup { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() Description}' attribute. + * + * + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getSecurity_group_rules() Security group rules}' containment reference list. + * + * + * @see #getSecurity_group_rules() + * @generated + * @ordered + */ + protected EList security_group_rules; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected NeutronSecurityGroupImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_SECURITY_GROUP; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_GROUP__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_GROUP__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getDescription() { + return description; + } + + /** + * + * + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION, oldDescription, description)); + } + + /** + * + * + * @generated + */ + public EList getSecurity_group_rules() { + if (security_group_rules == null) { + security_group_rules = new EObjectContainmentEList(NeutronSecurityRule.class, this, NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES); + } + return security_group_rules; + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES: + return ((InternalEList)getSecurity_group_rules()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.NEUTRON_SECURITY_GROUP__ID: + return getId(); + case NeutronPackage.NEUTRON_SECURITY_GROUP__NAME: + return getName(); + case NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION: + return getDescription(); + case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES: + return getSecurity_group_rules(); + case NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID: + return getTenant_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.NEUTRON_SECURITY_GROUP__ID: + setId((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_GROUP__NAME: + setName((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION: + setDescription((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES: + getSecurity_group_rules().clear(); + getSecurity_group_rules().addAll((Collection)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID: + setTenant_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.NEUTRON_SECURITY_GROUP__ID: + setId(ID_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_GROUP__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES: + getSecurity_group_rules().clear(); + return; + case NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.NEUTRON_SECURITY_GROUP__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case NeutronPackage.NEUTRON_SECURITY_GROUP__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.NEUTRON_SECURITY_GROUP__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES: + return security_group_rules != null && !security_group_rules.isEmpty(); + case NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", description: "); + result.append(description); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(')'); + return result.toString(); + } + +} //NeutronSecurityGroupImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityRuleImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityRuleImpl.java new file mode 100644 index 0000000..3a5d53e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityRuleImpl.java @@ -0,0 +1,669 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Security Rule'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getDirection Direction}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getEthertype Ethertype}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getPort_range_min Port range min}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getPort_range_max Port range max}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getProtocol Protocol}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getRemote_group_id Remote group id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getRemote_ip_prefix Remote ip prefix}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getSecurity_group_id Security group id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getTenant_id Tenant id}
  • + *
+ *

+ * + * @generated + */ +public class NeutronSecurityRuleImpl extends NeutronObjectImpl implements NeutronSecurityRule { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected static final String DIRECTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDirection() Direction}' attribute. + * + * + * @see #getDirection() + * @generated + * @ordered + */ + protected String direction = DIRECTION_EDEFAULT; + + /** + * The default value of the '{@link #getEthertype() Ethertype}' attribute. + * + * + * @see #getEthertype() + * @generated + * @ordered + */ + protected static final String ETHERTYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEthertype() Ethertype}' attribute. + * + * + * @see #getEthertype() + * @generated + * @ordered + */ + protected String ethertype = ETHERTYPE_EDEFAULT; + + /** + * The default value of the '{@link #getPort_range_min() Port range min}' attribute. + * + * + * @see #getPort_range_min() + * @generated + * @ordered + */ + protected static final Integer PORT_RANGE_MIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPort_range_min() Port range min}' attribute. + * + * + * @see #getPort_range_min() + * @generated + * @ordered + */ + protected Integer port_range_min = PORT_RANGE_MIN_EDEFAULT; + + /** + * The default value of the '{@link #getPort_range_max() Port range max}' attribute. + * + * + * @see #getPort_range_max() + * @generated + * @ordered + */ + protected static final Integer PORT_RANGE_MAX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPort_range_max() Port range max}' attribute. + * + * + * @see #getPort_range_max() + * @generated + * @ordered + */ + protected Integer port_range_max = PORT_RANGE_MAX_EDEFAULT; + + /** + * The default value of the '{@link #getProtocol() Protocol}' attribute. + * + * + * @see #getProtocol() + * @generated + * @ordered + */ + protected static final String PROTOCOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProtocol() Protocol}' attribute. + * + * + * @see #getProtocol() + * @generated + * @ordered + */ + protected String protocol = PROTOCOL_EDEFAULT; + + /** + * The default value of the '{@link #getRemote_group_id() Remote group id}' attribute. + * + * + * @see #getRemote_group_id() + * @generated + * @ordered + */ + protected static final String REMOTE_GROUP_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRemote_group_id() Remote group id}' attribute. + * + * + * @see #getRemote_group_id() + * @generated + * @ordered + */ + protected String remote_group_id = REMOTE_GROUP_ID_EDEFAULT; + + /** + * The default value of the '{@link #getRemote_ip_prefix() Remote ip prefix}' attribute. + * + * + * @see #getRemote_ip_prefix() + * @generated + * @ordered + */ + protected static final String REMOTE_IP_PREFIX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRemote_ip_prefix() Remote ip prefix}' attribute. + * + * + * @see #getRemote_ip_prefix() + * @generated + * @ordered + */ + protected String remote_ip_prefix = REMOTE_IP_PREFIX_EDEFAULT; + + /** + * The default value of the '{@link #getSecurity_group_id() Security group id}' attribute. + * + * + * @see #getSecurity_group_id() + * @generated + * @ordered + */ + protected static final String SECURITY_GROUP_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSecurity_group_id() Security group id}' attribute. + * + * + * @see #getSecurity_group_id() + * @generated + * @ordered + */ + protected String security_group_id = SECURITY_GROUP_ID_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected NeutronSecurityRuleImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_SECURITY_RULE; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getDirection() { + return direction; + } + + /** + * + * + * @generated + */ + public void setDirection(String newDirection) { + String oldDirection = direction; + direction = newDirection; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION, oldDirection, direction)); + } + + /** + * + * + * @generated + */ + public String getEthertype() { + return ethertype; + } + + /** + * + * + * @generated + */ + public void setEthertype(String newEthertype) { + String oldEthertype = ethertype; + ethertype = newEthertype; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE, oldEthertype, ethertype)); + } + + /** + * + * + * @generated + */ + public Integer getPort_range_min() { + return port_range_min; + } + + /** + * + * + * @generated + */ + public void setPort_range_min(Integer newPort_range_min) { + Integer oldPort_range_min = port_range_min; + port_range_min = newPort_range_min; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN, oldPort_range_min, port_range_min)); + } + + /** + * + * + * @generated + */ + public Integer getPort_range_max() { + return port_range_max; + } + + /** + * + * + * @generated + */ + public void setPort_range_max(Integer newPort_range_max) { + Integer oldPort_range_max = port_range_max; + port_range_max = newPort_range_max; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX, oldPort_range_max, port_range_max)); + } + + /** + * + * + * @generated + */ + public String getProtocol() { + return protocol; + } + + /** + * + * + * @generated + */ + public void setProtocol(String newProtocol) { + String oldProtocol = protocol; + protocol = newProtocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL, oldProtocol, protocol)); + } + + /** + * + * + * @generated + */ + public String getRemote_group_id() { + return remote_group_id; + } + + /** + * + * + * @generated + */ + public void setRemote_group_id(String newRemote_group_id) { + String oldRemote_group_id = remote_group_id; + remote_group_id = newRemote_group_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID, oldRemote_group_id, remote_group_id)); + } + + /** + * + * + * @generated + */ + public String getRemote_ip_prefix() { + return remote_ip_prefix; + } + + /** + * + * + * @generated + */ + public void setRemote_ip_prefix(String newRemote_ip_prefix) { + String oldRemote_ip_prefix = remote_ip_prefix; + remote_ip_prefix = newRemote_ip_prefix; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX, oldRemote_ip_prefix, remote_ip_prefix)); + } + + /** + * + * + * @generated + */ + public String getSecurity_group_id() { + return security_group_id; + } + + /** + * + * + * @generated + */ + public void setSecurity_group_id(String newSecurity_group_id) { + String oldSecurity_group_id = security_group_id; + security_group_id = newSecurity_group_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID, oldSecurity_group_id, security_group_id)); + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.NEUTRON_SECURITY_RULE__ID: + return getId(); + case NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION: + return getDirection(); + case NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE: + return getEthertype(); + case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN: + return getPort_range_min(); + case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX: + return getPort_range_max(); + case NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL: + return getProtocol(); + case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID: + return getRemote_group_id(); + case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX: + return getRemote_ip_prefix(); + case NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID: + return getSecurity_group_id(); + case NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID: + return getTenant_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.NEUTRON_SECURITY_RULE__ID: + setId((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION: + setDirection((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE: + setEthertype((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN: + setPort_range_min((Integer)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX: + setPort_range_max((Integer)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL: + setProtocol((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID: + setRemote_group_id((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX: + setRemote_ip_prefix((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID: + setSecurity_group_id((String)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID: + setTenant_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.NEUTRON_SECURITY_RULE__ID: + setId(ID_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION: + setDirection(DIRECTION_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE: + setEthertype(ETHERTYPE_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN: + setPort_range_min(PORT_RANGE_MIN_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX: + setPort_range_max(PORT_RANGE_MAX_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL: + setProtocol(PROTOCOL_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID: + setRemote_group_id(REMOTE_GROUP_ID_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX: + setRemote_ip_prefix(REMOTE_IP_PREFIX_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID: + setSecurity_group_id(SECURITY_GROUP_ID_EDEFAULT); + return; + case NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.NEUTRON_SECURITY_RULE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case NeutronPackage.NEUTRON_SECURITY_RULE__DIRECTION: + return DIRECTION_EDEFAULT == null ? direction != null : !DIRECTION_EDEFAULT.equals(direction); + case NeutronPackage.NEUTRON_SECURITY_RULE__ETHERTYPE: + return ETHERTYPE_EDEFAULT == null ? ethertype != null : !ETHERTYPE_EDEFAULT.equals(ethertype); + case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MIN: + return PORT_RANGE_MIN_EDEFAULT == null ? port_range_min != null : !PORT_RANGE_MIN_EDEFAULT.equals(port_range_min); + case NeutronPackage.NEUTRON_SECURITY_RULE__PORT_RANGE_MAX: + return PORT_RANGE_MAX_EDEFAULT == null ? port_range_max != null : !PORT_RANGE_MAX_EDEFAULT.equals(port_range_max); + case NeutronPackage.NEUTRON_SECURITY_RULE__PROTOCOL: + return PROTOCOL_EDEFAULT == null ? protocol != null : !PROTOCOL_EDEFAULT.equals(protocol); + case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID: + return REMOTE_GROUP_ID_EDEFAULT == null ? remote_group_id != null : !REMOTE_GROUP_ID_EDEFAULT.equals(remote_group_id); + case NeutronPackage.NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX: + return REMOTE_IP_PREFIX_EDEFAULT == null ? remote_ip_prefix != null : !REMOTE_IP_PREFIX_EDEFAULT.equals(remote_ip_prefix); + case NeutronPackage.NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID: + return SECURITY_GROUP_ID_EDEFAULT == null ? security_group_id != null : !SECURITY_GROUP_ID_EDEFAULT.equals(security_group_id); + case NeutronPackage.NEUTRON_SECURITY_RULE__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", direction: "); + result.append(direction); + result.append(", ethertype: "); + result.append(ethertype); + result.append(", port_range_min: "); + result.append(port_range_min); + result.append(", port_range_max: "); + result.append(port_range_max); + result.append(", protocol: "); + result.append(protocol); + result.append(", remote_group_id: "); + result.append(remote_group_id); + result.append(", remote_ip_prefix: "); + result.append(remote_ip_prefix); + result.append(", security_group_id: "); + result.append(security_group_id); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(')'); + return result.toString(); + } + +} //NeutronSecurityRuleImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronServiceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronServiceImpl.java new file mode 100644 index 0000000..9dc051f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronServiceImpl.java @@ -0,0 +1,204 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest; +import org.openecomp.ncomp.openstack.neutron.CreatePortRequest; +import org.openecomp.ncomp.openstack.neutron.CreateRouterRequest; +import org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest; +import org.openecomp.ncomp.openstack.neutron.Network; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronService; +import org.openecomp.ncomp.openstack.neutron.Port; +import org.openecomp.ncomp.openstack.neutron.Router; +import org.openecomp.ncomp.openstack.neutron.Subnet; +import java.lang.reflect.InvocationTargetException; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Service'. + * + *

+ *

+ * + * @generated + */ +public abstract class NeutronServiceImpl extends MinimalEObjectImpl.Container implements NeutronService { + /** + * + * + * @generated + */ + protected NeutronServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_SERVICE; + } + + /** + * + * + * @generated + */ + public Network createNetwork(CreateNetworkRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Subnet createSubnet(CreateSubnetRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Port createPort(CreatePortRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Router createRouter(CreateRouterRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteNetwork(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteSubnet(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deletePort(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteRouter(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void associateFloatingIp(String projectName, String ipId, String portId) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case NeutronPackage.NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST: + return createNetwork((CreateNetworkRequest)arguments.get(0)); + case NeutronPackage.NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST: + return createSubnet((CreateSubnetRequest)arguments.get(0)); + case NeutronPackage.NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST: + return createPort((CreatePortRequest)arguments.get(0)); + case NeutronPackage.NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST: + return createRouter((CreateRouterRequest)arguments.get(0)); + case NeutronPackage.NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING: + deleteNetwork((String)arguments.get(0), (String)arguments.get(1)); + return null; + case NeutronPackage.NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING: + deleteSubnet((String)arguments.get(0), (String)arguments.get(1)); + return null; + case NeutronPackage.NEUTRON_SERVICE___DELETE_PORT__STRING_STRING: + deletePort((String)arguments.get(0), (String)arguments.get(1)); + return null; + case NeutronPackage.NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING: + deleteRouter((String)arguments.get(0), (String)arguments.get(1)); + return null; + case NeutronPackage.NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING: + associateFloatingIp((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //NeutronServiceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java new file mode 100644 index 0000000..2af9613 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java @@ -0,0 +1,1146 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.BindingProfile; +import org.openecomp.ncomp.openstack.neutron.BindingVifDetail; +import org.openecomp.ncomp.openstack.neutron.ExternalGateway; +import org.openecomp.ncomp.openstack.neutron.FixedIp; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.Port; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Port'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getExternal_gateway_info External gateway info}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getTenant_id Tenant id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getAllowed_address_pairs Allowed address pairs}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_host_id Binding host id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_profile Binding profile}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_vif_details Binding vif details}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_vif_type Binding vif type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_vnic_type Binding vnic type}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getDevice_id Device id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getDevice_owner Device owner}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getExtra_dhcp_opts Extra dhcp opts}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getFixed_ips Fixed ips}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getMac_address Mac address}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getNetwork_id Network id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getSecurity_groups Security groups}
  • + *
+ *

+ * + * @generated + */ +public class PortImpl extends NeutronObjectImpl implements Port { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The cached value of the '{@link #getExternal_gateway_info() External gateway info}' containment reference. + * + * + * @see #getExternal_gateway_info() + * @generated + * @ordered + */ + protected ExternalGateway external_gateway_info; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getAllowed_address_pairs() Allowed address pairs}' attribute list. + * + * + * @see #getAllowed_address_pairs() + * @generated + * @ordered + */ + protected EList allowed_address_pairs; + + /** + * The default value of the '{@link #getBinding_host_id() Binding host id}' attribute. + * + * + * @see #getBinding_host_id() + * @generated + * @ordered + */ + protected static final String BINDING_HOST_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBinding_host_id() Binding host id}' attribute. + * + * + * @see #getBinding_host_id() + * @generated + * @ordered + */ + protected String binding_host_id = BINDING_HOST_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getBinding_profile() Binding profile}' containment reference. + * + * + * @see #getBinding_profile() + * @generated + * @ordered + */ + protected BindingProfile binding_profile; + + /** + * The cached value of the '{@link #getBinding_vif_details() Binding vif details}' containment reference. + * + * + * @see #getBinding_vif_details() + * @generated + * @ordered + */ + protected BindingVifDetail binding_vif_details; + + /** + * The default value of the '{@link #getBinding_vif_type() Binding vif type}' attribute. + * + * + * @see #getBinding_vif_type() + * @generated + * @ordered + */ + protected static final String BINDING_VIF_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBinding_vif_type() Binding vif type}' attribute. + * + * + * @see #getBinding_vif_type() + * @generated + * @ordered + */ + protected String binding_vif_type = BINDING_VIF_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getBinding_vnic_type() Binding vnic type}' attribute. + * + * + * @see #getBinding_vnic_type() + * @generated + * @ordered + */ + protected static final String BINDING_VNIC_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBinding_vnic_type() Binding vnic type}' attribute. + * + * + * @see #getBinding_vnic_type() + * @generated + * @ordered + */ + protected String binding_vnic_type = BINDING_VNIC_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getDevice_id() Device id}' attribute. + * + * + * @see #getDevice_id() + * @generated + * @ordered + */ + protected static final String DEVICE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDevice_id() Device id}' attribute. + * + * + * @see #getDevice_id() + * @generated + * @ordered + */ + protected String device_id = DEVICE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getDevice_owner() Device owner}' attribute. + * + * + * @see #getDevice_owner() + * @generated + * @ordered + */ + protected static final String DEVICE_OWNER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDevice_owner() Device owner}' attribute. + * + * + * @see #getDevice_owner() + * @generated + * @ordered + */ + protected String device_owner = DEVICE_OWNER_EDEFAULT; + + /** + * The cached value of the '{@link #getExtra_dhcp_opts() Extra dhcp opts}' attribute list. + * + * + * @see #getExtra_dhcp_opts() + * @generated + * @ordered + */ + protected EList extra_dhcp_opts; + + /** + * The cached value of the '{@link #getFixed_ips() Fixed ips}' containment reference list. + * + * + * @see #getFixed_ips() + * @generated + * @ordered + */ + protected EList fixed_ips; + + /** + * The default value of the '{@link #getMac_address() Mac address}' attribute. + * + * + * @see #getMac_address() + * @generated + * @ordered + */ + protected static final String MAC_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMac_address() Mac address}' attribute. + * + * + * @see #getMac_address() + * @generated + * @ordered + */ + protected String mac_address = MAC_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getSecurity_groups() Security groups}' attribute list. + * + * + * @see #getSecurity_groups() + * @generated + * @ordered + */ + protected EList security_groups; + + /** + * + * + * @generated + */ + protected PortImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.PORT; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__STATUS, oldStatus, status)); + } + + /** + * + * + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * + * + * @generated + */ + public void setAdmin_state_up(Boolean newAdmin_state_up) { + Boolean oldAdmin_state_up = admin_state_up; + admin_state_up = newAdmin_state_up; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up)); + } + + /** + * + * + * @generated + */ + public ExternalGateway getExternal_gateway_info() { + return external_gateway_info; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetExternal_gateway_info(ExternalGateway newExternal_gateway_info, NotificationChain msgs) { + ExternalGateway oldExternal_gateway_info = external_gateway_info; + external_gateway_info = newExternal_gateway_info; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO, oldExternal_gateway_info, newExternal_gateway_info); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setExternal_gateway_info(ExternalGateway newExternal_gateway_info) { + if (newExternal_gateway_info != external_gateway_info) { + NotificationChain msgs = null; + if (external_gateway_info != null) + msgs = ((InternalEObject)external_gateway_info).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO, null, msgs); + if (newExternal_gateway_info != null) + msgs = ((InternalEObject)newExternal_gateway_info).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO, null, msgs); + msgs = basicSetExternal_gateway_info(newExternal_gateway_info, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO, newExternal_gateway_info, newExternal_gateway_info)); + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + public EList getAllowed_address_pairs() { + if (allowed_address_pairs == null) { + allowed_address_pairs = new EDataTypeEList(String.class, this, NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS); + } + return allowed_address_pairs; + } + + /** + * + * + * @generated + */ + public String getBinding_host_id() { + return binding_host_id; + } + + /** + * + * + * @generated + */ + public void setBinding_host_id(String newBinding_host_id) { + String oldBinding_host_id = binding_host_id; + binding_host_id = newBinding_host_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_HOST_ID, oldBinding_host_id, binding_host_id)); + } + + /** + * + * + * @generated + */ + public BindingProfile getBinding_profile() { + return binding_profile; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetBinding_profile(BindingProfile newBinding_profile, NotificationChain msgs) { + BindingProfile oldBinding_profile = binding_profile; + binding_profile = newBinding_profile; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_PROFILE, oldBinding_profile, newBinding_profile); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setBinding_profile(BindingProfile newBinding_profile) { + if (newBinding_profile != binding_profile) { + NotificationChain msgs = null; + if (binding_profile != null) + msgs = ((InternalEObject)binding_profile).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__BINDING_PROFILE, null, msgs); + if (newBinding_profile != null) + msgs = ((InternalEObject)newBinding_profile).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__BINDING_PROFILE, null, msgs); + msgs = basicSetBinding_profile(newBinding_profile, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_PROFILE, newBinding_profile, newBinding_profile)); + } + + /** + * + * + * @generated + */ + public BindingVifDetail getBinding_vif_details() { + return binding_vif_details; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetBinding_vif_details(BindingVifDetail newBinding_vif_details, NotificationChain msgs) { + BindingVifDetail oldBinding_vif_details = binding_vif_details; + binding_vif_details = newBinding_vif_details; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_VIF_DETAILS, oldBinding_vif_details, newBinding_vif_details); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setBinding_vif_details(BindingVifDetail newBinding_vif_details) { + if (newBinding_vif_details != binding_vif_details) { + NotificationChain msgs = null; + if (binding_vif_details != null) + msgs = ((InternalEObject)binding_vif_details).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__BINDING_VIF_DETAILS, null, msgs); + if (newBinding_vif_details != null) + msgs = ((InternalEObject)newBinding_vif_details).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.PORT__BINDING_VIF_DETAILS, null, msgs); + msgs = basicSetBinding_vif_details(newBinding_vif_details, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_VIF_DETAILS, newBinding_vif_details, newBinding_vif_details)); + } + + /** + * + * + * @generated + */ + public String getBinding_vif_type() { + return binding_vif_type; + } + + /** + * + * + * @generated + */ + public void setBinding_vif_type(String newBinding_vif_type) { + String oldBinding_vif_type = binding_vif_type; + binding_vif_type = newBinding_vif_type; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_VIF_TYPE, oldBinding_vif_type, binding_vif_type)); + } + + /** + * + * + * @generated + */ + public String getBinding_vnic_type() { + return binding_vnic_type; + } + + /** + * + * + * @generated + */ + public void setBinding_vnic_type(String newBinding_vnic_type) { + String oldBinding_vnic_type = binding_vnic_type; + binding_vnic_type = newBinding_vnic_type; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__BINDING_VNIC_TYPE, oldBinding_vnic_type, binding_vnic_type)); + } + + /** + * + * + * @generated + */ + public String getDevice_id() { + return device_id; + } + + /** + * + * + * @generated + */ + public void setDevice_id(String newDevice_id) { + String oldDevice_id = device_id; + device_id = newDevice_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__DEVICE_ID, oldDevice_id, device_id)); + } + + /** + * + * + * @generated + */ + public String getDevice_owner() { + return device_owner; + } + + /** + * + * + * @generated + */ + public void setDevice_owner(String newDevice_owner) { + String oldDevice_owner = device_owner; + device_owner = newDevice_owner; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__DEVICE_OWNER, oldDevice_owner, device_owner)); + } + + /** + * + * + * @generated + */ + public EList getExtra_dhcp_opts() { + if (extra_dhcp_opts == null) { + extra_dhcp_opts = new EDataTypeEList(String.class, this, NeutronPackage.PORT__EXTRA_DHCP_OPTS); + } + return extra_dhcp_opts; + } + + /** + * + * + * @generated + */ + public EList getFixed_ips() { + if (fixed_ips == null) { + fixed_ips = new EObjectContainmentEList(FixedIp.class, this, NeutronPackage.PORT__FIXED_IPS); + } + return fixed_ips; + } + + /** + * + * + * @generated + */ + public String getMac_address() { + return mac_address; + } + + /** + * + * + * @generated + */ + public void setMac_address(String newMac_address) { + String oldMac_address = mac_address; + mac_address = newMac_address; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__MAC_ADDRESS, oldMac_address, mac_address)); + } + + /** + * + * + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * + * + * @generated + */ + public void setNetwork_id(String newNetwork_id) { + String oldNetwork_id = network_id; + network_id = newNetwork_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__NETWORK_ID, oldNetwork_id, network_id)); + } + + /** + * + * + * @generated + */ + public EList getSecurity_groups() { + if (security_groups == null) { + security_groups = new EDataTypeEList(String.class, this, NeutronPackage.PORT__SECURITY_GROUPS); + } + return security_groups; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO: + return basicSetExternal_gateway_info(null, msgs); + case NeutronPackage.PORT__BINDING_PROFILE: + return basicSetBinding_profile(null, msgs); + case NeutronPackage.PORT__BINDING_VIF_DETAILS: + return basicSetBinding_vif_details(null, msgs); + case NeutronPackage.PORT__FIXED_IPS: + return ((InternalEList)getFixed_ips()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.PORT__ID: + return getId(); + case NeutronPackage.PORT__NAME: + return getName(); + case NeutronPackage.PORT__STATUS: + return getStatus(); + case NeutronPackage.PORT__ADMIN_STATE_UP: + return getAdmin_state_up(); + case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO: + return getExternal_gateway_info(); + case NeutronPackage.PORT__TENANT_ID: + return getTenant_id(); + case NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS: + return getAllowed_address_pairs(); + case NeutronPackage.PORT__BINDING_HOST_ID: + return getBinding_host_id(); + case NeutronPackage.PORT__BINDING_PROFILE: + return getBinding_profile(); + case NeutronPackage.PORT__BINDING_VIF_DETAILS: + return getBinding_vif_details(); + case NeutronPackage.PORT__BINDING_VIF_TYPE: + return getBinding_vif_type(); + case NeutronPackage.PORT__BINDING_VNIC_TYPE: + return getBinding_vnic_type(); + case NeutronPackage.PORT__DEVICE_ID: + return getDevice_id(); + case NeutronPackage.PORT__DEVICE_OWNER: + return getDevice_owner(); + case NeutronPackage.PORT__EXTRA_DHCP_OPTS: + return getExtra_dhcp_opts(); + case NeutronPackage.PORT__FIXED_IPS: + return getFixed_ips(); + case NeutronPackage.PORT__MAC_ADDRESS: + return getMac_address(); + case NeutronPackage.PORT__NETWORK_ID: + return getNetwork_id(); + case NeutronPackage.PORT__SECURITY_GROUPS: + return getSecurity_groups(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.PORT__ID: + setId((String)newValue); + return; + case NeutronPackage.PORT__NAME: + setName((String)newValue); + return; + case NeutronPackage.PORT__STATUS: + setStatus((String)newValue); + return; + case NeutronPackage.PORT__ADMIN_STATE_UP: + setAdmin_state_up((Boolean)newValue); + return; + case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO: + setExternal_gateway_info((ExternalGateway)newValue); + return; + case NeutronPackage.PORT__TENANT_ID: + setTenant_id((String)newValue); + return; + case NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS: + getAllowed_address_pairs().clear(); + getAllowed_address_pairs().addAll((Collection)newValue); + return; + case NeutronPackage.PORT__BINDING_HOST_ID: + setBinding_host_id((String)newValue); + return; + case NeutronPackage.PORT__BINDING_PROFILE: + setBinding_profile((BindingProfile)newValue); + return; + case NeutronPackage.PORT__BINDING_VIF_DETAILS: + setBinding_vif_details((BindingVifDetail)newValue); + return; + case NeutronPackage.PORT__BINDING_VIF_TYPE: + setBinding_vif_type((String)newValue); + return; + case NeutronPackage.PORT__BINDING_VNIC_TYPE: + setBinding_vnic_type((String)newValue); + return; + case NeutronPackage.PORT__DEVICE_ID: + setDevice_id((String)newValue); + return; + case NeutronPackage.PORT__DEVICE_OWNER: + setDevice_owner((String)newValue); + return; + case NeutronPackage.PORT__EXTRA_DHCP_OPTS: + getExtra_dhcp_opts().clear(); + getExtra_dhcp_opts().addAll((Collection)newValue); + return; + case NeutronPackage.PORT__FIXED_IPS: + getFixed_ips().clear(); + getFixed_ips().addAll((Collection)newValue); + return; + case NeutronPackage.PORT__MAC_ADDRESS: + setMac_address((String)newValue); + return; + case NeutronPackage.PORT__NETWORK_ID: + setNetwork_id((String)newValue); + return; + case NeutronPackage.PORT__SECURITY_GROUPS: + getSecurity_groups().clear(); + getSecurity_groups().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.PORT__ID: + setId(ID_EDEFAULT); + return; + case NeutronPackage.PORT__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.PORT__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case NeutronPackage.PORT__ADMIN_STATE_UP: + setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT); + return; + case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO: + setExternal_gateway_info((ExternalGateway)null); + return; + case NeutronPackage.PORT__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + case NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS: + getAllowed_address_pairs().clear(); + return; + case NeutronPackage.PORT__BINDING_HOST_ID: + setBinding_host_id(BINDING_HOST_ID_EDEFAULT); + return; + case NeutronPackage.PORT__BINDING_PROFILE: + setBinding_profile((BindingProfile)null); + return; + case NeutronPackage.PORT__BINDING_VIF_DETAILS: + setBinding_vif_details((BindingVifDetail)null); + return; + case NeutronPackage.PORT__BINDING_VIF_TYPE: + setBinding_vif_type(BINDING_VIF_TYPE_EDEFAULT); + return; + case NeutronPackage.PORT__BINDING_VNIC_TYPE: + setBinding_vnic_type(BINDING_VNIC_TYPE_EDEFAULT); + return; + case NeutronPackage.PORT__DEVICE_ID: + setDevice_id(DEVICE_ID_EDEFAULT); + return; + case NeutronPackage.PORT__DEVICE_OWNER: + setDevice_owner(DEVICE_OWNER_EDEFAULT); + return; + case NeutronPackage.PORT__EXTRA_DHCP_OPTS: + getExtra_dhcp_opts().clear(); + return; + case NeutronPackage.PORT__FIXED_IPS: + getFixed_ips().clear(); + return; + case NeutronPackage.PORT__MAC_ADDRESS: + setMac_address(MAC_ADDRESS_EDEFAULT); + return; + case NeutronPackage.PORT__NETWORK_ID: + setNetwork_id(NETWORK_ID_EDEFAULT); + return; + case NeutronPackage.PORT__SECURITY_GROUPS: + getSecurity_groups().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.PORT__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case NeutronPackage.PORT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.PORT__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case NeutronPackage.PORT__ADMIN_STATE_UP: + return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up); + case NeutronPackage.PORT__EXTERNAL_GATEWAY_INFO: + return external_gateway_info != null; + case NeutronPackage.PORT__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + case NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS: + return allowed_address_pairs != null && !allowed_address_pairs.isEmpty(); + case NeutronPackage.PORT__BINDING_HOST_ID: + return BINDING_HOST_ID_EDEFAULT == null ? binding_host_id != null : !BINDING_HOST_ID_EDEFAULT.equals(binding_host_id); + case NeutronPackage.PORT__BINDING_PROFILE: + return binding_profile != null; + case NeutronPackage.PORT__BINDING_VIF_DETAILS: + return binding_vif_details != null; + case NeutronPackage.PORT__BINDING_VIF_TYPE: + return BINDING_VIF_TYPE_EDEFAULT == null ? binding_vif_type != null : !BINDING_VIF_TYPE_EDEFAULT.equals(binding_vif_type); + case NeutronPackage.PORT__BINDING_VNIC_TYPE: + return BINDING_VNIC_TYPE_EDEFAULT == null ? binding_vnic_type != null : !BINDING_VNIC_TYPE_EDEFAULT.equals(binding_vnic_type); + case NeutronPackage.PORT__DEVICE_ID: + return DEVICE_ID_EDEFAULT == null ? device_id != null : !DEVICE_ID_EDEFAULT.equals(device_id); + case NeutronPackage.PORT__DEVICE_OWNER: + return DEVICE_OWNER_EDEFAULT == null ? device_owner != null : !DEVICE_OWNER_EDEFAULT.equals(device_owner); + case NeutronPackage.PORT__EXTRA_DHCP_OPTS: + return extra_dhcp_opts != null && !extra_dhcp_opts.isEmpty(); + case NeutronPackage.PORT__FIXED_IPS: + return fixed_ips != null && !fixed_ips.isEmpty(); + case NeutronPackage.PORT__MAC_ADDRESS: + return MAC_ADDRESS_EDEFAULT == null ? mac_address != null : !MAC_ADDRESS_EDEFAULT.equals(mac_address); + case NeutronPackage.PORT__NETWORK_ID: + return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id); + case NeutronPackage.PORT__SECURITY_GROUPS: + return security_groups != null && !security_groups.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", status: "); + result.append(status); + result.append(", admin_state_up: "); + result.append(admin_state_up); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(", allowed_address_pairs: "); + result.append(allowed_address_pairs); + result.append(", binding_host_id: "); + result.append(binding_host_id); + result.append(", binding_vif_type: "); + result.append(binding_vif_type); + result.append(", binding_vnic_type: "); + result.append(binding_vnic_type); + result.append(", device_id: "); + result.append(device_id); + result.append(", device_owner: "); + result.append(device_owner); + result.append(", extra_dhcp_opts: "); + result.append(extra_dhcp_opts); + result.append(", mac_address: "); + result.append(mac_address); + result.append(", network_id: "); + result.append(network_id); + result.append(", security_groups: "); + result.append(security_groups); + result.append(')'); + return result.toString(); + } + +} //PortImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/RouterImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/RouterImpl.java new file mode 100644 index 0000000..077962f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/RouterImpl.java @@ -0,0 +1,480 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.ExternalGateway; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.Router; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Router'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getExternal_gateway_info External gateway info}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getTenant_id Tenant id}
  • + *
+ *

+ * + * @generated + */ +public class RouterImpl extends NeutronObjectImpl implements Router { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The cached value of the '{@link #getExternal_gateway_info() External gateway info}' containment reference. + * + * + * @see #getExternal_gateway_info() + * @generated + * @ordered + */ + protected ExternalGateway external_gateway_info; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected RouterImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.ROUTER; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__STATUS, oldStatus, status)); + } + + /** + * + * + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * + * + * @generated + */ + public void setAdmin_state_up(Boolean newAdmin_state_up) { + Boolean oldAdmin_state_up = admin_state_up; + admin_state_up = newAdmin_state_up; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up)); + } + + /** + * + * + * @generated + */ + public ExternalGateway getExternal_gateway_info() { + return external_gateway_info; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetExternal_gateway_info(ExternalGateway newExternal_gateway_info, NotificationChain msgs) { + ExternalGateway oldExternal_gateway_info = external_gateway_info; + external_gateway_info = newExternal_gateway_info; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO, oldExternal_gateway_info, newExternal_gateway_info); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setExternal_gateway_info(ExternalGateway newExternal_gateway_info) { + if (newExternal_gateway_info != external_gateway_info) { + NotificationChain msgs = null; + if (external_gateway_info != null) + msgs = ((InternalEObject)external_gateway_info).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO, null, msgs); + if (newExternal_gateway_info != null) + msgs = ((InternalEObject)newExternal_gateway_info).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO, null, msgs); + msgs = basicSetExternal_gateway_info(newExternal_gateway_info, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO, newExternal_gateway_info, newExternal_gateway_info)); + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO: + return basicSetExternal_gateway_info(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.ROUTER__ID: + return getId(); + case NeutronPackage.ROUTER__NAME: + return getName(); + case NeutronPackage.ROUTER__STATUS: + return getStatus(); + case NeutronPackage.ROUTER__ADMIN_STATE_UP: + return getAdmin_state_up(); + case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO: + return getExternal_gateway_info(); + case NeutronPackage.ROUTER__TENANT_ID: + return getTenant_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.ROUTER__ID: + setId((String)newValue); + return; + case NeutronPackage.ROUTER__NAME: + setName((String)newValue); + return; + case NeutronPackage.ROUTER__STATUS: + setStatus((String)newValue); + return; + case NeutronPackage.ROUTER__ADMIN_STATE_UP: + setAdmin_state_up((Boolean)newValue); + return; + case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO: + setExternal_gateway_info((ExternalGateway)newValue); + return; + case NeutronPackage.ROUTER__TENANT_ID: + setTenant_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.ROUTER__ID: + setId(ID_EDEFAULT); + return; + case NeutronPackage.ROUTER__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.ROUTER__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case NeutronPackage.ROUTER__ADMIN_STATE_UP: + setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT); + return; + case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO: + setExternal_gateway_info((ExternalGateway)null); + return; + case NeutronPackage.ROUTER__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.ROUTER__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case NeutronPackage.ROUTER__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.ROUTER__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case NeutronPackage.ROUTER__ADMIN_STATE_UP: + return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up); + case NeutronPackage.ROUTER__EXTERNAL_GATEWAY_INFO: + return external_gateway_info != null; + case NeutronPackage.ROUTER__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", status: "); + result.append(status); + result.append(", admin_state_up: "); + result.append(admin_state_up); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(')'); + return result.toString(); + } + +} //RouterImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/SubnetImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/SubnetImpl.java new file mode 100644 index 0000000..d7216ba --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/SubnetImpl.java @@ -0,0 +1,801 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.AllocationPool; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.Subnet; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Subnet'. + * + *

+ * The following features are implemented: + *

    + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getId Id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getName Name}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getStatus Status}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getAdmin_state_up Admin state up}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getCidr Cidr}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getAllocation_pools Allocation pools}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getDns_nameservers Dns nameservers}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getEnable_dhcp Enable dhcp}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getGateway_ip Gateway ip}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getHost_routes Host routes}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getIp_version Ip version}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getNetwork_id Network id}
  • + *
  • {@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getTenant_id Tenant id}
  • + *
+ *

+ * + * @generated + */ +public class SubnetImpl extends NeutronObjectImpl implements Subnet { + /** + * The default value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() Id}' attribute. + * + * + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() Admin state up}' attribute. + * + * + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The default value of the '{@link #getCidr() Cidr}' attribute. + * + * + * @see #getCidr() + * @generated + * @ordered + */ + protected static final String CIDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCidr() Cidr}' attribute. + * + * + * @see #getCidr() + * @generated + * @ordered + */ + protected String cidr = CIDR_EDEFAULT; + + /** + * The cached value of the '{@link #getAllocation_pools() Allocation pools}' containment reference list. + * + * + * @see #getAllocation_pools() + * @generated + * @ordered + */ + protected EList allocation_pools; + + /** + * The cached value of the '{@link #getDns_nameservers() Dns nameservers}' attribute list. + * + * + * @see #getDns_nameservers() + * @generated + * @ordered + */ + protected EList dns_nameservers; + + /** + * The default value of the '{@link #getEnable_dhcp() Enable dhcp}' attribute. + * + * + * @see #getEnable_dhcp() + * @generated + * @ordered + */ + protected static final Boolean ENABLE_DHCP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnable_dhcp() Enable dhcp}' attribute. + * + * + * @see #getEnable_dhcp() + * @generated + * @ordered + */ + protected Boolean enable_dhcp = ENABLE_DHCP_EDEFAULT; + + /** + * The default value of the '{@link #getGateway_ip() Gateway ip}' attribute. + * + * + * @see #getGateway_ip() + * @generated + * @ordered + */ + protected static final String GATEWAY_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGateway_ip() Gateway ip}' attribute. + * + * + * @see #getGateway_ip() + * @generated + * @ordered + */ + protected String gateway_ip = GATEWAY_IP_EDEFAULT; + + /** + * The cached value of the '{@link #getHost_routes() Host routes}' attribute list. + * + * + * @see #getHost_routes() + * @generated + * @ordered + */ + protected EList host_routes; + + /** + * The default value of the '{@link #getIp_version() Ip version}' attribute. + * + * + * @see #getIp_version() + * @generated + * @ordered + */ + protected static final Integer IP_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIp_version() Ip version}' attribute. + * + * + * @see #getIp_version() + * @generated + * @ordered + */ + protected Integer ip_version = IP_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() Network id}' attribute. + * + * + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() Tenant id}' attribute. + * + * + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * + * + * @generated + */ + protected SubnetImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.SUBNET; + } + + /** + * + * + * @generated + */ + public String getId() { + return id; + } + + /** + * + * + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__ID, oldId, id)); + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__NAME, oldName, name)); + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__STATUS, oldStatus, status)); + } + + /** + * + * + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * + * + * @generated + */ + public void setAdmin_state_up(Boolean newAdmin_state_up) { + Boolean oldAdmin_state_up = admin_state_up; + admin_state_up = newAdmin_state_up; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__ADMIN_STATE_UP, oldAdmin_state_up, admin_state_up)); + } + + /** + * + * + * @generated + */ + public String getCidr() { + return cidr; + } + + /** + * + * + * @generated + */ + public void setCidr(String newCidr) { + String oldCidr = cidr; + cidr = newCidr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__CIDR, oldCidr, cidr)); + } + + /** + * + * + * @generated + */ + public EList getAllocation_pools() { + if (allocation_pools == null) { + allocation_pools = new EObjectContainmentEList(AllocationPool.class, this, NeutronPackage.SUBNET__ALLOCATION_POOLS); + } + return allocation_pools; + } + + /** + * + * + * @generated + */ + public EList getDns_nameservers() { + if (dns_nameservers == null) { + dns_nameservers = new EDataTypeEList(String.class, this, NeutronPackage.SUBNET__DNS_NAMESERVERS); + } + return dns_nameservers; + } + + /** + * + * + * @generated + */ + public Boolean getEnable_dhcp() { + return enable_dhcp; + } + + /** + * + * + * @generated + */ + public void setEnable_dhcp(Boolean newEnable_dhcp) { + Boolean oldEnable_dhcp = enable_dhcp; + enable_dhcp = newEnable_dhcp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__ENABLE_DHCP, oldEnable_dhcp, enable_dhcp)); + } + + /** + * + * + * @generated + */ + public String getGateway_ip() { + return gateway_ip; + } + + /** + * + * + * @generated + */ + public void setGateway_ip(String newGateway_ip) { + String oldGateway_ip = gateway_ip; + gateway_ip = newGateway_ip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__GATEWAY_IP, oldGateway_ip, gateway_ip)); + } + + /** + * + * + * @generated + */ + public EList getHost_routes() { + if (host_routes == null) { + host_routes = new EDataTypeEList(String.class, this, NeutronPackage.SUBNET__HOST_ROUTES); + } + return host_routes; + } + + /** + * + * + * @generated + */ + public Integer getIp_version() { + return ip_version; + } + + /** + * + * + * @generated + */ + public void setIp_version(Integer newIp_version) { + Integer oldIp_version = ip_version; + ip_version = newIp_version; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__IP_VERSION, oldIp_version, ip_version)); + } + + /** + * + * + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * + * + * @generated + */ + public void setNetwork_id(String newNetwork_id) { + String oldNetwork_id = network_id; + network_id = newNetwork_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__NETWORK_ID, oldNetwork_id, network_id)); + } + + /** + * + * + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * + * + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case NeutronPackage.SUBNET__ALLOCATION_POOLS: + return ((InternalEList)getAllocation_pools()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case NeutronPackage.SUBNET__ID: + return getId(); + case NeutronPackage.SUBNET__NAME: + return getName(); + case NeutronPackage.SUBNET__STATUS: + return getStatus(); + case NeutronPackage.SUBNET__ADMIN_STATE_UP: + return getAdmin_state_up(); + case NeutronPackage.SUBNET__CIDR: + return getCidr(); + case NeutronPackage.SUBNET__ALLOCATION_POOLS: + return getAllocation_pools(); + case NeutronPackage.SUBNET__DNS_NAMESERVERS: + return getDns_nameservers(); + case NeutronPackage.SUBNET__ENABLE_DHCP: + return getEnable_dhcp(); + case NeutronPackage.SUBNET__GATEWAY_IP: + return getGateway_ip(); + case NeutronPackage.SUBNET__HOST_ROUTES: + return getHost_routes(); + case NeutronPackage.SUBNET__IP_VERSION: + return getIp_version(); + case NeutronPackage.SUBNET__NETWORK_ID: + return getNetwork_id(); + case NeutronPackage.SUBNET__TENANT_ID: + return getTenant_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case NeutronPackage.SUBNET__ID: + setId((String)newValue); + return; + case NeutronPackage.SUBNET__NAME: + setName((String)newValue); + return; + case NeutronPackage.SUBNET__STATUS: + setStatus((String)newValue); + return; + case NeutronPackage.SUBNET__ADMIN_STATE_UP: + setAdmin_state_up((Boolean)newValue); + return; + case NeutronPackage.SUBNET__CIDR: + setCidr((String)newValue); + return; + case NeutronPackage.SUBNET__ALLOCATION_POOLS: + getAllocation_pools().clear(); + getAllocation_pools().addAll((Collection)newValue); + return; + case NeutronPackage.SUBNET__DNS_NAMESERVERS: + getDns_nameservers().clear(); + getDns_nameservers().addAll((Collection)newValue); + return; + case NeutronPackage.SUBNET__ENABLE_DHCP: + setEnable_dhcp((Boolean)newValue); + return; + case NeutronPackage.SUBNET__GATEWAY_IP: + setGateway_ip((String)newValue); + return; + case NeutronPackage.SUBNET__HOST_ROUTES: + getHost_routes().clear(); + getHost_routes().addAll((Collection)newValue); + return; + case NeutronPackage.SUBNET__IP_VERSION: + setIp_version((Integer)newValue); + return; + case NeutronPackage.SUBNET__NETWORK_ID: + setNetwork_id((String)newValue); + return; + case NeutronPackage.SUBNET__TENANT_ID: + setTenant_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case NeutronPackage.SUBNET__ID: + setId(ID_EDEFAULT); + return; + case NeutronPackage.SUBNET__NAME: + setName(NAME_EDEFAULT); + return; + case NeutronPackage.SUBNET__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case NeutronPackage.SUBNET__ADMIN_STATE_UP: + setAdmin_state_up(ADMIN_STATE_UP_EDEFAULT); + return; + case NeutronPackage.SUBNET__CIDR: + setCidr(CIDR_EDEFAULT); + return; + case NeutronPackage.SUBNET__ALLOCATION_POOLS: + getAllocation_pools().clear(); + return; + case NeutronPackage.SUBNET__DNS_NAMESERVERS: + getDns_nameservers().clear(); + return; + case NeutronPackage.SUBNET__ENABLE_DHCP: + setEnable_dhcp(ENABLE_DHCP_EDEFAULT); + return; + case NeutronPackage.SUBNET__GATEWAY_IP: + setGateway_ip(GATEWAY_IP_EDEFAULT); + return; + case NeutronPackage.SUBNET__HOST_ROUTES: + getHost_routes().clear(); + return; + case NeutronPackage.SUBNET__IP_VERSION: + setIp_version(IP_VERSION_EDEFAULT); + return; + case NeutronPackage.SUBNET__NETWORK_ID: + setNetwork_id(NETWORK_ID_EDEFAULT); + return; + case NeutronPackage.SUBNET__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case NeutronPackage.SUBNET__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case NeutronPackage.SUBNET__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case NeutronPackage.SUBNET__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case NeutronPackage.SUBNET__ADMIN_STATE_UP: + return ADMIN_STATE_UP_EDEFAULT == null ? admin_state_up != null : !ADMIN_STATE_UP_EDEFAULT.equals(admin_state_up); + case NeutronPackage.SUBNET__CIDR: + return CIDR_EDEFAULT == null ? cidr != null : !CIDR_EDEFAULT.equals(cidr); + case NeutronPackage.SUBNET__ALLOCATION_POOLS: + return allocation_pools != null && !allocation_pools.isEmpty(); + case NeutronPackage.SUBNET__DNS_NAMESERVERS: + return dns_nameservers != null && !dns_nameservers.isEmpty(); + case NeutronPackage.SUBNET__ENABLE_DHCP: + return ENABLE_DHCP_EDEFAULT == null ? enable_dhcp != null : !ENABLE_DHCP_EDEFAULT.equals(enable_dhcp); + case NeutronPackage.SUBNET__GATEWAY_IP: + return GATEWAY_IP_EDEFAULT == null ? gateway_ip != null : !GATEWAY_IP_EDEFAULT.equals(gateway_ip); + case NeutronPackage.SUBNET__HOST_ROUTES: + return host_routes != null && !host_routes.isEmpty(); + case NeutronPackage.SUBNET__IP_VERSION: + return IP_VERSION_EDEFAULT == null ? ip_version != null : !IP_VERSION_EDEFAULT.equals(ip_version); + case NeutronPackage.SUBNET__NETWORK_ID: + return NETWORK_ID_EDEFAULT == null ? network_id != null : !NETWORK_ID_EDEFAULT.equals(network_id); + case NeutronPackage.SUBNET__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", status: "); + result.append(status); + result.append(", admin_state_up: "); + result.append(admin_state_up); + result.append(", cidr: "); + result.append(cidr); + result.append(", dns_nameservers: "); + result.append(dns_nameservers); + result.append(", enable_dhcp: "); + result.append(enable_dhcp); + result.append(", gateway_ip: "); + result.append(gateway_ip); + result.append(", host_routes: "); + result.append(host_routes); + result.append(", ip_version: "); + result.append(ip_version); + result.append(", network_id: "); + result.append(network_id); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(')'); + return result.toString(); + } + +} //SubnetImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/util/NeutronAdapterFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/util/NeutronAdapterFactory.java new file mode 100644 index 0000000..7d3bd4b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/util/NeutronAdapterFactory.java @@ -0,0 +1,485 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.util; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +import org.openecomp.ncomp.openstack.neutron.*; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage + * @generated + */ +public class NeutronAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static NeutronPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public NeutronAdapterFactory() { + if (modelPackage == null) { + modelPackage = NeutronPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected NeutronSwitch modelSwitch = + new NeutronSwitch() { + @Override + public Adapter caseNeutronService(NeutronService object) { + return createNeutronServiceAdapter(); + } + @Override + public Adapter caseNeutronObject(NeutronObject object) { + return createNeutronObjectAdapter(); + } + @Override + public Adapter caseNetwork(Network object) { + return createNetworkAdapter(); + } + @Override + public Adapter caseSubnet(Subnet object) { + return createSubnetAdapter(); + } + @Override + public Adapter caseAllocationPool(AllocationPool object) { + return createAllocationPoolAdapter(); + } + @Override + public Adapter caseRouter(Router object) { + return createRouterAdapter(); + } + @Override + public Adapter casePort(Port object) { + return createPortAdapter(); + } + @Override + public Adapter caseNeutronSecurityGroup(NeutronSecurityGroup object) { + return createNeutronSecurityGroupAdapter(); + } + @Override + public Adapter caseNeutronSecurityRule(NeutronSecurityRule object) { + return createNeutronSecurityRuleAdapter(); + } + @Override + public Adapter caseNeutronFloatingIp(NeutronFloatingIp object) { + return createNeutronFloatingIpAdapter(); + } + @Override + public Adapter caseBindingProfile(BindingProfile object) { + return createBindingProfileAdapter(); + } + @Override + public Adapter caseBindingVifDetail(BindingVifDetail object) { + return createBindingVifDetailAdapter(); + } + @Override + public Adapter caseFixedIp(FixedIp object) { + return createFixedIpAdapter(); + } + @Override + public Adapter caseExternalGateway(ExternalGateway object) { + return createExternalGatewayAdapter(); + } + @Override + public Adapter caseNeutronRequest(NeutronRequest object) { + return createNeutronRequestAdapter(); + } + @Override + public Adapter caseCreateNetworkRequest(CreateNetworkRequest object) { + return createCreateNetworkRequestAdapter(); + } + @Override + public Adapter caseCreateSubnetRequest(CreateSubnetRequest object) { + return createCreateSubnetRequestAdapter(); + } + @Override + public Adapter caseCreateRouterRequest(CreateRouterRequest object) { + return createCreateRouterRequestAdapter(); + } + @Override + public Adapter caseCreatePortRequest(CreatePortRequest object) { + return createCreatePortRequestAdapter(); + } + @Override + public Adapter caseOpenStackRequest(OpenStackRequest object) { + return createOpenStackRequestAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.NeutronService Service}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.NeutronService + * @generated + */ + public Adapter createNeutronServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.NeutronObject Object}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.NeutronObject + * @generated + */ + public Adapter createNeutronObjectAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.Network Network}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.Network + * @generated + */ + public Adapter createNetworkAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.Subnet Subnet}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.Subnet + * @generated + */ + public Adapter createSubnetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.AllocationPool Allocation Pool}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.AllocationPool + * @generated + */ + public Adapter createAllocationPoolAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.Router Router}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.Router + * @generated + */ + public Adapter createRouterAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.Port Port}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.Port + * @generated + */ + public Adapter createPortAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup Security Group}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup + * @generated + */ + public Adapter createNeutronSecurityGroupAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule Security Rule}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule + * @generated + */ + public Adapter createNeutronSecurityRuleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp Floating Ip}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp + * @generated + */ + public Adapter createNeutronFloatingIpAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.BindingProfile Binding Profile}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.BindingProfile + * @generated + */ + public Adapter createBindingProfileAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail Binding Vif Detail}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.BindingVifDetail + * @generated + */ + public Adapter createBindingVifDetailAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.FixedIp Fixed Ip}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.FixedIp + * @generated + */ + public Adapter createFixedIpAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway External Gateway}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.ExternalGateway + * @generated + */ + public Adapter createExternalGatewayAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.NeutronRequest Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.NeutronRequest + * @generated + */ + public Adapter createNeutronRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest Create Network Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest + * @generated + */ + public Adapter createCreateNetworkRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest Create Subnet Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest + * @generated + */ + public Adapter createCreateSubnetRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest Create Router Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.CreateRouterRequest + * @generated + */ + public Adapter createCreateRouterRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest Create Port Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.neutron.CreatePortRequest + * @generated + */ + public Adapter createCreatePortRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest Open Stack Request}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.core.OpenStackRequest + * @generated + */ + public Adapter createOpenStackRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //NeutronAdapterFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/util/NeutronSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/util/NeutronSwitch.java new file mode 100644 index 0000000..0774772 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/util/NeutronSwitch.java @@ -0,0 +1,542 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.util; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +import org.openecomp.ncomp.openstack.neutron.*; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage + * @generated + */ +public class NeutronSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static NeutronPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public NeutronSwitch() { + if (modelPackage == null) { + modelPackage = NeutronPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case NeutronPackage.NEUTRON_SERVICE: { + NeutronService neutronService = (NeutronService)theEObject; + T result = caseNeutronService(neutronService); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.NEUTRON_OBJECT: { + NeutronObject neutronObject = (NeutronObject)theEObject; + T result = caseNeutronObject(neutronObject); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.NETWORK: { + Network network = (Network)theEObject; + T result = caseNetwork(network); + if (result == null) result = caseNeutronObject(network); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.SUBNET: { + Subnet subnet = (Subnet)theEObject; + T result = caseSubnet(subnet); + if (result == null) result = caseNeutronObject(subnet); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.ALLOCATION_POOL: { + AllocationPool allocationPool = (AllocationPool)theEObject; + T result = caseAllocationPool(allocationPool); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.ROUTER: { + Router router = (Router)theEObject; + T result = caseRouter(router); + if (result == null) result = caseNeutronObject(router); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.PORT: { + Port port = (Port)theEObject; + T result = casePort(port); + if (result == null) result = caseNeutronObject(port); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.NEUTRON_SECURITY_GROUP: { + NeutronSecurityGroup neutronSecurityGroup = (NeutronSecurityGroup)theEObject; + T result = caseNeutronSecurityGroup(neutronSecurityGroup); + if (result == null) result = caseNeutronObject(neutronSecurityGroup); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.NEUTRON_SECURITY_RULE: { + NeutronSecurityRule neutronSecurityRule = (NeutronSecurityRule)theEObject; + T result = caseNeutronSecurityRule(neutronSecurityRule); + if (result == null) result = caseNeutronObject(neutronSecurityRule); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.NEUTRON_FLOATING_IP: { + NeutronFloatingIp neutronFloatingIp = (NeutronFloatingIp)theEObject; + T result = caseNeutronFloatingIp(neutronFloatingIp); + if (result == null) result = caseNeutronObject(neutronFloatingIp); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.BINDING_PROFILE: { + BindingProfile bindingProfile = (BindingProfile)theEObject; + T result = caseBindingProfile(bindingProfile); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.BINDING_VIF_DETAIL: { + BindingVifDetail bindingVifDetail = (BindingVifDetail)theEObject; + T result = caseBindingVifDetail(bindingVifDetail); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.FIXED_IP: { + FixedIp fixedIp = (FixedIp)theEObject; + T result = caseFixedIp(fixedIp); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.EXTERNAL_GATEWAY: { + ExternalGateway externalGateway = (ExternalGateway)theEObject; + T result = caseExternalGateway(externalGateway); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.NEUTRON_REQUEST: { + NeutronRequest neutronRequest = (NeutronRequest)theEObject; + T result = caseNeutronRequest(neutronRequest); + if (result == null) result = caseOpenStackRequest(neutronRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.CREATE_NETWORK_REQUEST: { + CreateNetworkRequest createNetworkRequest = (CreateNetworkRequest)theEObject; + T result = caseCreateNetworkRequest(createNetworkRequest); + if (result == null) result = caseNeutronRequest(createNetworkRequest); + if (result == null) result = caseOpenStackRequest(createNetworkRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.CREATE_SUBNET_REQUEST: { + CreateSubnetRequest createSubnetRequest = (CreateSubnetRequest)theEObject; + T result = caseCreateSubnetRequest(createSubnetRequest); + if (result == null) result = caseNeutronRequest(createSubnetRequest); + if (result == null) result = caseOpenStackRequest(createSubnetRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.CREATE_ROUTER_REQUEST: { + CreateRouterRequest createRouterRequest = (CreateRouterRequest)theEObject; + T result = caseCreateRouterRequest(createRouterRequest); + if (result == null) result = caseNeutronRequest(createRouterRequest); + if (result == null) result = caseOpenStackRequest(createRouterRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case NeutronPackage.CREATE_PORT_REQUEST: { + CreatePortRequest createPortRequest = (CreatePortRequest)theEObject; + T result = caseCreatePortRequest(createPortRequest); + if (result == null) result = caseNeutronRequest(createPortRequest); + if (result == null) result = caseOpenStackRequest(createPortRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Service'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNeutronService(NeutronService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Object'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Object'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNeutronObject(NeutronObject object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Network'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Network'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNetwork(Network object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Subnet'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Subnet'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSubnet(Subnet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Allocation Pool'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Allocation Pool'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllocationPool(AllocationPool object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Router'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Router'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRouter(Router object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Port'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Port'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePort(Port object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Security Group'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Security Group'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNeutronSecurityGroup(NeutronSecurityGroup object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Security Rule'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Security Rule'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNeutronSecurityRule(NeutronSecurityRule object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Floating Ip'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Floating Ip'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNeutronFloatingIp(NeutronFloatingIp object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Binding Profile'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Binding Profile'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBindingProfile(BindingProfile object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Binding Vif Detail'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Binding Vif Detail'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBindingVifDetail(BindingVifDetail object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Fixed Ip'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Fixed Ip'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFixedIp(FixedIp object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'External Gateway'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'External Gateway'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseExternalGateway(ExternalGateway object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNeutronRequest(NeutronRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Create Network Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Create Network Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCreateNetworkRequest(CreateNetworkRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Create Subnet Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Create Subnet Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCreateSubnetRequest(CreateSubnetRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Create Router Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Create Router Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCreateRouterRequest(CreateRouterRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Create Port Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Create Port Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCreatePortRequest(CreatePortRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Open Stack Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Open Stack Request'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenStackRequest(OpenStackRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //NeutronSwitch diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/util/OpenstackAdapterFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/util/OpenstackAdapterFactory.java new file mode 100644 index 0000000..00e072a --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/util/OpenstackAdapterFactory.java @@ -0,0 +1,141 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.util; + +import org.openecomp.ncomp.openstack.*; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.ncomp.openstack.OpenstackPackage + * @generated + */ +public class OpenstackAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static OpenstackPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public OpenstackAdapterFactory() { + if (modelPackage == null) { + modelPackage = OpenstackPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * + * @generated + */ + protected OpenstackSwitch modelSwitch = + new OpenstackSwitch() { + @Override + public Adapter caseOpenStackController(OpenStackController object) { + return createOpenStackControllerAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.OpenStackController Open Stack Controller}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see org.openecomp.ncomp.openstack.OpenStackController + * @generated + */ + public Adapter createOpenStackControllerAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //OpenstackAdapterFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/util/OpenstackSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/util/OpenstackSwitch.java new file mode 100644 index 0000000..209bbe1 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/util/OpenstackSwitch.java @@ -0,0 +1,131 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.util; + +import org.openecomp.ncomp.openstack.*; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * + * @see org.openecomp.ncomp.openstack.OpenstackPackage + * @generated + */ +public class OpenstackSwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static OpenstackPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public OpenstackSwitch() { + if (modelPackage == null) { + modelPackage = OpenstackPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @parameter ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case OpenstackPackage.OPEN_STACK_CONTROLLER: { + OpenStackController openStackController = (OpenStackController)theEObject; + T result = caseOpenStackController(openStackController); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'Open Stack Controller'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Open Stack Controller'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOpenStackController(OpenStackController object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //OpenstackSwitch diff --git a/ncomp-openstack-model/src/main/xcore/ceilometer.xcore b/ncomp-openstack-model/src/main/xcore/ceilometer.xcore new file mode 100644 index 0000000..cc5d9aa --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore/ceilometer.xcore @@ -0,0 +1,130 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/ncomp-openstack-model/src/main/xcore-gen") + +package org.openecomp.ncomp.openstack.ceilometer + +import org.openecomp.ncomp.openstack.core.OpenStackRequest +import org.openecomp.ncomp.core.NamedEntity +import org.openecomp.ncomp.openstack.compute.Link +import org.openecomp.ncomp.openstack.compute.Metadata + +annotation "http://openecomp.org/sirius/openstack" as openstack + +abstract class CeilometerService { + op CeilometerAlarm createAlarm(CreateAlarmRequest request) + op void deleteAlarm(String projectName, String name) + op CeilometerSample[] createAlarm(SampleRequest request) + String[] ceilometerAvailableCapabilites + String[] ceilometerUnavailableCapabilites +} + +abstract class CeilometerProject { + contains CeilometerAlarm[] alarms + contains CeilometerResource[] resources + contains CeilometerMeter[] meters +} + +abstract class CeilometerAlarm extends NamedEntity { + String ^id + String user_id + Date timestamp + Boolean enabled + String state + Date state_timestamp + String description + String[] alarm_actions + String[] ok_actions + String[] insufficient_data_actions + Boolean repeat_actions + String[] time_constraints +} + +class CeilometerThresholdAlarm extends CeilometerAlarm { + contains CeilometerThresholdAlarmRule threshold_rule + +} + +class CeilometerThresholdAlarmRule { + String meter_name + Long evaluation_periods + Long period + String statistic + double threshold + String[] query + String comparison_operator + Boolean exclude_outliers +} + + +class CeilometerResource { + String ^id + String user_id + String project_id + Date first_sample_timestamp + Date last_sample_timestamp + contains Link[] links + contains Metadata metadata +} +class CeilometerMeter {} + +class CeilometerQuery { + contains CeilometerFilter[] filter + contains CeilometerOrderedBy[] orderby + Long limit +} + +class CeilometerFilter { + String operation + String value + String field + contains CeilometerFilter[] filters +} + +class CeilometerOrderedBy { + String field + String direction +} + +abstract class CeilometerRequest extends OpenStackRequest { + +} + +class CreateAlarmRequest extends CeilometerRequest { +} + +class SampleRequest extends CeilometerRequest { + contains CeilometerQuery query +} + +class CeilometerSample { + String counter_name + String user_id + String resource_id + Date timestamp + Date recorded_at + String message_id + String source + String counter_unit + double counter_volume + String project_id +} diff --git a/ncomp-openstack-model/src/main/xcore/compute.xcore b/ncomp-openstack-model/src/main/xcore/compute.xcore new file mode 100644 index 0000000..fea7a78 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore/compute.xcore @@ -0,0 +1,250 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/ncomp-openstack-model/src/main/xcore-gen") + +package org.openecomp.ncomp.openstack.compute + +import org.openecomp.ncomp.core.NamedEntity +import org.openecomp.ncomp.openstack.core.OpenStackRequest +import org.openecomp.ncomp.openstack.core.VirtualMachineType +import org.openecomp.ncomp.core.User +import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete + +abstract class ComputeService { + op void createServer(OpenstackRequestNewServer request) + op void deleteServer(String projectName, String name) + op void createKeyPair(OpenstackRequestKeyPair request) + op void delete(OpenstackRequestDelete request) + op void createFlavor(OpenstackRequestFlavor request) + op void createSecurityGroup(OpenstackRequestSecurityGroup request) + op void serverAction(OpenstackRequestServerAction request) + op void deployVmType(String vmTypeName, String projectName) + op void undeployVmType(String vmTypeName, String projectName) + op void deployUser(User user, String projectName) + op void undeployUser(User user, String projectName) +} + +class OpenstackRequestNewServer extends OpenStackRequest { + String name + String hypervisor + String user + String[] networks + String[] ports + String user_data + String floatingIp + contains VirtualMachineType vmType +} + + +class OpenstackRequestKeyPair extends OpenStackRequest { + contains User user +} + +class OpenstackRequestFlavor extends OpenStackRequest { + contains VirtualMachineType vmType +} + +class OpenstackRequestSecurityGroup extends OpenStackRequest { + contains VirtualMachineType vmType +} + +class OpenstackRequestServerAction extends OpenStackRequest { + String name + String action +} + +class OpenstackRequestPoll extends OpenStackRequest { +} + + +class Server { + String ^id + String tenant_id + String user_id + String name + String updated + String created + String hostId + String accessIPv4 + String accessIPv6 + String status + String config_drive + String key_name + int progress + String OS_DCF_diskConfig + int OS_EXT_STS_power_state + String OS_EXT_STS_vm_state + String OS_EXT_STS_task_state + String OS_EXT_SRV_ATTR_host + String OS_EXT_SRV_ATTR_instance_name + String OS_EXT_SRV_ATTR_hypervisor_hostname + String OS_SRV_USG_launched_at + String OS_SRV_USG_terminated_at + contains Reference image + contains Reference flavor + contains Addresses[] addresses + contains SecurityGroup[] security_groups + contains Metadata[] metadata + contains Link[] links + contains Fault fault + + + + + + + +} + +class Image { + String ^id + String name + String updated + String created + String tenant_id + String user_id + String status + Long progress + Long minDisk + Long minRam + Long OS_EXT_IMG_SIZE_size + contains Reference server + contains Link[] links + contains Metadata[] metadata +} + +class Flavor { + String ^id + String name + int ram + int disk + int vcpus + String swap + double rxtx_factor + int OS_FLV_EXT_DATA_ephemeral + boolean OS_FLV_DISABLED_disabled + boolean os_flavor_access_is_public + contains Link[] links +} + +class Addresses { + String name + contains Address[] ips +} + +class Address { + int version + String addr + String OS_EXT_IPS_MAC_mac_addr + String OS_EXT_IPS_type +} + +class Link { + String rel + String href + String ^type +} + +class Metadata { + String key + String value +} + +class Fault { + String message + String created + int code +} + +class Personality { + String path + String contents +} + +class Reference { + String ^id + contains Link[] links +} + +class Volume extends NamedEntity { + String status + String display_name + contains VolumeAttachment[] attachments + String availability_zone + String created_at + String volume_type + contains Metadata[] metadata + String ^id + int size + String snapshot_id + String display_description +} + + +class VolumeAttachment { + String device + String server_id + String ^id + String volume_id +} + +class FloatingIp { + String instance_id + String ip + String fixed_ip + String ^id + String pool +} + +class SecurityGroup extends NamedEntity { + contains SecurityRule[] rules + String tenant_id + String ^id + String description +} + +class SecurityRule { + Integer from_port + contains SecurityGroup group + String ip_protocol + Integer to_port + String parent_group_id + contains SecurityRange ip_range + String ^id +} + +class SecurityRange { + String cidr +} + +class KeyPair { + String public_key + String name + String fingerprint +} + + + + + + + diff --git a/ncomp-openstack-model/src/main/xcore/core.xcore b/ncomp-openstack-model/src/main/xcore/core.xcore new file mode 100644 index 0000000..eae2811 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore/core.xcore @@ -0,0 +1,70 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/ncomp-openstack-model/src/main/xcore-gen") + +package org.openecomp.ncomp.openstack.core + + +import org.openecomp.ncomp.core.NamedEntity +import org.openecomp.ncomp.core.DeploymentStatus + + +abstract class OpenStackRequest { + String projectName +} + + +class OpenstackRequestDelete extends OpenStackRequest { + String objectType + String objectName +} + +class OpenstackRequestPoll extends OpenStackRequest { +} + + +class VirtualMachineType extends NamedEntity { + String description + int numberOfCores + int memorySizeMB + int rootDiskSizeGB + int diskSizeGB + int volumeSizeGB + String imageName + String flavorName + boolean needPublicIp + DeploymentStatus deploymentStatus + contains SecurityRule[] incomingSecurityRules + contains SecurityRule[] outboundSecurityRules +} + +class SecurityRule extends NamedEntity { + Integer portRangeStart + Integer portRangeEnd + String prefix + SecurityRuleProtocol ipProtocol +} + +enum SecurityRuleProtocol { none = 1000, tcp = 17, udp = 6, imcp = 0 } + + + diff --git a/ncomp-openstack-model/src/main/xcore/location.xcore b/ncomp-openstack-model/src/main/xcore/location.xcore new file mode 100644 index 0000000..3c84ac9 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore/location.xcore @@ -0,0 +1,149 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/ncomp-openstack-model/src/main/xcore-gen") + +package org.openecomp.ncomp.openstack.location + +import org.openecomp.ncomp.core.NamedEntity +import org.openecomp.ncomp.openstack.compute.Flavor +import org.openecomp.ncomp.openstack.compute.FloatingIp +import org.openecomp.ncomp.openstack.compute.Image +import org.openecomp.ncomp.openstack.compute.KeyPair +import org.openecomp.ncomp.openstack.compute.SecurityGroup +import org.openecomp.ncomp.openstack.compute.Server +import org.openecomp.ncomp.openstack.compute.Volume +import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest +import org.openecomp.ncomp.openstack.neutron.Network +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup +import org.openecomp.ncomp.openstack.neutron.Port +import org.openecomp.ncomp.openstack.neutron.Router +import org.openecomp.ncomp.openstack.neutron.Subnet +import org.openecomp.ncomp.openstack.neutron.NeutronService +import org.openecomp.ncomp.openstack.compute.ComputeService +import org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp +import org.openecomp.ncomp.openstack.ceilometer.CeilometerService +import org.openecomp.ncomp.openstack.ceilometer.CeilometerProject + +annotation 'http://openecomp.org/sirius/persistence' as persistence + + +class OpenStackLocation extends NamedEntity, NeutronService, ComputeService, CeilometerService { + OpenStackVersion version + boolean remoteLocation = "false" + String remoteLocationName + boolean allowCreateFlavor + String keystoneUrl + String bypassIp + int flavorId = "20000" + boolean supportsSecurityGroups = "true" + boolean supportsFloatingIps = "true" + contains unordered OpenStackProject[] projects + contains unordered OpenStackUser[] users + contains unordered Image[] images // + contains unordered Flavor[] flavors // + contains unordered Hypervisor[] hypervisors + op void poll() + op void mergeLocation(OpenStackLocation loc) +} + +enum OpenStackVersion { + Folsom, + Grizzly, + Havana, + Icehouse, + Juno, + Kilo, + Liberty, + Mitaka +} + +class OpenStackProject extends NamedEntity, CeilometerProject { + String ID + String adminUser + String tenantId + String region + String privateNetwork + String publicNetwork + String apiKey // Rackspace + contains unordered Server[] servers // + refers unordered OpenStackUser[] users + refers OpenStackUser controllerUser + op void updateNovaState() + contains unordered Volume[] volumes + contains unordered FloatingIp[] ips + contains unordered SecurityGroup[] groups + contains unordered KeyPair[] keypairs + contains unordered Network[] networks + contains unordered Subnet[] subnets + contains unordered Router[] routers + contains unordered Port[] ports + contains unordered NeutronSecurityGroup[] security_groups + contains unordered NeutronFloatingIp[] floatingips + op Network createNetwork(CreateNetworkRequest r) +} + +class OpenStackUser extends NamedEntity { + @persistence(propertyFile="bsa.properties") + transient String password +} + +class HypervisorService { + String host // lab3-bsa-03-bay03 + int ^id // 14 +} + +class HypervisorCpuTopology { + int cores // 8 + int threads // 2 + int sockets // 1 +} + + +class HypervisorCpuInfo { + String vendor // Intel + String model // SandyBridge + String arch // x86_64 + String[] features // ["pdpe1gb","osxsave","dca","pdcm","xtpr","tm2","est","smx","vmx","ds_cpl","monitor","dtes64","pbe","tm","ht","ss","acpi","ds","vme"] + contains HypervisorCpuTopology topology // {"cores":8,"threads":2,"sockets":1} +} + + +class Hypervisor extends NamedEntity { + contains HypervisorService service // {"host":"lab3-bsa-03-bay03","id":14} + String host_ip + int vcpus_used // 4 + String hypervisor_type // QEMU + int local_gb_used // 60 + String hypervisor_hostname // + int memory_mb_used // 20992 + int memory_mb // 257922 + int current_workload // 0 + int vcpus // 64 + contains HypervisorCpuInfo cpu_info // {"vendor": "Intel", "model": "SandyBridge", "arch": "x86_64", "features": ["pdpe1gb", "osxsave", "dca", "pdcm", "xtpr", "tm2", "est", "smx", "vmx", "ds_cpl", "monitor", "dtes64", "pbe", "tm", "ht", "ss", "acpi", "ds", "vme"], "topology": {"cores": 8, "threads": 2, "sockets": 1}} + int running_vms // 2 + int free_disk_gb // 1007 + int hypervisor_version // 1002000 + int disk_available_least // 977 + int local_gb // 1067 + int free_ram_mb // 236930 + int ^id // 2 +} diff --git a/ncomp-openstack-model/src/main/xcore/neutron.xcore b/ncomp-openstack-model/src/main/xcore/neutron.xcore new file mode 100644 index 0000000..c5f8fde --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore/neutron.xcore @@ -0,0 +1,214 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/ncomp-openstack-model/src/main/xcore-gen") + +package org.openecomp.ncomp.openstack.neutron + +import org.openecomp.ncomp.openstack.core.OpenStackRequest + +annotation "http://openecomp.org/sirius/openstack" as openstack + +abstract class NeutronService { + op Network createNetwork(CreateNetworkRequest request) + op Subnet createSubnet(CreateSubnetRequest request) + op Port createPort(CreatePortRequest request) + op Router createRouter(CreateRouterRequest request) + op void deleteNetwork(String projectName, String name) + op void deleteSubnet(String projectName, String name) + op void deletePort(String projectName, String name) + op void deleteRouter(String projectName, String name) + op void associateFloatingIp(String projectName, String ipId, String portId) +} + + +abstract class NeutronObject {} + +class Network extends NeutronObject { + String ^id + String name + Boolean admin_state_up + String provider_network_type + String provider_physical_network + Integer provider_segmentation_id + Boolean router_external + Boolean shared + String status + String[] subnets + String tenant_id +} + +class Subnet extends NeutronObject { + String ^id + String name + String status + Boolean admin_state_up + String cidr + contains AllocationPool[] allocation_pools + String[] dns_nameservers + Boolean enable_dhcp + String gateway_ip + String[] host_routes + Integer ip_version + String network_id + String tenant_id +} + +class AllocationPool { + String start + String end +} + +class Router extends NeutronObject { + String ^id + String name + String status + Boolean admin_state_up + contains ExternalGateway external_gateway_info + String tenant_id +} + +class Port extends NeutronObject { + String ^id + String name + String status + Boolean admin_state_up + contains ExternalGateway external_gateway_info + String tenant_id + String[] allowed_address_pairs + String binding_host_id + contains BindingProfile binding_profile + contains BindingVifDetail binding_vif_details + String binding_vif_type + String binding_vnic_type + String device_id + String device_owner + String[] extra_dhcp_opts + contains FixedIp[] fixed_ips + String mac_address + String network_id + String[] security_groups +} + +class NeutronSecurityGroup extends NeutronObject { + String ^id + String name + String description + contains NeutronSecurityRule[] security_group_rules + String tenant_id +} + +class NeutronSecurityRule extends NeutronObject { + String ^id + String direction + String ethertype + Integer port_range_min + Integer port_range_max + String protocol + String remote_group_id + String remote_ip_prefix + String security_group_id + String tenant_id +} + +class NeutronFloatingIp extends NeutronObject { + String ^id + String name + String status + String floating_network_id + String router_id + String fixed_ip_address + String floating_ip_address + String tenant_id + String port_id +} + + +class BindingProfile { +} + +class BindingVifDetail { + Boolean ovs_hybrid_plug + Boolean port_filter +} + +class FixedIp { + String ip_address + String subnet_id +} + +class ExternalGateway { + Boolean enable_snat + String network_id +} + +abstract class NeutronRequest extends OpenStackRequest { +} + +class CreateNetworkRequest extends NeutronRequest { + String name + @openstack(name="provider:network_type") + String providerNetworkType + @openstack(name="provider:physical_network") + String providerPhysicalNetwork + @openstack(name="provider:segmentation_id") + int providerSegmentationId + Boolean admin_state_up + Boolean shared +} + +class CreateSubnetRequest extends NeutronRequest { + String name + String[1] network_id + int ip_version + String cidr + contains AllocationPool[] allocation_pools + String[] dns_nameservers + Boolean enable_dhcp + String gateway_ip +} + +class CreateRouterRequest extends NeutronRequest { + String name + Boolean admin_state_up + Boolean shared + String externalNetwork + String[] ports + String[] subnets +} + +class CreatePortRequest extends NeutronRequest { + String name + @openstack(name="binding:vnic_type") + String bindingVnicType + String status + Boolean admin_state_up + @openstack(removeEmptyList="true") + contains FixedIp[] fixed_ips + String mac_address + String[1] network_id + //String[] security_groups +} + + + + + diff --git a/ncomp-openstack-model/src/main/xcore/openstack.xcore b/ncomp-openstack-model/src/main/xcore/openstack.xcore new file mode 100644 index 0000000..8c0fa9a --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore/openstack.xcore @@ -0,0 +1,40 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/ncomp-openstack-model/src/main/xcore-gen") + + +package org.openecomp.ncomp.openstack + +import org.openecomp.ncomp.core.User +import org.openecomp.ncomp.openstack.core.VirtualMachineType +import org.openecomp.ncomp.openstack.location.OpenStackLocation +import org.openecomp.ncomp.core.RemoteContext + +class OpenStackController { + contains OpenStackLocation[] locations + contains VirtualMachineType[] vmTypes + contains User[] users + op void uploadOpenstackConfiguration(RemoteContext cx, OpenStackLocation loc) +} + + + -- cgit 1.2.3-korg