diff options
Diffstat (limited to 'ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron')
44 files changed, 19568 insertions, 0 deletions
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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Allocation Pool</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getStart <em>Start</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getEnd <em>End</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getAllocationPool() + * @model + * @generated + */ +public interface AllocationPool extends EObject { + /** + * Returns the value of the '<em><b>Start</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Start</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Start</em>' 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 <em>Start</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Start</em>' attribute. + * @see #getStart() + * @generated + */ + void setStart(String value); + + /** + * Returns the value of the '<em><b>End</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>End</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>End</em>' 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 <em>End</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>End</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Binding Profile</b></em>'. + * <!-- end-user-doc --> + * + * + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Binding Vif Detail</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getOvs_hybrid_plug <em>Ovs hybrid plug</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getPort_filter <em>Port filter</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getBindingVifDetail() + * @model + * @generated + */ +public interface BindingVifDetail extends EObject { + /** + * Returns the value of the '<em><b>Ovs hybrid plug</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ovs hybrid plug</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Ovs hybrid plug</em>' 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 <em>Ovs hybrid plug</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Ovs hybrid plug</em>' attribute. + * @see #getOvs_hybrid_plug() + * @generated + */ + void setOvs_hybrid_plug(Boolean value); + + /** + * Returns the value of the '<em><b>Port filter</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Port filter</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Port filter</em>' 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 <em>Port filter</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Port filter</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Create Network Request</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderNetworkType <em>Provider Network Type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderPhysicalNetwork <em>Provider Physical Network</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderSegmentationId <em>Provider Segmentation Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getShared <em>Shared</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest() + * @model + * @generated + */ +public interface CreateNetworkRequest extends NeutronRequest { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Provider Network Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Provider Network Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Provider Network Type</em>' 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 <em>Provider Network Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Provider Network Type</em>' attribute. + * @see #getProviderNetworkType() + * @generated + */ + void setProviderNetworkType(String value); + + /** + * Returns the value of the '<em><b>Provider Physical Network</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Provider Physical Network</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Provider Physical Network</em>' 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 <em>Provider Physical Network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Provider Physical Network</em>' attribute. + * @see #getProviderPhysicalNetwork() + * @generated + */ + void setProviderPhysicalNetwork(String value); + + /** + * Returns the value of the '<em><b>Provider Segmentation Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Provider Segmentation Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Provider Segmentation Id</em>' 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 <em>Provider Segmentation Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Provider Segmentation Id</em>' attribute. + * @see #getProviderSegmentationId() + * @generated + */ + void setProviderSegmentationId(int value); + + /** + * Returns the value of the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin state up</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin state up</em>' 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 <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Admin state up</em>' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the '<em><b>Shared</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Shared</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Shared</em>' 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 <em>Shared</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Shared</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Create Port Request</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getBindingVnicType <em>Binding Vnic Type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getFixed_ips <em>Fixed ips</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getMac_address <em>Mac address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getNetwork_id <em>Network id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest() + * @model + * @generated + */ +public interface CreatePortRequest extends NeutronRequest { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Binding Vnic Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Binding Vnic Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Binding Vnic Type</em>' 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 <em>Binding Vnic Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Binding Vnic Type</em>' attribute. + * @see #getBindingVnicType() + * @generated + */ + void setBindingVnicType(String value); + + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' 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 <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin state up</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin state up</em>' 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 <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Admin state up</em>' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the '<em><b>Fixed ips</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.FixedIp}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Fixed ips</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Fixed ips</em>' 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<FixedIp> getFixed_ips(); + + /** + * Returns the value of the '<em><b>Mac address</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mac address</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mac address</em>' 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 <em>Mac address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mac address</em>' attribute. + * @see #getMac_address() + * @generated + */ + void setMac_address(String value); + + /** + * Returns the value of the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Network id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Network id</em>' 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 <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Network id</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Create Router Request</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getShared <em>Shared</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getExternalNetwork <em>External Network</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getPorts <em>Ports</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getSubnets <em>Subnets</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest() + * @model + * @generated + */ +public interface CreateRouterRequest extends NeutronRequest { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin state up</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin state up</em>' 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 <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Admin state up</em>' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the '<em><b>Shared</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Shared</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Shared</em>' 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 <em>Shared</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Shared</em>' attribute. + * @see #getShared() + * @generated + */ + void setShared(Boolean value); + + /** + * Returns the value of the '<em><b>External Network</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>External Network</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>External Network</em>' 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 <em>External Network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>External Network</em>' attribute. + * @see #getExternalNetwork() + * @generated + */ + void setExternalNetwork(String value); + + /** + * Returns the value of the '<em><b>Ports</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ports</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Ports</em>' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Ports() + * @model unique="false" + * @generated + */ + EList<String> getPorts(); + + /** + * Returns the value of the '<em><b>Subnets</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Subnets</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Subnets</em>' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Subnets() + * @model unique="false" + * @generated + */ + EList<String> 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Create Subnet Request</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getNetwork_id <em>Network id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getIp_version <em>Ip version</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getCidr <em>Cidr</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getAllocation_pools <em>Allocation pools</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getDns_nameservers <em>Dns nameservers</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getEnable_dhcp <em>Enable dhcp</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getGateway_ip <em>Gateway ip</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest() + * @model + * @generated + */ +public interface CreateSubnetRequest extends NeutronRequest { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Network id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Network id</em>' 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 <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Network id</em>' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + + /** + * Returns the value of the '<em><b>Ip version</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ip version</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Ip version</em>' 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 <em>Ip version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Ip version</em>' attribute. + * @see #getIp_version() + * @generated + */ + void setIp_version(int value); + + /** + * Returns the value of the '<em><b>Cidr</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cidr</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cidr</em>' 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 <em>Cidr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cidr</em>' attribute. + * @see #getCidr() + * @generated + */ + void setCidr(String value); + + /** + * Returns the value of the '<em><b>Allocation pools</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.AllocationPool}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Allocation pools</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Allocation pools</em>' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Allocation_pools() + * @model containment="true" + * @generated + */ + EList<AllocationPool> getAllocation_pools(); + + /** + * Returns the value of the '<em><b>Dns nameservers</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Dns nameservers</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Dns nameservers</em>' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Dns_nameservers() + * @model unique="false" + * @generated + */ + EList<String> getDns_nameservers(); + + /** + * Returns the value of the '<em><b>Enable dhcp</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Enable dhcp</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Enable dhcp</em>' 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 <em>Enable dhcp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Enable dhcp</em>' attribute. + * @see #getEnable_dhcp() + * @generated + */ + void setEnable_dhcp(Boolean value); + + /** + * Returns the value of the '<em><b>Gateway ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Gateway ip</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Gateway ip</em>' 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 <em>Gateway ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Gateway ip</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>External Gateway</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getEnable_snat <em>Enable snat</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getNetwork_id <em>Network id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getExternalGateway() + * @model + * @generated + */ +public interface ExternalGateway extends EObject { + /** + * Returns the value of the '<em><b>Enable snat</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Enable snat</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Enable snat</em>' 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 <em>Enable snat</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Enable snat</em>' attribute. + * @see #getEnable_snat() + * @generated + */ + void setEnable_snat(Boolean value); + + /** + * Returns the value of the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Network id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Network id</em>' 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 <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Network id</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Fixed Ip</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.FixedIp#getIp_address <em>Ip address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.FixedIp#getSubnet_id <em>Subnet id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getFixedIp() + * @model + * @generated + */ +public interface FixedIp extends EObject { + /** + * Returns the value of the '<em><b>Ip address</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ip address</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Ip address</em>' 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 <em>Ip address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Ip address</em>' attribute. + * @see #getIp_address() + * @generated + */ + void setIp_address(String value); + + /** + * Returns the value of the '<em><b>Subnet id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Subnet id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Subnet id</em>' 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 <em>Subnet id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Subnet id</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Network</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_network_type <em>Provider network type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_physical_network <em>Provider physical network</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_segmentation_id <em>Provider segmentation id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getRouter_external <em>Router external</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getShared <em>Shared</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getSubnets <em>Subnets</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Network#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork() + * @model + * @generated + */ +public interface Network extends NeutronObject { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id</em>' 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 <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin state up</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin state up</em>' 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 <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Admin state up</em>' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the '<em><b>Provider network type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Provider network type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Provider network type</em>' 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 <em>Provider network type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Provider network type</em>' attribute. + * @see #getProvider_network_type() + * @generated + */ + void setProvider_network_type(String value); + + /** + * Returns the value of the '<em><b>Provider physical network</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Provider physical network</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Provider physical network</em>' 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 <em>Provider physical network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Provider physical network</em>' attribute. + * @see #getProvider_physical_network() + * @generated + */ + void setProvider_physical_network(String value); + + /** + * Returns the value of the '<em><b>Provider segmentation id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Provider segmentation id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Provider segmentation id</em>' 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 <em>Provider segmentation id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Provider segmentation id</em>' attribute. + * @see #getProvider_segmentation_id() + * @generated + */ + void setProvider_segmentation_id(Integer value); + + /** + * Returns the value of the '<em><b>Router external</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Router external</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Router external</em>' 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 <em>Router external</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Router external</em>' attribute. + * @see #getRouter_external() + * @generated + */ + void setRouter_external(Boolean value); + + /** + * Returns the value of the '<em><b>Shared</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Shared</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Shared</em>' 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 <em>Shared</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Shared</em>' attribute. + * @see #getShared() + * @generated + */ + void setShared(Boolean value); + + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' 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 <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the '<em><b>Subnets</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Subnets</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Subnets</em>' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Subnets() + * @model unique="false" + * @generated + */ + EList<String> getSubnets(); + + /** + * Returns the value of the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tenant id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tenant id</em>' 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 <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tenant id</em>' 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; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage + * @generated + */ +public interface NeutronFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + NeutronFactory eINSTANCE = org.openecomp.ncomp.openstack.neutron.impl.NeutronFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Network</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Network</em>'. + * @generated + */ + Network createNetwork(); + + /** + * Returns a new object of class '<em>Subnet</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Subnet</em>'. + * @generated + */ + Subnet createSubnet(); + + /** + * Returns a new object of class '<em>Allocation Pool</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Allocation Pool</em>'. + * @generated + */ + AllocationPool createAllocationPool(); + + /** + * Returns a new object of class '<em>Router</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Router</em>'. + * @generated + */ + Router createRouter(); + + /** + * Returns a new object of class '<em>Port</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Port</em>'. + * @generated + */ + Port createPort(); + + /** + * Returns a new object of class '<em>Security Group</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Security Group</em>'. + * @generated + */ + NeutronSecurityGroup createNeutronSecurityGroup(); + + /** + * Returns a new object of class '<em>Security Rule</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Security Rule</em>'. + * @generated + */ + NeutronSecurityRule createNeutronSecurityRule(); + + /** + * Returns a new object of class '<em>Floating Ip</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Floating Ip</em>'. + * @generated + */ + NeutronFloatingIp createNeutronFloatingIp(); + + /** + * Returns a new object of class '<em>Binding Profile</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Binding Profile</em>'. + * @generated + */ + BindingProfile createBindingProfile(); + + /** + * Returns a new object of class '<em>Binding Vif Detail</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Binding Vif Detail</em>'. + * @generated + */ + BindingVifDetail createBindingVifDetail(); + + /** + * Returns a new object of class '<em>Fixed Ip</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Fixed Ip</em>'. + * @generated + */ + FixedIp createFixedIp(); + + /** + * Returns a new object of class '<em>External Gateway</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>External Gateway</em>'. + * @generated + */ + ExternalGateway createExternalGateway(); + + /** + * Returns a new object of class '<em>Create Network Request</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Create Network Request</em>'. + * @generated + */ + CreateNetworkRequest createCreateNetworkRequest(); + + /** + * Returns a new object of class '<em>Create Subnet Request</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Create Subnet Request</em>'. + * @generated + */ + CreateSubnetRequest createCreateSubnetRequest(); + + /** + * Returns a new object of class '<em>Create Router Request</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Create Router Request</em>'. + * @generated + */ + CreateRouterRequest createCreateRouterRequest(); + + /** + * Returns a new object of class '<em>Create Port Request</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Create Port Request</em>'. + * @generated + */ + CreatePortRequest createCreatePortRequest(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Floating Ip</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_network_id <em>Floating network id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getRouter_id <em>Router id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFixed_ip_address <em>Fixed ip address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_ip_address <em>Floating ip address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getTenant_id <em>Tenant id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getPort_id <em>Port id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp() + * @model + * @generated + */ +public interface NeutronFloatingIp extends NeutronObject { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id</em>' 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 <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' 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 <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the '<em><b>Floating network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Floating network id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Floating network id</em>' 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 <em>Floating network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Floating network id</em>' attribute. + * @see #getFloating_network_id() + * @generated + */ + void setFloating_network_id(String value); + + /** + * Returns the value of the '<em><b>Router id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Router id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Router id</em>' 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 <em>Router id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Router id</em>' attribute. + * @see #getRouter_id() + * @generated + */ + void setRouter_id(String value); + + /** + * Returns the value of the '<em><b>Fixed ip address</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Fixed ip address</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Fixed ip address</em>' 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 <em>Fixed ip address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Fixed ip address</em>' attribute. + * @see #getFixed_ip_address() + * @generated + */ + void setFixed_ip_address(String value); + + /** + * Returns the value of the '<em><b>Floating ip address</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Floating ip address</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Floating ip address</em>' 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 <em>Floating ip address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Floating ip address</em>' attribute. + * @see #getFloating_ip_address() + * @generated + */ + void setFloating_ip_address(String value); + + /** + * Returns the value of the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tenant id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tenant id</em>' 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 <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tenant id</em>' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the '<em><b>Port id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Port id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Port id</em>' 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 <em>Port id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Port id</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Object</b></em>'. + * <!-- end-user-doc --> + * + * + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "neutron"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.ncomp.openstack.neutron"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "neutron"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Service</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em>Service</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE_FEATURE_COUNT = 0; + + /** + * The operation id for the '<em>Create Network</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST = 0; + + /** + * The operation id for the '<em>Create Subnet</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST = 1; + + /** + * The operation id for the '<em>Create Port</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST = 2; + + /** + * The operation id for the '<em>Create Router</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST = 3; + + /** + * The operation id for the '<em>Delete Network</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING = 4; + + /** + * The operation id for the '<em>Delete Subnet</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING = 5; + + /** + * The operation id for the '<em>Delete Port</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE___DELETE_PORT__STRING_STRING = 6; + + /** + * The operation id for the '<em>Delete Router</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING = 7; + + /** + * The operation id for the '<em>Associate Floating Ip</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING = 8; + + /** + * The number of operations of the '<em>Service</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SERVICE_OPERATION_COUNT = 9; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronObjectImpl <em>Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em>Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_OBJECT_FEATURE_COUNT = 0; + + /** + * The number of operations of the '<em>Object</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_OBJECT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl <em>Network</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__ADMIN_STATE_UP = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Provider network type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__PROVIDER_NETWORK_TYPE = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Provider physical network</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__PROVIDER_PHYSICAL_NETWORK = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Provider segmentation id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__PROVIDER_SEGMENTATION_ID = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Router external</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__ROUTER_EXTERNAL = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Shared</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__SHARED = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Subnets</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__SUBNETS = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The feature id for the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 10; + + /** + * The number of structural features of the '<em>Network</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NETWORK_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 11; + + /** + * The number of operations of the '<em>Network</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Subnet</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__ADMIN_STATE_UP = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Cidr</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__CIDR = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Allocation pools</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__ALLOCATION_POOLS = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Dns nameservers</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__DNS_NAMESERVERS = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Enable dhcp</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__ENABLE_DHCP = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Gateway ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__GATEWAY_IP = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Host routes</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__HOST_ROUTES = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The feature id for the '<em><b>Ip version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__IP_VERSION = NEUTRON_OBJECT_FEATURE_COUNT + 10; + + /** + * The feature id for the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__NETWORK_ID = NEUTRON_OBJECT_FEATURE_COUNT + 11; + + /** + * The feature id for the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 12; + + /** + * The number of structural features of the '<em>Subnet</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SUBNET_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 13; + + /** + * The number of operations of the '<em>Subnet</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Allocation Pool</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Start</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ALLOCATION_POOL__START = 0; + + /** + * The feature id for the '<em><b>End</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ALLOCATION_POOL__END = 1; + + /** + * The number of structural features of the '<em>Allocation Pool</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ALLOCATION_POOL_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Allocation Pool</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ALLOCATION_POOL_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl <em>Router</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ROUTER__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ROUTER__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ROUTER__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ROUTER__ADMIN_STATE_UP = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>External gateway info</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ROUTER__EXTERNAL_GATEWAY_INFO = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ROUTER__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The number of structural features of the '<em>Router</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ROUTER_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The number of operations of the '<em>Router</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Port</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__ADMIN_STATE_UP = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>External gateway info</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__EXTERNAL_GATEWAY_INFO = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Allowed address pairs</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__ALLOWED_ADDRESS_PAIRS = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Binding host id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__BINDING_HOST_ID = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Binding profile</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__BINDING_PROFILE = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Binding vif details</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__BINDING_VIF_DETAILS = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The feature id for the '<em><b>Binding vif type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__BINDING_VIF_TYPE = NEUTRON_OBJECT_FEATURE_COUNT + 10; + + /** + * The feature id for the '<em><b>Binding vnic type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__BINDING_VNIC_TYPE = NEUTRON_OBJECT_FEATURE_COUNT + 11; + + /** + * The feature id for the '<em><b>Device id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__DEVICE_ID = NEUTRON_OBJECT_FEATURE_COUNT + 12; + + /** + * The feature id for the '<em><b>Device owner</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__DEVICE_OWNER = NEUTRON_OBJECT_FEATURE_COUNT + 13; + + /** + * The feature id for the '<em><b>Extra dhcp opts</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__EXTRA_DHCP_OPTS = NEUTRON_OBJECT_FEATURE_COUNT + 14; + + /** + * The feature id for the '<em><b>Fixed ips</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__FIXED_IPS = NEUTRON_OBJECT_FEATURE_COUNT + 15; + + /** + * The feature id for the '<em><b>Mac address</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__MAC_ADDRESS = NEUTRON_OBJECT_FEATURE_COUNT + 16; + + /** + * The feature id for the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__NETWORK_ID = NEUTRON_OBJECT_FEATURE_COUNT + 17; + + /** + * The feature id for the '<em><b>Security groups</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT__SECURITY_GROUPS = NEUTRON_OBJECT_FEATURE_COUNT + 18; + + /** + * The number of structural features of the '<em>Port</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PORT_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 19; + + /** + * The number of operations of the '<em>Port</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Security Group</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__DESCRIPTION = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Security group rules</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The number of structural features of the '<em>Security Group</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_GROUP_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The number of operations of the '<em>Security Group</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Security Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Direction</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__DIRECTION = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Ethertype</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__ETHERTYPE = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Port range min</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__PORT_RANGE_MIN = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Port range max</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__PORT_RANGE_MAX = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Protocol</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__PROTOCOL = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Remote group id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Remote ip prefix</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Security group id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The number of structural features of the '<em>Security Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_SECURITY_RULE_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 10; + + /** + * The number of operations of the '<em>Security Rule</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Floating Ip</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__ID = NEUTRON_OBJECT_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__NAME = NEUTRON_OBJECT_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__STATUS = NEUTRON_OBJECT_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Floating network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID = NEUTRON_OBJECT_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Router id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__ROUTER_ID = NEUTRON_OBJECT_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Fixed ip address</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS = NEUTRON_OBJECT_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Floating ip address</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS = NEUTRON_OBJECT_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__TENANT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Port id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP__PORT_ID = NEUTRON_OBJECT_FEATURE_COUNT + 8; + + /** + * The number of structural features of the '<em>Floating Ip</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_FLOATING_IP_FEATURE_COUNT = NEUTRON_OBJECT_FEATURE_COUNT + 9; + + /** + * The number of operations of the '<em>Floating Ip</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Binding Profile</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em>Binding Profile</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BINDING_PROFILE_FEATURE_COUNT = 0; + + /** + * The number of operations of the '<em>Binding Profile</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BINDING_PROFILE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl <em>Binding Vif Detail</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Ovs hybrid plug</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BINDING_VIF_DETAIL__OVS_HYBRID_PLUG = 0; + + /** + * The feature id for the '<em><b>Port filter</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BINDING_VIF_DETAIL__PORT_FILTER = 1; + + /** + * The number of structural features of the '<em>Binding Vif Detail</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BINDING_VIF_DETAIL_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Binding Vif Detail</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BINDING_VIF_DETAIL_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl <em>Fixed Ip</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Ip address</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FIXED_IP__IP_ADDRESS = 0; + + /** + * The feature id for the '<em><b>Subnet id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FIXED_IP__SUBNET_ID = 1; + + /** + * The number of structural features of the '<em>Fixed Ip</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FIXED_IP_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>Fixed Ip</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FIXED_IP_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl <em>External Gateway</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Enable snat</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EXTERNAL_GATEWAY__ENABLE_SNAT = 0; + + /** + * The feature id for the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EXTERNAL_GATEWAY__NETWORK_ID = 1; + + /** + * The number of structural features of the '<em>External Gateway</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EXTERNAL_GATEWAY_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>External Gateway</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EXTERNAL_GATEWAY_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronRequestImpl <em>Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Project Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_REQUEST__PROJECT_NAME = CorePackage.OPEN_STACK_REQUEST__PROJECT_NAME; + + /** + * The number of structural features of the '<em>Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NEUTRON_REQUEST_FEATURE_COUNT = CorePackage.OPEN_STACK_REQUEST_FEATURE_COUNT + 0; + + /** + * The number of operations of the '<em>Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Create Network Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Project Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__PROJECT_NAME = NEUTRON_REQUEST__PROJECT_NAME; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__NAME = NEUTRON_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Provider Network Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE = NEUTRON_REQUEST_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Provider Physical Network</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK = NEUTRON_REQUEST_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Provider Segmentation Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID = NEUTRON_REQUEST_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__ADMIN_STATE_UP = NEUTRON_REQUEST_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Shared</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST__SHARED = NEUTRON_REQUEST_FEATURE_COUNT + 5; + + /** + * The number of structural features of the '<em>Create Network Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_NETWORK_REQUEST_FEATURE_COUNT = NEUTRON_REQUEST_FEATURE_COUNT + 6; + + /** + * The number of operations of the '<em>Create Network Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Create Subnet Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Project Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__PROJECT_NAME = NEUTRON_REQUEST__PROJECT_NAME; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__NAME = NEUTRON_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__NETWORK_ID = NEUTRON_REQUEST_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Ip version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__IP_VERSION = NEUTRON_REQUEST_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Cidr</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__CIDR = NEUTRON_REQUEST_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Allocation pools</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__ALLOCATION_POOLS = NEUTRON_REQUEST_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Dns nameservers</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__DNS_NAMESERVERS = NEUTRON_REQUEST_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Enable dhcp</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__ENABLE_DHCP = NEUTRON_REQUEST_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Gateway ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST__GATEWAY_IP = NEUTRON_REQUEST_FEATURE_COUNT + 7; + + /** + * The number of structural features of the '<em>Create Subnet Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_SUBNET_REQUEST_FEATURE_COUNT = NEUTRON_REQUEST_FEATURE_COUNT + 8; + + /** + * The number of operations of the '<em>Create Subnet Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Create Router Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Project Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__PROJECT_NAME = NEUTRON_REQUEST__PROJECT_NAME; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__NAME = NEUTRON_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__ADMIN_STATE_UP = NEUTRON_REQUEST_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Shared</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__SHARED = NEUTRON_REQUEST_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>External Network</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK = NEUTRON_REQUEST_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Ports</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__PORTS = NEUTRON_REQUEST_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Subnets</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST__SUBNETS = NEUTRON_REQUEST_FEATURE_COUNT + 5; + + /** + * The number of structural features of the '<em>Create Router Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_ROUTER_REQUEST_FEATURE_COUNT = NEUTRON_REQUEST_FEATURE_COUNT + 6; + + /** + * The number of operations of the '<em>Create Router Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Create Port Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Project Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__PROJECT_NAME = NEUTRON_REQUEST__PROJECT_NAME; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__NAME = NEUTRON_REQUEST_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Binding Vnic Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__BINDING_VNIC_TYPE = NEUTRON_REQUEST_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__STATUS = NEUTRON_REQUEST_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__ADMIN_STATE_UP = NEUTRON_REQUEST_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Fixed ips</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__FIXED_IPS = NEUTRON_REQUEST_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Mac address</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__MAC_ADDRESS = NEUTRON_REQUEST_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST__NETWORK_ID = NEUTRON_REQUEST_FEATURE_COUNT + 6; + + /** + * The number of structural features of the '<em>Create Port Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CREATE_PORT_REQUEST_FEATURE_COUNT = NEUTRON_REQUEST_FEATURE_COUNT + 7; + + /** + * The number of operations of the '<em>Create Port Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Service</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Service</em>'. + * @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) <em>Create Network</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Create Network</em>' 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) <em>Create Subnet</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Create Subnet</em>' 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) <em>Create Port</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Create Port</em>' 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) <em>Create Router</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Create Router</em>' 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) <em>Delete Network</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Delete Network</em>' 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) <em>Delete Subnet</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Delete Subnet</em>' 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) <em>Delete Port</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Delete Port</em>' 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) <em>Delete Router</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Delete Router</em>' 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) <em>Associate Floating Ip</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Associate Floating Ip</em>' 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 <em>Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Object</em>'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronObject + * @generated + */ + EClass getNeutronObject(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.Network <em>Network</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Network</em>'. + * @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 <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Admin state up</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Admin state up</em>'. + * @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 <em>Provider network type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Provider network type</em>'. + * @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 <em>Provider physical network</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Provider physical network</em>'. + * @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 <em>Provider segmentation id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Provider segmentation id</em>'. + * @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 <em>Router external</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Router external</em>'. + * @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 <em>Shared</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Shared</em>'. + * @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 <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @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 <em>Subnets</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Subnets</em>'. + * @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 <em>Tenant id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tenant id</em>'. + * @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 <em>Subnet</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Subnet</em>'. + * @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 <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @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 <em>Admin state up</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Admin state up</em>'. + * @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 <em>Cidr</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Cidr</em>'. + * @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 <em>Allocation pools</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Allocation pools</em>'. + * @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 <em>Dns nameservers</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Dns nameservers</em>'. + * @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 <em>Enable dhcp</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Enable dhcp</em>'. + * @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 <em>Gateway ip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Gateway ip</em>'. + * @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 <em>Host routes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Host routes</em>'. + * @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 <em>Ip version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Ip version</em>'. + * @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 <em>Network id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Network id</em>'. + * @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 <em>Tenant id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tenant id</em>'. + * @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 <em>Allocation Pool</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Allocation Pool</em>'. + * @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 <em>Start</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Start</em>'. + * @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 <em>End</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>End</em>'. + * @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 <em>Router</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Router</em>'. + * @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 <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @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 <em>Admin state up</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Admin state up</em>'. + * @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 <em>External gateway info</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>External gateway info</em>'. + * @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 <em>Tenant id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tenant id</em>'. + * @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 <em>Port</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Port</em>'. + * @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 <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @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 <em>Admin state up</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Admin state up</em>'. + * @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 <em>External gateway info</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>External gateway info</em>'. + * @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 <em>Tenant id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tenant id</em>'. + * @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 <em>Allowed address pairs</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Allowed address pairs</em>'. + * @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 <em>Binding host id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Binding host id</em>'. + * @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 <em>Binding profile</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Binding profile</em>'. + * @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 <em>Binding vif details</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Binding vif details</em>'. + * @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 <em>Binding vif type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Binding vif type</em>'. + * @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 <em>Binding vnic type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Binding vnic type</em>'. + * @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 <em>Device id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Device id</em>'. + * @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 <em>Device owner</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Device owner</em>'. + * @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 <em>Extra dhcp opts</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Extra dhcp opts</em>'. + * @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 <em>Fixed ips</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Fixed ips</em>'. + * @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 <em>Mac address</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mac address</em>'. + * @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 <em>Network id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Network id</em>'. + * @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 <em>Security groups</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Security groups</em>'. + * @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 <em>Security Group</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Security Group</em>'. + * @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 <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @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 <em>Security group rules</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Security group rules</em>'. + * @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 <em>Tenant id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tenant id</em>'. + * @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 <em>Security Rule</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Security Rule</em>'. + * @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 <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @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 <em>Direction</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Direction</em>'. + * @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 <em>Ethertype</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Ethertype</em>'. + * @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 <em>Port range min</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Port range min</em>'. + * @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 <em>Port range max</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Port range max</em>'. + * @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 <em>Protocol</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Protocol</em>'. + * @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 <em>Remote group id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Remote group id</em>'. + * @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 <em>Remote ip prefix</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Remote ip prefix</em>'. + * @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 <em>Security group id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Security group id</em>'. + * @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 <em>Tenant id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tenant id</em>'. + * @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 <em>Floating Ip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Floating Ip</em>'. + * @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 <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Id</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @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 <em>Floating network id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Floating network id</em>'. + * @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 <em>Router id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Router id</em>'. + * @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 <em>Fixed ip address</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Fixed ip address</em>'. + * @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 <em>Floating ip address</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Floating ip address</em>'. + * @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 <em>Tenant id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Tenant id</em>'. + * @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 <em>Port id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Port id</em>'. + * @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 <em>Binding Profile</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Binding Profile</em>'. + * @see org.openecomp.ncomp.openstack.neutron.BindingProfile + * @generated + */ + EClass getBindingProfile(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail <em>Binding Vif Detail</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Binding Vif Detail</em>'. + * @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 <em>Ovs hybrid plug</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Ovs hybrid plug</em>'. + * @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 <em>Port filter</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Port filter</em>'. + * @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 <em>Fixed Ip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Fixed Ip</em>'. + * @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 <em>Ip address</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Ip address</em>'. + * @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 <em>Subnet id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Subnet id</em>'. + * @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 <em>External Gateway</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>External Gateway</em>'. + * @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 <em>Enable snat</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Enable snat</em>'. + * @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 <em>Network id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Network id</em>'. + * @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 <em>Request</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Request</em>'. + * @see org.openecomp.ncomp.openstack.neutron.NeutronRequest + * @generated + */ + EClass getNeutronRequest(); + + /** + * Returns the meta object for class '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest <em>Create Network Request</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Create Network Request</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Provider Network Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Provider Network Type</em>'. + * @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 <em>Provider Physical Network</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Provider Physical Network</em>'. + * @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 <em>Provider Segmentation Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Provider Segmentation Id</em>'. + * @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 <em>Admin state up</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Admin state up</em>'. + * @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 <em>Shared</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Shared</em>'. + * @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 <em>Create Subnet Request</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Create Subnet Request</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Network id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Network id</em>'. + * @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 <em>Ip version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Ip version</em>'. + * @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 <em>Cidr</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Cidr</em>'. + * @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 <em>Allocation pools</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Allocation pools</em>'. + * @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 <em>Dns nameservers</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Dns nameservers</em>'. + * @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 <em>Enable dhcp</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Enable dhcp</em>'. + * @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 <em>Gateway ip</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Gateway ip</em>'. + * @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 <em>Create Router Request</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Create Router Request</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Admin state up</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Admin state up</em>'. + * @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 <em>Shared</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Shared</em>'. + * @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 <em>External Network</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>External Network</em>'. + * @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 <em>Ports</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Ports</em>'. + * @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 <em>Subnets</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Subnets</em>'. + * @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 <em>Create Port Request</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Create Port Request</em>'. + * @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 <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @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 <em>Binding Vnic Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Binding Vnic Type</em>'. + * @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 <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @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 <em>Admin state up</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Admin state up</em>'. + * @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 <em>Fixed ips</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Fixed ips</em>'. + * @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 <em>Mac address</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mac address</em>'. + * @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 <em>Network id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Network id</em>'. + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + NeutronFactory getNeutronFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronServiceImpl <em>Service</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Create Network</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST = eINSTANCE.getNeutronService__CreateNetwork__CreateNetworkRequest(); + + /** + * The meta object literal for the '<em><b>Create Subnet</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST = eINSTANCE.getNeutronService__CreateSubnet__CreateSubnetRequest(); + + /** + * The meta object literal for the '<em><b>Create Port</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST = eINSTANCE.getNeutronService__CreatePort__CreatePortRequest(); + + /** + * The meta object literal for the '<em><b>Create Router</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST = eINSTANCE.getNeutronService__CreateRouter__CreateRouterRequest(); + + /** + * The meta object literal for the '<em><b>Delete Network</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING = eINSTANCE.getNeutronService__DeleteNetwork__String_String(); + + /** + * The meta object literal for the '<em><b>Delete Subnet</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING = eINSTANCE.getNeutronService__DeleteSubnet__String_String(); + + /** + * The meta object literal for the '<em><b>Delete Port</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation NEUTRON_SERVICE___DELETE_PORT__STRING_STRING = eINSTANCE.getNeutronService__DeletePort__String_String(); + + /** + * The meta object literal for the '<em><b>Delete Router</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING = eINSTANCE.getNeutronService__DeleteRouter__String_String(); + + /** + * The meta object literal for the '<em><b>Associate Floating Ip</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Object</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Network</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__ID = eINSTANCE.getNetwork_Id(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__NAME = eINSTANCE.getNetwork_Name(); + + /** + * The meta object literal for the '<em><b>Admin state up</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__ADMIN_STATE_UP = eINSTANCE.getNetwork_Admin_state_up(); + + /** + * The meta object literal for the '<em><b>Provider network type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__PROVIDER_NETWORK_TYPE = eINSTANCE.getNetwork_Provider_network_type(); + + /** + * The meta object literal for the '<em><b>Provider physical network</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__PROVIDER_PHYSICAL_NETWORK = eINSTANCE.getNetwork_Provider_physical_network(); + + /** + * The meta object literal for the '<em><b>Provider segmentation id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__PROVIDER_SEGMENTATION_ID = eINSTANCE.getNetwork_Provider_segmentation_id(); + + /** + * The meta object literal for the '<em><b>Router external</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__ROUTER_EXTERNAL = eINSTANCE.getNetwork_Router_external(); + + /** + * The meta object literal for the '<em><b>Shared</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__SHARED = eINSTANCE.getNetwork_Shared(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__STATUS = eINSTANCE.getNetwork_Status(); + + /** + * The meta object literal for the '<em><b>Subnets</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__SUBNETS = eINSTANCE.getNetwork_Subnets(); + + /** + * The meta object literal for the '<em><b>Tenant id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NETWORK__TENANT_ID = eINSTANCE.getNetwork_Tenant_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl <em>Subnet</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__ID = eINSTANCE.getSubnet_Id(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__NAME = eINSTANCE.getSubnet_Name(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__STATUS = eINSTANCE.getSubnet_Status(); + + /** + * The meta object literal for the '<em><b>Admin state up</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__ADMIN_STATE_UP = eINSTANCE.getSubnet_Admin_state_up(); + + /** + * The meta object literal for the '<em><b>Cidr</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__CIDR = eINSTANCE.getSubnet_Cidr(); + + /** + * The meta object literal for the '<em><b>Allocation pools</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SUBNET__ALLOCATION_POOLS = eINSTANCE.getSubnet_Allocation_pools(); + + /** + * The meta object literal for the '<em><b>Dns nameservers</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__DNS_NAMESERVERS = eINSTANCE.getSubnet_Dns_nameservers(); + + /** + * The meta object literal for the '<em><b>Enable dhcp</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__ENABLE_DHCP = eINSTANCE.getSubnet_Enable_dhcp(); + + /** + * The meta object literal for the '<em><b>Gateway ip</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__GATEWAY_IP = eINSTANCE.getSubnet_Gateway_ip(); + + /** + * The meta object literal for the '<em><b>Host routes</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__HOST_ROUTES = eINSTANCE.getSubnet_Host_routes(); + + /** + * The meta object literal for the '<em><b>Ip version</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__IP_VERSION = eINSTANCE.getSubnet_Ip_version(); + + /** + * The meta object literal for the '<em><b>Network id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__NETWORK_ID = eINSTANCE.getSubnet_Network_id(); + + /** + * The meta object literal for the '<em><b>Tenant id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SUBNET__TENANT_ID = eINSTANCE.getSubnet_Tenant_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl <em>Allocation Pool</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Start</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ALLOCATION_POOL__START = eINSTANCE.getAllocationPool_Start(); + + /** + * The meta object literal for the '<em><b>End</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ALLOCATION_POOL__END = eINSTANCE.getAllocationPool_End(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl <em>Router</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ROUTER__ID = eINSTANCE.getRouter_Id(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ROUTER__NAME = eINSTANCE.getRouter_Name(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ROUTER__STATUS = eINSTANCE.getRouter_Status(); + + /** + * The meta object literal for the '<em><b>Admin state up</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ROUTER__ADMIN_STATE_UP = eINSTANCE.getRouter_Admin_state_up(); + + /** + * The meta object literal for the '<em><b>External gateway info</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ROUTER__EXTERNAL_GATEWAY_INFO = eINSTANCE.getRouter_External_gateway_info(); + + /** + * The meta object literal for the '<em><b>Tenant id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ROUTER__TENANT_ID = eINSTANCE.getRouter_Tenant_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl <em>Port</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__ID = eINSTANCE.getPort_Id(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__NAME = eINSTANCE.getPort_Name(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__STATUS = eINSTANCE.getPort_Status(); + + /** + * The meta object literal for the '<em><b>Admin state up</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__ADMIN_STATE_UP = eINSTANCE.getPort_Admin_state_up(); + + /** + * The meta object literal for the '<em><b>External gateway info</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference PORT__EXTERNAL_GATEWAY_INFO = eINSTANCE.getPort_External_gateway_info(); + + /** + * The meta object literal for the '<em><b>Tenant id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__TENANT_ID = eINSTANCE.getPort_Tenant_id(); + + /** + * The meta object literal for the '<em><b>Allowed address pairs</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__ALLOWED_ADDRESS_PAIRS = eINSTANCE.getPort_Allowed_address_pairs(); + + /** + * The meta object literal for the '<em><b>Binding host id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__BINDING_HOST_ID = eINSTANCE.getPort_Binding_host_id(); + + /** + * The meta object literal for the '<em><b>Binding profile</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference PORT__BINDING_PROFILE = eINSTANCE.getPort_Binding_profile(); + + /** + * The meta object literal for the '<em><b>Binding vif details</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference PORT__BINDING_VIF_DETAILS = eINSTANCE.getPort_Binding_vif_details(); + + /** + * The meta object literal for the '<em><b>Binding vif type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__BINDING_VIF_TYPE = eINSTANCE.getPort_Binding_vif_type(); + + /** + * The meta object literal for the '<em><b>Binding vnic type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__BINDING_VNIC_TYPE = eINSTANCE.getPort_Binding_vnic_type(); + + /** + * The meta object literal for the '<em><b>Device id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__DEVICE_ID = eINSTANCE.getPort_Device_id(); + + /** + * The meta object literal for the '<em><b>Device owner</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__DEVICE_OWNER = eINSTANCE.getPort_Device_owner(); + + /** + * The meta object literal for the '<em><b>Extra dhcp opts</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__EXTRA_DHCP_OPTS = eINSTANCE.getPort_Extra_dhcp_opts(); + + /** + * The meta object literal for the '<em><b>Fixed ips</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference PORT__FIXED_IPS = eINSTANCE.getPort_Fixed_ips(); + + /** + * The meta object literal for the '<em><b>Mac address</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__MAC_ADDRESS = eINSTANCE.getPort_Mac_address(); + + /** + * The meta object literal for the '<em><b>Network id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__NETWORK_ID = eINSTANCE.getPort_Network_id(); + + /** + * The meta object literal for the '<em><b>Security groups</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PORT__SECURITY_GROUPS = eINSTANCE.getPort_Security_groups(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl <em>Security Group</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_GROUP__ID = eINSTANCE.getNeutronSecurityGroup_Id(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_GROUP__NAME = eINSTANCE.getNeutronSecurityGroup_Name(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_GROUP__DESCRIPTION = eINSTANCE.getNeutronSecurityGroup_Description(); + + /** + * The meta object literal for the '<em><b>Security group rules</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES = eINSTANCE.getNeutronSecurityGroup_Security_group_rules(); + + /** + * The meta object literal for the '<em><b>Tenant id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Security Rule</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__ID = eINSTANCE.getNeutronSecurityRule_Id(); + + /** + * The meta object literal for the '<em><b>Direction</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__DIRECTION = eINSTANCE.getNeutronSecurityRule_Direction(); + + /** + * The meta object literal for the '<em><b>Ethertype</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__ETHERTYPE = eINSTANCE.getNeutronSecurityRule_Ethertype(); + + /** + * The meta object literal for the '<em><b>Port range min</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__PORT_RANGE_MIN = eINSTANCE.getNeutronSecurityRule_Port_range_min(); + + /** + * The meta object literal for the '<em><b>Port range max</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__PORT_RANGE_MAX = eINSTANCE.getNeutronSecurityRule_Port_range_max(); + + /** + * The meta object literal for the '<em><b>Protocol</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__PROTOCOL = eINSTANCE.getNeutronSecurityRule_Protocol(); + + /** + * The meta object literal for the '<em><b>Remote group id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID = eINSTANCE.getNeutronSecurityRule_Remote_group_id(); + + /** + * The meta object literal for the '<em><b>Remote ip prefix</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX = eINSTANCE.getNeutronSecurityRule_Remote_ip_prefix(); + + /** + * The meta object literal for the '<em><b>Security group id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID = eINSTANCE.getNeutronSecurityRule_Security_group_id(); + + /** + * The meta object literal for the '<em><b>Tenant id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Floating Ip</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__ID = eINSTANCE.getNeutronFloatingIp_Id(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__NAME = eINSTANCE.getNeutronFloatingIp_Name(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__STATUS = eINSTANCE.getNeutronFloatingIp_Status(); + + /** + * The meta object literal for the '<em><b>Floating network id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID = eINSTANCE.getNeutronFloatingIp_Floating_network_id(); + + /** + * The meta object literal for the '<em><b>Router id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__ROUTER_ID = eINSTANCE.getNeutronFloatingIp_Router_id(); + + /** + * The meta object literal for the '<em><b>Fixed ip address</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS = eINSTANCE.getNeutronFloatingIp_Fixed_ip_address(); + + /** + * The meta object literal for the '<em><b>Floating ip address</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS = eINSTANCE.getNeutronFloatingIp_Floating_ip_address(); + + /** + * The meta object literal for the '<em><b>Tenant id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NEUTRON_FLOATING_IP__TENANT_ID = eINSTANCE.getNeutronFloatingIp_Tenant_id(); + + /** + * The meta object literal for the '<em><b>Port id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Binding Profile</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Binding Vif Detail</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Ovs hybrid plug</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute BINDING_VIF_DETAIL__OVS_HYBRID_PLUG = eINSTANCE.getBindingVifDetail_Ovs_hybrid_plug(); + + /** + * The meta object literal for the '<em><b>Port filter</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Fixed Ip</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Ip address</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute FIXED_IP__IP_ADDRESS = eINSTANCE.getFixedIp_Ip_address(); + + /** + * The meta object literal for the '<em><b>Subnet id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute FIXED_IP__SUBNET_ID = eINSTANCE.getFixedIp_Subnet_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl <em>External Gateway</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Enable snat</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EXTERNAL_GATEWAY__ENABLE_SNAT = eINSTANCE.getExternalGateway_Enable_snat(); + + /** + * The meta object literal for the '<em><b>Network id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EXTERNAL_GATEWAY__NETWORK_ID = eINSTANCE.getExternalGateway_Network_id(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronRequestImpl <em>Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Create Network Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__NAME = eINSTANCE.getCreateNetworkRequest_Name(); + + /** + * The meta object literal for the '<em><b>Provider Network Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE = eINSTANCE.getCreateNetworkRequest_ProviderNetworkType(); + + /** + * The meta object literal for the '<em><b>Provider Physical Network</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK = eINSTANCE.getCreateNetworkRequest_ProviderPhysicalNetwork(); + + /** + * The meta object literal for the '<em><b>Provider Segmentation Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID = eINSTANCE.getCreateNetworkRequest_ProviderSegmentationId(); + + /** + * The meta object literal for the '<em><b>Admin state up</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__ADMIN_STATE_UP = eINSTANCE.getCreateNetworkRequest_Admin_state_up(); + + /** + * The meta object literal for the '<em><b>Shared</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_NETWORK_REQUEST__SHARED = eINSTANCE.getCreateNetworkRequest_Shared(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl <em>Create Subnet Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__NAME = eINSTANCE.getCreateSubnetRequest_Name(); + + /** + * The meta object literal for the '<em><b>Network id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__NETWORK_ID = eINSTANCE.getCreateSubnetRequest_Network_id(); + + /** + * The meta object literal for the '<em><b>Ip version</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__IP_VERSION = eINSTANCE.getCreateSubnetRequest_Ip_version(); + + /** + * The meta object literal for the '<em><b>Cidr</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__CIDR = eINSTANCE.getCreateSubnetRequest_Cidr(); + + /** + * The meta object literal for the '<em><b>Allocation pools</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CREATE_SUBNET_REQUEST__ALLOCATION_POOLS = eINSTANCE.getCreateSubnetRequest_Allocation_pools(); + + /** + * The meta object literal for the '<em><b>Dns nameservers</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__DNS_NAMESERVERS = eINSTANCE.getCreateSubnetRequest_Dns_nameservers(); + + /** + * The meta object literal for the '<em><b>Enable dhcp</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_SUBNET_REQUEST__ENABLE_DHCP = eINSTANCE.getCreateSubnetRequest_Enable_dhcp(); + + /** + * The meta object literal for the '<em><b>Gateway ip</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <em>Create Router Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__NAME = eINSTANCE.getCreateRouterRequest_Name(); + + /** + * The meta object literal for the '<em><b>Admin state up</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__ADMIN_STATE_UP = eINSTANCE.getCreateRouterRequest_Admin_state_up(); + + /** + * The meta object literal for the '<em><b>Shared</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__SHARED = eINSTANCE.getCreateRouterRequest_Shared(); + + /** + * The meta object literal for the '<em><b>External Network</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK = eINSTANCE.getCreateRouterRequest_ExternalNetwork(); + + /** + * The meta object literal for the '<em><b>Ports</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__PORTS = eINSTANCE.getCreateRouterRequest_Ports(); + + /** + * The meta object literal for the '<em><b>Subnets</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_ROUTER_REQUEST__SUBNETS = eINSTANCE.getCreateRouterRequest_Subnets(); + + /** + * The meta object literal for the '{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl <em>Create Port Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_PORT_REQUEST__NAME = eINSTANCE.getCreatePortRequest_Name(); + + /** + * The meta object literal for the '<em><b>Binding Vnic Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_PORT_REQUEST__BINDING_VNIC_TYPE = eINSTANCE.getCreatePortRequest_BindingVnicType(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_PORT_REQUEST__STATUS = eINSTANCE.getCreatePortRequest_Status(); + + /** + * The meta object literal for the '<em><b>Admin state up</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_PORT_REQUEST__ADMIN_STATE_UP = eINSTANCE.getCreatePortRequest_Admin_state_up(); + + /** + * The meta object literal for the '<em><b>Fixed ips</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CREATE_PORT_REQUEST__FIXED_IPS = eINSTANCE.getCreatePortRequest_Fixed_ips(); + + /** + * The meta object literal for the '<em><b>Mac address</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute CREATE_PORT_REQUEST__MAC_ADDRESS = eINSTANCE.getCreatePortRequest_Mac_address(); + + /** + * The meta object literal for the '<em><b>Network id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Request</b></em>'. + * <!-- end-user-doc --> + * + * + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Security Group</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getSecurity_group_rules <em>Security group rules</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup() + * @model + * @generated + */ +public interface NeutronSecurityGroup extends NeutronObject { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id</em>' 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 <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' 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 <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Security group rules</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Security group rules</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Security group rules</em>' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Security_group_rules() + * @model containment="true" + * @generated + */ + EList<NeutronSecurityRule> getSecurity_group_rules(); + + /** + * Returns the value of the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tenant id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tenant id</em>' 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 <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tenant id</em>' 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Security Rule</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getDirection <em>Direction</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getEthertype <em>Ethertype</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_min <em>Port range min</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_max <em>Port range max</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getProtocol <em>Protocol</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_group_id <em>Remote group id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_ip_prefix <em>Remote ip prefix</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getSecurity_group_id <em>Security group id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule() + * @model + * @generated + */ +public interface NeutronSecurityRule extends NeutronObject { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id</em>' 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 <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Direction</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Direction</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Direction</em>' 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 <em>Direction</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Direction</em>' attribute. + * @see #getDirection() + * @generated + */ + void setDirection(String value); + + /** + * Returns the value of the '<em><b>Ethertype</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ethertype</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Ethertype</em>' 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 <em>Ethertype</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Ethertype</em>' attribute. + * @see #getEthertype() + * @generated + */ + void setEthertype(String value); + + /** + * Returns the value of the '<em><b>Port range min</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Port range min</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Port range min</em>' 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 <em>Port range min</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Port range min</em>' attribute. + * @see #getPort_range_min() + * @generated + */ + void setPort_range_min(Integer value); + + /** + * Returns the value of the '<em><b>Port range max</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Port range max</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Port range max</em>' 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 <em>Port range max</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Port range max</em>' attribute. + * @see #getPort_range_max() + * @generated + */ + void setPort_range_max(Integer value); + + /** + * Returns the value of the '<em><b>Protocol</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Protocol</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Protocol</em>' 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 <em>Protocol</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Protocol</em>' attribute. + * @see #getProtocol() + * @generated + */ + void setProtocol(String value); + + /** + * Returns the value of the '<em><b>Remote group id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Remote group id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Remote group id</em>' 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 <em>Remote group id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Remote group id</em>' attribute. + * @see #getRemote_group_id() + * @generated + */ + void setRemote_group_id(String value); + + /** + * Returns the value of the '<em><b>Remote ip prefix</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Remote ip prefix</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Remote ip prefix</em>' 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 <em>Remote ip prefix</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Remote ip prefix</em>' attribute. + * @see #getRemote_ip_prefix() + * @generated + */ + void setRemote_ip_prefix(String value); + + /** + * Returns the value of the '<em><b>Security group id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Security group id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Security group id</em>' 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 <em>Security group id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Security group id</em>' attribute. + * @see #getSecurity_group_id() + * @generated + */ + void setSecurity_group_id(String value); + + /** + * Returns the value of the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tenant id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tenant id</em>' 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 <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tenant id</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Service</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronService() + * @model abstract="true" + * @generated + */ +public interface NeutronService extends EObject { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" requestUnique="false" + * @generated + */ + Network createNetwork(CreateNetworkRequest request); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" requestUnique="false" + * @generated + */ + Subnet createSubnet(CreateSubnetRequest request); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" requestUnique="false" + * @generated + */ + Port createPort(CreatePortRequest request); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" requestUnique="false" + * @generated + */ + Router createRouter(CreateRouterRequest request); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteNetwork(String projectName, String name); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteSubnet(String projectName, String name); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deletePort(String projectName, String name); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteRouter(String projectName, String name); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Port</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getExternal_gateway_info <em>External gateway info</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getTenant_id <em>Tenant id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getAllowed_address_pairs <em>Allowed address pairs</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_host_id <em>Binding host id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_profile <em>Binding profile</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_details <em>Binding vif details</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_type <em>Binding vif type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vnic_type <em>Binding vnic type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_id <em>Device id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_owner <em>Device owner</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getExtra_dhcp_opts <em>Extra dhcp opts</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getFixed_ips <em>Fixed ips</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getMac_address <em>Mac address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getNetwork_id <em>Network id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Port#getSecurity_groups <em>Security groups</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort() + * @model + * @generated + */ +public interface Port extends NeutronObject { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id</em>' 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 <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' 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 <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin state up</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin state up</em>' 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 <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Admin state up</em>' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the '<em><b>External gateway info</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>External gateway info</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>External gateway info</em>' 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 <em>External gateway info</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>External gateway info</em>' containment reference. + * @see #getExternal_gateway_info() + * @generated + */ + void setExternal_gateway_info(ExternalGateway value); + + /** + * Returns the value of the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tenant id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tenant id</em>' 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 <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tenant id</em>' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the '<em><b>Allowed address pairs</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Allowed address pairs</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Allowed address pairs</em>' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Allowed_address_pairs() + * @model unique="false" + * @generated + */ + EList<String> getAllowed_address_pairs(); + + /** + * Returns the value of the '<em><b>Binding host id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Binding host id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Binding host id</em>' 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 <em>Binding host id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Binding host id</em>' attribute. + * @see #getBinding_host_id() + * @generated + */ + void setBinding_host_id(String value); + + /** + * Returns the value of the '<em><b>Binding profile</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Binding profile</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Binding profile</em>' 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 <em>Binding profile</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Binding profile</em>' containment reference. + * @see #getBinding_profile() + * @generated + */ + void setBinding_profile(BindingProfile value); + + /** + * Returns the value of the '<em><b>Binding vif details</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Binding vif details</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Binding vif details</em>' 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 <em>Binding vif details</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Binding vif details</em>' containment reference. + * @see #getBinding_vif_details() + * @generated + */ + void setBinding_vif_details(BindingVifDetail value); + + /** + * Returns the value of the '<em><b>Binding vif type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Binding vif type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Binding vif type</em>' 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 <em>Binding vif type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Binding vif type</em>' attribute. + * @see #getBinding_vif_type() + * @generated + */ + void setBinding_vif_type(String value); + + /** + * Returns the value of the '<em><b>Binding vnic type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Binding vnic type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Binding vnic type</em>' 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 <em>Binding vnic type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Binding vnic type</em>' attribute. + * @see #getBinding_vnic_type() + * @generated + */ + void setBinding_vnic_type(String value); + + /** + * Returns the value of the '<em><b>Device id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Device id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Device id</em>' 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 <em>Device id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Device id</em>' attribute. + * @see #getDevice_id() + * @generated + */ + void setDevice_id(String value); + + /** + * Returns the value of the '<em><b>Device owner</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Device owner</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Device owner</em>' 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 <em>Device owner</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Device owner</em>' attribute. + * @see #getDevice_owner() + * @generated + */ + void setDevice_owner(String value); + + /** + * Returns the value of the '<em><b>Extra dhcp opts</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Extra dhcp opts</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Extra dhcp opts</em>' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Extra_dhcp_opts() + * @model unique="false" + * @generated + */ + EList<String> getExtra_dhcp_opts(); + + /** + * Returns the value of the '<em><b>Fixed ips</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.FixedIp}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Fixed ips</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Fixed ips</em>' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Fixed_ips() + * @model containment="true" + * @generated + */ + EList<FixedIp> getFixed_ips(); + + /** + * Returns the value of the '<em><b>Mac address</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mac address</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mac address</em>' 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 <em>Mac address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mac address</em>' attribute. + * @see #getMac_address() + * @generated + */ + void setMac_address(String value); + + /** + * Returns the value of the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Network id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Network id</em>' 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 <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Network id</em>' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + + /** + * Returns the value of the '<em><b>Security groups</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Security groups</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Security groups</em>' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Security_groups() + * @model unique="false" + * @generated + */ + EList<String> 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; + + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Router</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Router#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Router#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Router#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Router#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Router#getExternal_gateway_info <em>External gateway info</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Router#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter() + * @model + * @generated + */ +public interface Router extends NeutronObject { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id</em>' 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 <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' 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 <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin state up</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin state up</em>' 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 <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Admin state up</em>' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the '<em><b>External gateway info</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>External gateway info</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>External gateway info</em>' 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 <em>External gateway info</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>External gateway info</em>' containment reference. + * @see #getExternal_gateway_info() + * @generated + */ + void setExternal_gateway_info(ExternalGateway value); + + /** + * Returns the value of the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tenant id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tenant id</em>' 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 <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tenant id</em>' 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; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Subnet</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getCidr <em>Cidr</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getAllocation_pools <em>Allocation pools</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getDns_nameservers <em>Dns nameservers</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getEnable_dhcp <em>Enable dhcp</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getGateway_ip <em>Gateway ip</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getHost_routes <em>Host routes</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getIp_version <em>Ip version</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getNetwork_id <em>Network id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.Subnet#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet() + * @model + * @generated + */ +public interface Subnet extends NeutronObject { + /** + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id</em>' 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 <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' 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 <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' 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 <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the '<em><b>Admin state up</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Admin state up</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Admin state up</em>' 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 <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Admin state up</em>' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the '<em><b>Cidr</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cidr</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cidr</em>' 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 <em>Cidr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cidr</em>' attribute. + * @see #getCidr() + * @generated + */ + void setCidr(String value); + + /** + * Returns the value of the '<em><b>Allocation pools</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.AllocationPool}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Allocation pools</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Allocation pools</em>' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Allocation_pools() + * @model containment="true" + * @generated + */ + EList<AllocationPool> getAllocation_pools(); + + /** + * Returns the value of the '<em><b>Dns nameservers</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Dns nameservers</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Dns nameservers</em>' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Dns_nameservers() + * @model unique="false" + * @generated + */ + EList<String> getDns_nameservers(); + + /** + * Returns the value of the '<em><b>Enable dhcp</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Enable dhcp</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Enable dhcp</em>' 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 <em>Enable dhcp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Enable dhcp</em>' attribute. + * @see #getEnable_dhcp() + * @generated + */ + void setEnable_dhcp(Boolean value); + + /** + * Returns the value of the '<em><b>Gateway ip</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Gateway ip</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Gateway ip</em>' 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 <em>Gateway ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Gateway ip</em>' attribute. + * @see #getGateway_ip() + * @generated + */ + void setGateway_ip(String value); + + /** + * Returns the value of the '<em><b>Host routes</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Host routes</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Host routes</em>' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Host_routes() + * @model unique="false" + * @generated + */ + EList<String> getHost_routes(); + + /** + * Returns the value of the '<em><b>Ip version</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Ip version</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Ip version</em>' 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 <em>Ip version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Ip version</em>' attribute. + * @see #getIp_version() + * @generated + */ + void setIp_version(Integer value); + + /** + * Returns the value of the '<em><b>Network id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Network id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Network id</em>' 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 <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Network id</em>' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + + /** + * Returns the value of the '<em><b>Tenant id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Tenant id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Tenant id</em>' 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 <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Tenant id</em>' 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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Allocation Pool</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl#getStart <em>Start</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.AllocationPoolImpl#getEnd <em>End</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AllocationPoolImpl extends MinimalEObjectImpl.Container implements AllocationPool { + /** + * The default value of the '{@link #getStart() <em>Start</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStart() + * @generated + * @ordered + */ + protected static final String START_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStart() <em>Start</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStart() + * @generated + * @ordered + */ + protected String start = START_EDEFAULT; + + /** + * The default value of the '{@link #getEnd() <em>End</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnd() + * @generated + * @ordered + */ + protected static final String END_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnd() <em>End</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnd() + * @generated + * @ordered + */ + protected String end = END_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AllocationPoolImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.ALLOCATION_POOL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStart() { + return start; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getEnd() { + return end; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Binding Profile</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class BindingProfileImpl extends MinimalEObjectImpl.Container implements BindingProfile { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BindingProfileImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Binding Vif Detail</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl#getOvs_hybrid_plug <em>Ovs hybrid plug</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.BindingVifDetailImpl#getPort_filter <em>Port filter</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class BindingVifDetailImpl extends MinimalEObjectImpl.Container implements BindingVifDetail { + /** + * The default value of the '{@link #getOvs_hybrid_plug() <em>Ovs hybrid plug</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOvs_hybrid_plug() + * @generated + * @ordered + */ + protected static final Boolean OVS_HYBRID_PLUG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOvs_hybrid_plug() <em>Ovs hybrid plug</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOvs_hybrid_plug() + * @generated + * @ordered + */ + protected Boolean ovs_hybrid_plug = OVS_HYBRID_PLUG_EDEFAULT; + + /** + * The default value of the '{@link #getPort_filter() <em>Port filter</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort_filter() + * @generated + * @ordered + */ + protected static final Boolean PORT_FILTER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPort_filter() <em>Port filter</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort_filter() + * @generated + * @ordered + */ + protected Boolean port_filter = PORT_FILTER_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BindingVifDetailImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.BINDING_VIF_DETAIL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getOvs_hybrid_plug() { + return ovs_hybrid_plug; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getPort_filter() { + return port_filter; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Create Network Request</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getProviderNetworkType <em>Provider Network Type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getProviderPhysicalNetwork <em>Provider Physical Network</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getProviderSegmentationId <em>Provider Segmentation Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateNetworkRequestImpl#getShared <em>Shared</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CreateNetworkRequestImpl extends NeutronRequestImpl implements CreateNetworkRequest { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getProviderNetworkType() <em>Provider Network Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProviderNetworkType() + * @generated + * @ordered + */ + protected static final String PROVIDER_NETWORK_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProviderNetworkType() <em>Provider Network Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProviderNetworkType() + * @generated + * @ordered + */ + protected String providerNetworkType = PROVIDER_NETWORK_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getProviderPhysicalNetwork() <em>Provider Physical Network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProviderPhysicalNetwork() + * @generated + * @ordered + */ + protected static final String PROVIDER_PHYSICAL_NETWORK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProviderPhysicalNetwork() <em>Provider Physical Network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProviderPhysicalNetwork() + * @generated + * @ordered + */ + protected String providerPhysicalNetwork = PROVIDER_PHYSICAL_NETWORK_EDEFAULT; + + /** + * The default value of the '{@link #getProviderSegmentationId() <em>Provider Segmentation Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProviderSegmentationId() + * @generated + * @ordered + */ + protected static final int PROVIDER_SEGMENTATION_ID_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getProviderSegmentationId() <em>Provider Segmentation Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProviderSegmentationId() + * @generated + * @ordered + */ + protected int providerSegmentationId = PROVIDER_SEGMENTATION_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The default value of the '{@link #getShared() <em>Shared</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShared() + * @generated + * @ordered + */ + protected static final Boolean SHARED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShared() <em>Shared</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShared() + * @generated + * @ordered + */ + protected Boolean shared = SHARED_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CreateNetworkRequestImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.CREATE_NETWORK_REQUEST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getProviderNetworkType() { + return providerNetworkType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getProviderPhysicalNetwork() { + return providerPhysicalNetwork; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getProviderSegmentationId() { + return providerSegmentationId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getShared() { + return shared; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Create Port Request</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getBindingVnicType <em>Binding Vnic Type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getFixed_ips <em>Fixed ips</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getMac_address <em>Mac address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreatePortRequestImpl#getNetwork_id <em>Network id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CreatePortRequestImpl extends NeutronRequestImpl implements CreatePortRequest { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getBindingVnicType() <em>Binding Vnic Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBindingVnicType() + * @generated + * @ordered + */ + protected static final String BINDING_VNIC_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBindingVnicType() <em>Binding Vnic Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBindingVnicType() + * @generated + * @ordered + */ + protected String bindingVnicType = BINDING_VNIC_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The cached value of the '{@link #getFixed_ips() <em>Fixed ips</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFixed_ips() + * @generated + * @ordered + */ + protected EList<FixedIp> fixed_ips; + + /** + * The default value of the '{@link #getMac_address() <em>Mac address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMac_address() + * @generated + * @ordered + */ + protected static final String MAC_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMac_address() <em>Mac address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMac_address() + * @generated + * @ordered + */ + protected String mac_address = MAC_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CreatePortRequestImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.CREATE_PORT_REQUEST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getBindingVnicType() { + return bindingVnicType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<FixedIp> getFixed_ips() { + if (fixed_ips == null) { + fixed_ips = new EObjectContainmentEList<FixedIp>(FixedIp.class, this, NeutronPackage.CREATE_PORT_REQUEST__FIXED_IPS); + } + return fixed_ips; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMac_address() { + return mac_address; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<? extends FixedIp>)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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Create Router Request</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getShared <em>Shared</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getExternalNetwork <em>External Network</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getPorts <em>Ports</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateRouterRequestImpl#getSubnets <em>Subnets</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CreateRouterRequestImpl extends NeutronRequestImpl implements CreateRouterRequest { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The default value of the '{@link #getShared() <em>Shared</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShared() + * @generated + * @ordered + */ + protected static final Boolean SHARED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShared() <em>Shared</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShared() + * @generated + * @ordered + */ + protected Boolean shared = SHARED_EDEFAULT; + + /** + * The default value of the '{@link #getExternalNetwork() <em>External Network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExternalNetwork() + * @generated + * @ordered + */ + protected static final String EXTERNAL_NETWORK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getExternalNetwork() <em>External Network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExternalNetwork() + * @generated + * @ordered + */ + protected String externalNetwork = EXTERNAL_NETWORK_EDEFAULT; + + /** + * The cached value of the '{@link #getPorts() <em>Ports</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPorts() + * @generated + * @ordered + */ + protected EList<String> ports; + + /** + * The cached value of the '{@link #getSubnets() <em>Subnets</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSubnets() + * @generated + * @ordered + */ + protected EList<String> subnets; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CreateRouterRequestImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.CREATE_ROUTER_REQUEST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getShared() { + return shared; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getExternalNetwork() { + return externalNetwork; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getPorts() { + if (ports == null) { + ports = new EDataTypeEList<String>(String.class, this, NeutronPackage.CREATE_ROUTER_REQUEST__PORTS); + } + return ports; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getSubnets() { + if (subnets == null) { + subnets = new EDataTypeEList<String>(String.class, this, NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS); + } + return subnets; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<? extends String>)newValue); + return; + case NeutronPackage.CREATE_ROUTER_REQUEST__SUBNETS: + getSubnets().clear(); + getSubnets().addAll((Collection<? extends String>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Create Subnet Request</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getNetwork_id <em>Network id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getIp_version <em>Ip version</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getCidr <em>Cidr</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getAllocation_pools <em>Allocation pools</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getDns_nameservers <em>Dns nameservers</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getEnable_dhcp <em>Enable dhcp</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.CreateSubnetRequestImpl#getGateway_ip <em>Gateway ip</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CreateSubnetRequestImpl extends NeutronRequestImpl implements CreateSubnetRequest { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * The default value of the '{@link #getIp_version() <em>Ip version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp_version() + * @generated + * @ordered + */ + protected static final int IP_VERSION_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getIp_version() <em>Ip version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp_version() + * @generated + * @ordered + */ + protected int ip_version = IP_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getCidr() <em>Cidr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCidr() + * @generated + * @ordered + */ + protected static final String CIDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCidr() <em>Cidr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCidr() + * @generated + * @ordered + */ + protected String cidr = CIDR_EDEFAULT; + + /** + * The cached value of the '{@link #getAllocation_pools() <em>Allocation pools</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAllocation_pools() + * @generated + * @ordered + */ + protected EList<AllocationPool> allocation_pools; + + /** + * The cached value of the '{@link #getDns_nameservers() <em>Dns nameservers</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDns_nameservers() + * @generated + * @ordered + */ + protected EList<String> dns_nameservers; + + /** + * The default value of the '{@link #getEnable_dhcp() <em>Enable dhcp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnable_dhcp() + * @generated + * @ordered + */ + protected static final Boolean ENABLE_DHCP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnable_dhcp() <em>Enable dhcp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnable_dhcp() + * @generated + * @ordered + */ + protected Boolean enable_dhcp = ENABLE_DHCP_EDEFAULT; + + /** + * The default value of the '{@link #getGateway_ip() <em>Gateway ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGateway_ip() + * @generated + * @ordered + */ + protected static final String GATEWAY_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGateway_ip() <em>Gateway ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGateway_ip() + * @generated + * @ordered + */ + protected String gateway_ip = GATEWAY_IP_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CreateSubnetRequestImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.CREATE_SUBNET_REQUEST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getIp_version() { + return ip_version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCidr() { + return cidr; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<AllocationPool> getAllocation_pools() { + if (allocation_pools == null) { + allocation_pools = new EObjectContainmentEList<AllocationPool>(AllocationPool.class, this, NeutronPackage.CREATE_SUBNET_REQUEST__ALLOCATION_POOLS); + } + return allocation_pools; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getDns_nameservers() { + if (dns_nameservers == null) { + dns_nameservers = new EDataTypeEList<String>(String.class, this, NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS); + } + return dns_nameservers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getEnable_dhcp() { + return enable_dhcp; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getGateway_ip() { + return gateway_ip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<? extends AllocationPool>)newValue); + return; + case NeutronPackage.CREATE_SUBNET_REQUEST__DNS_NAMESERVERS: + getDns_nameservers().clear(); + getDns_nameservers().addAll((Collection<? extends String>)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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>External Gateway</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl#getEnable_snat <em>Enable snat</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.ExternalGatewayImpl#getNetwork_id <em>Network id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ExternalGatewayImpl extends MinimalEObjectImpl.Container implements ExternalGateway { + /** + * The default value of the '{@link #getEnable_snat() <em>Enable snat</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnable_snat() + * @generated + * @ordered + */ + protected static final Boolean ENABLE_SNAT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnable_snat() <em>Enable snat</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnable_snat() + * @generated + * @ordered + */ + protected Boolean enable_snat = ENABLE_SNAT_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ExternalGatewayImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.EXTERNAL_GATEWAY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getEnable_snat() { + return enable_snat; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Fixed Ip</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl#getIp_address <em>Ip address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.FixedIpImpl#getSubnet_id <em>Subnet id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class FixedIpImpl extends MinimalEObjectImpl.Container implements FixedIp { + /** + * The default value of the '{@link #getIp_address() <em>Ip address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp_address() + * @generated + * @ordered + */ + protected static final String IP_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIp_address() <em>Ip address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp_address() + * @generated + * @ordered + */ + protected String ip_address = IP_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getSubnet_id() <em>Subnet id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSubnet_id() + * @generated + * @ordered + */ + protected static final String SUBNET_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSubnet_id() <em>Subnet id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSubnet_id() + * @generated + * @ordered + */ + protected String subnet_id = SUBNET_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FixedIpImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.FIXED_IP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIp_address() { + return ip_address; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSubnet_id() { + return subnet_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Network</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getProvider_network_type <em>Provider network type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getProvider_physical_network <em>Provider physical network</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getProvider_segmentation_id <em>Provider segmentation id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getRouter_external <em>Router external</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getShared <em>Shared</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getSubnets <em>Subnets</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NetworkImpl#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NetworkImpl extends NeutronObjectImpl implements Network { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The default value of the '{@link #getProvider_network_type() <em>Provider network type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProvider_network_type() + * @generated + * @ordered + */ + protected static final String PROVIDER_NETWORK_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProvider_network_type() <em>Provider network type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProvider_network_type() + * @generated + * @ordered + */ + protected String provider_network_type = PROVIDER_NETWORK_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getProvider_physical_network() <em>Provider physical network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProvider_physical_network() + * @generated + * @ordered + */ + protected static final String PROVIDER_PHYSICAL_NETWORK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProvider_physical_network() <em>Provider physical network</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProvider_physical_network() + * @generated + * @ordered + */ + protected String provider_physical_network = PROVIDER_PHYSICAL_NETWORK_EDEFAULT; + + /** + * The default value of the '{@link #getProvider_segmentation_id() <em>Provider segmentation id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProvider_segmentation_id() + * @generated + * @ordered + */ + protected static final Integer PROVIDER_SEGMENTATION_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProvider_segmentation_id() <em>Provider segmentation id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProvider_segmentation_id() + * @generated + * @ordered + */ + protected Integer provider_segmentation_id = PROVIDER_SEGMENTATION_ID_EDEFAULT; + + /** + * The default value of the '{@link #getRouter_external() <em>Router external</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRouter_external() + * @generated + * @ordered + */ + protected static final Boolean ROUTER_EXTERNAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRouter_external() <em>Router external</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRouter_external() + * @generated + * @ordered + */ + protected Boolean router_external = ROUTER_EXTERNAL_EDEFAULT; + + /** + * The default value of the '{@link #getShared() <em>Shared</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShared() + * @generated + * @ordered + */ + protected static final Boolean SHARED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShared() <em>Shared</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShared() + * @generated + * @ordered + */ + protected Boolean shared = SHARED_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The cached value of the '{@link #getSubnets() <em>Subnets</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSubnets() + * @generated + * @ordered + */ + protected EList<String> subnets; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NetworkImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NETWORK; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getProvider_network_type() { + return provider_network_type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getProvider_physical_network() { + return provider_physical_network; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getProvider_segmentation_id() { + return provider_segmentation_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getRouter_external() { + return router_external; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getShared() { + return shared; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setShared(Boolean newShared) { + Boolean oldShared = shared; + shared = newShared; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__SHARED, oldShared, shared)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.NETWORK__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getSubnets() { + if (subnets == null) { + subnets = new EDataTypeEList<String>(String.class, this, NeutronPackage.NETWORK__SUBNETS); + } + return subnets; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<? extends String>)newValue); + return; + case NeutronPackage.NETWORK__TENANT_ID: + setTenant_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class NeutronFactoryImpl extends EFactoryImpl implements NeutronFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NeutronFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Network createNetwork() { + NetworkImpl network = new NetworkImpl(); + return network; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Subnet createSubnet() { + SubnetImpl subnet = new SubnetImpl(); + return subnet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AllocationPool createAllocationPool() { + AllocationPoolImpl allocationPool = new AllocationPoolImpl(); + return allocationPool; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Router createRouter() { + RouterImpl router = new RouterImpl(); + return router; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Port createPort() { + PortImpl port = new PortImpl(); + return port; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NeutronSecurityGroup createNeutronSecurityGroup() { + NeutronSecurityGroupImpl neutronSecurityGroup = new NeutronSecurityGroupImpl(); + return neutronSecurityGroup; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NeutronSecurityRule createNeutronSecurityRule() { + NeutronSecurityRuleImpl neutronSecurityRule = new NeutronSecurityRuleImpl(); + return neutronSecurityRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NeutronFloatingIp createNeutronFloatingIp() { + NeutronFloatingIpImpl neutronFloatingIp = new NeutronFloatingIpImpl(); + return neutronFloatingIp; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BindingProfile createBindingProfile() { + BindingProfileImpl bindingProfile = new BindingProfileImpl(); + return bindingProfile; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BindingVifDetail createBindingVifDetail() { + BindingVifDetailImpl bindingVifDetail = new BindingVifDetailImpl(); + return bindingVifDetail; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FixedIp createFixedIp() { + FixedIpImpl fixedIp = new FixedIpImpl(); + return fixedIp; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ExternalGateway createExternalGateway() { + ExternalGatewayImpl externalGateway = new ExternalGatewayImpl(); + return externalGateway; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CreateNetworkRequest createCreateNetworkRequest() { + CreateNetworkRequestImpl createNetworkRequest = new CreateNetworkRequestImpl(); + return createNetworkRequest; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CreateSubnetRequest createCreateSubnetRequest() { + CreateSubnetRequestImpl createSubnetRequest = new CreateSubnetRequestImpl(); + return createSubnetRequest; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CreateRouterRequest createCreateRouterRequest() { + CreateRouterRequestImpl createRouterRequest = new CreateRouterRequestImpl(); + return createRouterRequest; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CreatePortRequest createCreatePortRequest() { + CreatePortRequestImpl createPortRequest = new CreatePortRequestImpl(); + return createPortRequest; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NeutronPackage getNeutronPackage() { + return (NeutronPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Floating Ip</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getFloating_network_id <em>Floating network id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getRouter_id <em>Router id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getFixed_ip_address <em>Fixed ip address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getFloating_ip_address <em>Floating ip address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getTenant_id <em>Tenant id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronFloatingIpImpl#getPort_id <em>Port id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NeutronFloatingIpImpl extends NeutronObjectImpl implements NeutronFloatingIp { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getFloating_network_id() <em>Floating network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFloating_network_id() + * @generated + * @ordered + */ + protected static final String FLOATING_NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFloating_network_id() <em>Floating network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFloating_network_id() + * @generated + * @ordered + */ + protected String floating_network_id = FLOATING_NETWORK_ID_EDEFAULT; + + /** + * The default value of the '{@link #getRouter_id() <em>Router id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRouter_id() + * @generated + * @ordered + */ + protected static final String ROUTER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRouter_id() <em>Router id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRouter_id() + * @generated + * @ordered + */ + protected String router_id = ROUTER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getFixed_ip_address() <em>Fixed ip address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFixed_ip_address() + * @generated + * @ordered + */ + protected static final String FIXED_IP_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFixed_ip_address() <em>Fixed ip address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFixed_ip_address() + * @generated + * @ordered + */ + protected String fixed_ip_address = FIXED_IP_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getFloating_ip_address() <em>Floating ip address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFloating_ip_address() + * @generated + * @ordered + */ + protected static final String FLOATING_IP_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFloating_ip_address() <em>Floating ip address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFloating_ip_address() + * @generated + * @ordered + */ + protected String floating_ip_address = FLOATING_IP_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getPort_id() <em>Port id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort_id() + * @generated + * @ordered + */ + protected static final String PORT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPort_id() <em>Port id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort_id() + * @generated + * @ordered + */ + protected String port_id = PORT_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NeutronFloatingIpImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_FLOATING_IP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFloating_network_id() { + return floating_network_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getRouter_id() { + return router_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFixed_ip_address() { + return fixed_ip_address; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFloating_ip_address() { + return floating_ip_address; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPort_id() { + return port_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Object</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class NeutronObjectImpl extends MinimalEObjectImpl.Container implements NeutronObject { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NeutronObjectImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class NeutronPackageImpl extends EPackageImpl implements NeutronPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass neutronServiceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass neutronObjectEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass networkEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass subnetEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass allocationPoolEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass routerEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass portEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass neutronSecurityGroupEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass neutronSecurityRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass neutronFloatingIpEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass bindingProfileEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass bindingVifDetailEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass fixedIpEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass externalGatewayEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass neutronRequestEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass createNetworkRequestEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass createSubnetRequestEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass createRouterRequestEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass createPortRequestEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNeutronService() { + return neutronServiceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getNeutronService__CreateNetwork__CreateNetworkRequest() { + return neutronServiceEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getNeutronService__CreateSubnet__CreateSubnetRequest() { + return neutronServiceEClass.getEOperations().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getNeutronService__CreatePort__CreatePortRequest() { + return neutronServiceEClass.getEOperations().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getNeutronService__CreateRouter__CreateRouterRequest() { + return neutronServiceEClass.getEOperations().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getNeutronService__DeleteNetwork__String_String() { + return neutronServiceEClass.getEOperations().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getNeutronService__DeleteSubnet__String_String() { + return neutronServiceEClass.getEOperations().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getNeutronService__DeletePort__String_String() { + return neutronServiceEClass.getEOperations().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getNeutronService__DeleteRouter__String_String() { + return neutronServiceEClass.getEOperations().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getNeutronService__AssociateFloatingIp__String_String_String() { + return neutronServiceEClass.getEOperations().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNeutronObject() { + return neutronObjectEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNetwork() { + return networkEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Id() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Name() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Admin_state_up() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Provider_network_type() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Provider_physical_network() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Provider_segmentation_id() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Router_external() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Shared() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Status() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Subnets() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNetwork_Tenant_id() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSubnet() { + return subnetEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Id() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Name() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Status() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Admin_state_up() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Cidr() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSubnet_Allocation_pools() { + return (EReference)subnetEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Dns_nameservers() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Enable_dhcp() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Gateway_ip() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Host_routes() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Ip_version() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Network_id() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSubnet_Tenant_id() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAllocationPool() { + return allocationPoolEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAllocationPool_Start() { + return (EAttribute)allocationPoolEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAllocationPool_End() { + return (EAttribute)allocationPoolEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getRouter() { + return routerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getRouter_Id() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getRouter_Name() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getRouter_Status() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getRouter_Admin_state_up() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getRouter_External_gateway_info() { + return (EReference)routerEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getRouter_Tenant_id() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPort() { + return portEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Name() { + return (EAttribute)portEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Status() { + return (EAttribute)portEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Admin_state_up() { + return (EAttribute)portEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPort_External_gateway_info() { + return (EReference)portEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Tenant_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Allowed_address_pairs() { + return (EAttribute)portEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Binding_host_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPort_Binding_profile() { + return (EReference)portEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPort_Binding_vif_details() { + return (EReference)portEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Binding_vif_type() { + return (EAttribute)portEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Binding_vnic_type() { + return (EAttribute)portEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Device_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Device_owner() { + return (EAttribute)portEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Extra_dhcp_opts() { + return (EAttribute)portEClass.getEStructuralFeatures().get(14); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPort_Fixed_ips() { + return (EReference)portEClass.getEStructuralFeatures().get(15); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Mac_address() { + return (EAttribute)portEClass.getEStructuralFeatures().get(16); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Network_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(17); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPort_Security_groups() { + return (EAttribute)portEClass.getEStructuralFeatures().get(18); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNeutronSecurityGroup() { + return neutronSecurityGroupEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityGroup_Id() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityGroup_Name() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityGroup_Description() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getNeutronSecurityGroup_Security_group_rules() { + return (EReference)neutronSecurityGroupEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityGroup_Tenant_id() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNeutronSecurityRule() { + return neutronSecurityRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Direction() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Ethertype() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Port_range_min() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Port_range_max() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Protocol() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Remote_group_id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Remote_ip_prefix() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Security_group_id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronSecurityRule_Tenant_id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNeutronFloatingIp() { + return neutronFloatingIpEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronFloatingIp_Id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronFloatingIp_Name() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronFloatingIp_Status() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronFloatingIp_Floating_network_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronFloatingIp_Router_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronFloatingIp_Fixed_ip_address() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronFloatingIp_Floating_ip_address() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronFloatingIp_Tenant_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNeutronFloatingIp_Port_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getBindingProfile() { + return bindingProfileEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getBindingVifDetail() { + return bindingVifDetailEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getBindingVifDetail_Ovs_hybrid_plug() { + return (EAttribute)bindingVifDetailEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getBindingVifDetail_Port_filter() { + return (EAttribute)bindingVifDetailEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFixedIp() { + return fixedIpEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFixedIp_Ip_address() { + return (EAttribute)fixedIpEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFixedIp_Subnet_id() { + return (EAttribute)fixedIpEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getExternalGateway() { + return externalGatewayEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getExternalGateway_Enable_snat() { + return (EAttribute)externalGatewayEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getExternalGateway_Network_id() { + return (EAttribute)externalGatewayEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNeutronRequest() { + return neutronRequestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCreateNetworkRequest() { + return createNetworkRequestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateNetworkRequest_Name() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateNetworkRequest_ProviderNetworkType() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateNetworkRequest_ProviderPhysicalNetwork() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateNetworkRequest_ProviderSegmentationId() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateNetworkRequest_Admin_state_up() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateNetworkRequest_Shared() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCreateSubnetRequest() { + return createSubnetRequestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateSubnetRequest_Name() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateSubnetRequest_Network_id() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateSubnetRequest_Ip_version() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateSubnetRequest_Cidr() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCreateSubnetRequest_Allocation_pools() { + return (EReference)createSubnetRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateSubnetRequest_Dns_nameservers() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateSubnetRequest_Enable_dhcp() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateSubnetRequest_Gateway_ip() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCreateRouterRequest() { + return createRouterRequestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateRouterRequest_Name() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateRouterRequest_Admin_state_up() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateRouterRequest_Shared() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateRouterRequest_ExternalNetwork() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateRouterRequest_Ports() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreateRouterRequest_Subnets() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCreatePortRequest() { + return createPortRequestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreatePortRequest_Name() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreatePortRequest_BindingVnicType() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreatePortRequest_Status() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreatePortRequest_Admin_state_up() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCreatePortRequest_Fixed_ips() { + return (EReference)createPortRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreatePortRequest_Mac_address() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getCreatePortRequest_Network_id() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NeutronFactory getNeutronFactory() { + return (NeutronFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://www.eclipse.org/emf/2011/Xcore</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <b>http://openecomp.org/sirius/openstack</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Request</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class NeutronRequestImpl extends OpenStackRequestImpl implements NeutronRequest { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NeutronRequestImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Security Group</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getSecurity_group_rules <em>Security group rules</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityGroupImpl#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NeutronSecurityGroupImpl extends NeutronObjectImpl implements NeutronSecurityGroup { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getSecurity_group_rules() <em>Security group rules</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSecurity_group_rules() + * @generated + * @ordered + */ + protected EList<NeutronSecurityRule> security_group_rules; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NeutronSecurityGroupImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_SECURITY_GROUP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<NeutronSecurityRule> getSecurity_group_rules() { + if (security_group_rules == null) { + security_group_rules = new EObjectContainmentEList<NeutronSecurityRule>(NeutronSecurityRule.class, this, NeutronPackage.NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES); + } + return security_group_rules; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<? extends NeutronSecurityRule>)newValue); + return; + case NeutronPackage.NEUTRON_SECURITY_GROUP__TENANT_ID: + setTenant_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Security Rule</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getDirection <em>Direction</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getEthertype <em>Ethertype</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getPort_range_min <em>Port range min</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getPort_range_max <em>Port range max</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getProtocol <em>Protocol</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getRemote_group_id <em>Remote group id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getRemote_ip_prefix <em>Remote ip prefix</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getSecurity_group_id <em>Security group id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.NeutronSecurityRuleImpl#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NeutronSecurityRuleImpl extends NeutronObjectImpl implements NeutronSecurityRule { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getDirection() <em>Direction</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirection() + * @generated + * @ordered + */ + protected static final String DIRECTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDirection() <em>Direction</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDirection() + * @generated + * @ordered + */ + protected String direction = DIRECTION_EDEFAULT; + + /** + * The default value of the '{@link #getEthertype() <em>Ethertype</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEthertype() + * @generated + * @ordered + */ + protected static final String ETHERTYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEthertype() <em>Ethertype</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEthertype() + * @generated + * @ordered + */ + protected String ethertype = ETHERTYPE_EDEFAULT; + + /** + * The default value of the '{@link #getPort_range_min() <em>Port range min</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort_range_min() + * @generated + * @ordered + */ + protected static final Integer PORT_RANGE_MIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPort_range_min() <em>Port range min</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort_range_min() + * @generated + * @ordered + */ + protected Integer port_range_min = PORT_RANGE_MIN_EDEFAULT; + + /** + * The default value of the '{@link #getPort_range_max() <em>Port range max</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort_range_max() + * @generated + * @ordered + */ + protected static final Integer PORT_RANGE_MAX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPort_range_max() <em>Port range max</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPort_range_max() + * @generated + * @ordered + */ + protected Integer port_range_max = PORT_RANGE_MAX_EDEFAULT; + + /** + * The default value of the '{@link #getProtocol() <em>Protocol</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProtocol() + * @generated + * @ordered + */ + protected static final String PROTOCOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProtocol() <em>Protocol</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProtocol() + * @generated + * @ordered + */ + protected String protocol = PROTOCOL_EDEFAULT; + + /** + * The default value of the '{@link #getRemote_group_id() <em>Remote group id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRemote_group_id() + * @generated + * @ordered + */ + protected static final String REMOTE_GROUP_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRemote_group_id() <em>Remote group id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRemote_group_id() + * @generated + * @ordered + */ + protected String remote_group_id = REMOTE_GROUP_ID_EDEFAULT; + + /** + * The default value of the '{@link #getRemote_ip_prefix() <em>Remote ip prefix</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRemote_ip_prefix() + * @generated + * @ordered + */ + protected static final String REMOTE_IP_PREFIX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRemote_ip_prefix() <em>Remote ip prefix</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRemote_ip_prefix() + * @generated + * @ordered + */ + protected String remote_ip_prefix = REMOTE_IP_PREFIX_EDEFAULT; + + /** + * The default value of the '{@link #getSecurity_group_id() <em>Security group id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSecurity_group_id() + * @generated + * @ordered + */ + protected static final String SECURITY_GROUP_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSecurity_group_id() <em>Security group id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSecurity_group_id() + * @generated + * @ordered + */ + protected String security_group_id = SECURITY_GROUP_ID_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NeutronSecurityRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_SECURITY_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDirection() { + return direction; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getEthertype() { + return ethertype; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getPort_range_min() { + return port_range_min; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getPort_range_max() { + return port_range_max; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getProtocol() { + return protocol; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getRemote_group_id() { + return remote_group_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getRemote_ip_prefix() { + return remote_ip_prefix; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSecurity_group_id() { + return security_group_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Service</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class NeutronServiceImpl extends MinimalEObjectImpl.Container implements NeutronService { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NeutronServiceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_SERVICE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Network createNetwork(CreateNetworkRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Subnet createSubnet(CreateSubnetRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Port createPort(CreatePortRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Router createRouter(CreateRouterRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Port</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getExternal_gateway_info <em>External gateway info</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getTenant_id <em>Tenant id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getAllowed_address_pairs <em>Allowed address pairs</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_host_id <em>Binding host id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_profile <em>Binding profile</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_vif_details <em>Binding vif details</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_vif_type <em>Binding vif type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getBinding_vnic_type <em>Binding vnic type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getDevice_id <em>Device id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getDevice_owner <em>Device owner</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getExtra_dhcp_opts <em>Extra dhcp opts</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getFixed_ips <em>Fixed ips</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getMac_address <em>Mac address</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getNetwork_id <em>Network id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.PortImpl#getSecurity_groups <em>Security groups</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PortImpl extends NeutronObjectImpl implements Port { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The cached value of the '{@link #getExternal_gateway_info() <em>External gateway info</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExternal_gateway_info() + * @generated + * @ordered + */ + protected ExternalGateway external_gateway_info; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getAllowed_address_pairs() <em>Allowed address pairs</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAllowed_address_pairs() + * @generated + * @ordered + */ + protected EList<String> allowed_address_pairs; + + /** + * The default value of the '{@link #getBinding_host_id() <em>Binding host id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBinding_host_id() + * @generated + * @ordered + */ + protected static final String BINDING_HOST_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBinding_host_id() <em>Binding host id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBinding_host_id() + * @generated + * @ordered + */ + protected String binding_host_id = BINDING_HOST_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getBinding_profile() <em>Binding profile</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBinding_profile() + * @generated + * @ordered + */ + protected BindingProfile binding_profile; + + /** + * The cached value of the '{@link #getBinding_vif_details() <em>Binding vif details</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBinding_vif_details() + * @generated + * @ordered + */ + protected BindingVifDetail binding_vif_details; + + /** + * The default value of the '{@link #getBinding_vif_type() <em>Binding vif type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBinding_vif_type() + * @generated + * @ordered + */ + protected static final String BINDING_VIF_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBinding_vif_type() <em>Binding vif type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBinding_vif_type() + * @generated + * @ordered + */ + protected String binding_vif_type = BINDING_VIF_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getBinding_vnic_type() <em>Binding vnic type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBinding_vnic_type() + * @generated + * @ordered + */ + protected static final String BINDING_VNIC_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBinding_vnic_type() <em>Binding vnic type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBinding_vnic_type() + * @generated + * @ordered + */ + protected String binding_vnic_type = BINDING_VNIC_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getDevice_id() <em>Device id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDevice_id() + * @generated + * @ordered + */ + protected static final String DEVICE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDevice_id() <em>Device id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDevice_id() + * @generated + * @ordered + */ + protected String device_id = DEVICE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getDevice_owner() <em>Device owner</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDevice_owner() + * @generated + * @ordered + */ + protected static final String DEVICE_OWNER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDevice_owner() <em>Device owner</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDevice_owner() + * @generated + * @ordered + */ + protected String device_owner = DEVICE_OWNER_EDEFAULT; + + /** + * The cached value of the '{@link #getExtra_dhcp_opts() <em>Extra dhcp opts</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExtra_dhcp_opts() + * @generated + * @ordered + */ + protected EList<String> extra_dhcp_opts; + + /** + * The cached value of the '{@link #getFixed_ips() <em>Fixed ips</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFixed_ips() + * @generated + * @ordered + */ + protected EList<FixedIp> fixed_ips; + + /** + * The default value of the '{@link #getMac_address() <em>Mac address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMac_address() + * @generated + * @ordered + */ + protected static final String MAC_ADDRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMac_address() <em>Mac address</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMac_address() + * @generated + * @ordered + */ + protected String mac_address = MAC_ADDRESS_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getSecurity_groups() <em>Security groups</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSecurity_groups() + * @generated + * @ordered + */ + protected EList<String> security_groups; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PortImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.PORT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.PORT__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ExternalGateway getExternal_gateway_info() { + return external_gateway_info; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getAllowed_address_pairs() { + if (allowed_address_pairs == null) { + allowed_address_pairs = new EDataTypeEList<String>(String.class, this, NeutronPackage.PORT__ALLOWED_ADDRESS_PAIRS); + } + return allowed_address_pairs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getBinding_host_id() { + return binding_host_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BindingProfile getBinding_profile() { + return binding_profile; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public BindingVifDetail getBinding_vif_details() { + return binding_vif_details; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getBinding_vif_type() { + return binding_vif_type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getBinding_vnic_type() { + return binding_vnic_type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDevice_id() { + return device_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDevice_owner() { + return device_owner; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getExtra_dhcp_opts() { + if (extra_dhcp_opts == null) { + extra_dhcp_opts = new EDataTypeEList<String>(String.class, this, NeutronPackage.PORT__EXTRA_DHCP_OPTS); + } + return extra_dhcp_opts; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<FixedIp> getFixed_ips() { + if (fixed_ips == null) { + fixed_ips = new EObjectContainmentEList<FixedIp>(FixedIp.class, this, NeutronPackage.PORT__FIXED_IPS); + } + return fixed_ips; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMac_address() { + return mac_address; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getSecurity_groups() { + if (security_groups == null) { + security_groups = new EDataTypeEList<String>(String.class, this, NeutronPackage.PORT__SECURITY_GROUPS); + } + return security_groups; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<? extends String>)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<? extends String>)newValue); + return; + case NeutronPackage.PORT__FIXED_IPS: + getFixed_ips().clear(); + getFixed_ips().addAll((Collection<? extends FixedIp>)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<? extends String>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Router</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getExternal_gateway_info <em>External gateway info</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.RouterImpl#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class RouterImpl extends NeutronObjectImpl implements Router { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The cached value of the '{@link #getExternal_gateway_info() <em>External gateway info</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExternal_gateway_info() + * @generated + * @ordered + */ + protected ExternalGateway external_gateway_info; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected RouterImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.ROUTER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.ROUTER__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ExternalGateway getExternal_gateway_info() { + return external_gateway_info; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Subnet</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getAdmin_state_up <em>Admin state up</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getCidr <em>Cidr</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getAllocation_pools <em>Allocation pools</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getDns_nameservers <em>Dns nameservers</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getEnable_dhcp <em>Enable dhcp</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getGateway_ip <em>Gateway ip</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getHost_routes <em>Host routes</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getIp_version <em>Ip version</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getNetwork_id <em>Network id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.neutron.impl.SubnetImpl#getTenant_id <em>Tenant id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SubnetImpl extends NeutronObjectImpl implements Subnet { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected static final Boolean ADMIN_STATE_UP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAdmin_state_up() <em>Admin state up</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAdmin_state_up() + * @generated + * @ordered + */ + protected Boolean admin_state_up = ADMIN_STATE_UP_EDEFAULT; + + /** + * The default value of the '{@link #getCidr() <em>Cidr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCidr() + * @generated + * @ordered + */ + protected static final String CIDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCidr() <em>Cidr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCidr() + * @generated + * @ordered + */ + protected String cidr = CIDR_EDEFAULT; + + /** + * The cached value of the '{@link #getAllocation_pools() <em>Allocation pools</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAllocation_pools() + * @generated + * @ordered + */ + protected EList<AllocationPool> allocation_pools; + + /** + * The cached value of the '{@link #getDns_nameservers() <em>Dns nameservers</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDns_nameservers() + * @generated + * @ordered + */ + protected EList<String> dns_nameservers; + + /** + * The default value of the '{@link #getEnable_dhcp() <em>Enable dhcp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnable_dhcp() + * @generated + * @ordered + */ + protected static final Boolean ENABLE_DHCP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnable_dhcp() <em>Enable dhcp</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnable_dhcp() + * @generated + * @ordered + */ + protected Boolean enable_dhcp = ENABLE_DHCP_EDEFAULT; + + /** + * The default value of the '{@link #getGateway_ip() <em>Gateway ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGateway_ip() + * @generated + * @ordered + */ + protected static final String GATEWAY_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGateway_ip() <em>Gateway ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGateway_ip() + * @generated + * @ordered + */ + protected String gateway_ip = GATEWAY_IP_EDEFAULT; + + /** + * The cached value of the '{@link #getHost_routes() <em>Host routes</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHost_routes() + * @generated + * @ordered + */ + protected EList<String> host_routes; + + /** + * The default value of the '{@link #getIp_version() <em>Ip version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp_version() + * @generated + * @ordered + */ + protected static final Integer IP_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIp_version() <em>Ip version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp_version() + * @generated + * @ordered + */ + protected Integer ip_version = IP_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected static final String NETWORK_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNetwork_id() <em>Network id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetwork_id() + * @generated + * @ordered + */ + protected String network_id = NETWORK_ID_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SubnetImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.SUBNET; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getAdmin_state_up() { + return admin_state_up; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCidr() { + return cidr; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCidr(String newCidr) { + String oldCidr = cidr; + cidr = newCidr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, NeutronPackage.SUBNET__CIDR, oldCidr, cidr)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<AllocationPool> getAllocation_pools() { + if (allocation_pools == null) { + allocation_pools = new EObjectContainmentEList<AllocationPool>(AllocationPool.class, this, NeutronPackage.SUBNET__ALLOCATION_POOLS); + } + return allocation_pools; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getDns_nameservers() { + if (dns_nameservers == null) { + dns_nameservers = new EDataTypeEList<String>(String.class, this, NeutronPackage.SUBNET__DNS_NAMESERVERS); + } + return dns_nameservers; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Boolean getEnable_dhcp() { + return enable_dhcp; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getGateway_ip() { + return gateway_ip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getHost_routes() { + if (host_routes == null) { + host_routes = new EDataTypeEList<String>(String.class, this, NeutronPackage.SUBNET__HOST_ROUTES); + } + return host_routes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getIp_version() { + return ip_version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getNetwork_id() { + return network_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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<? extends AllocationPool>)newValue); + return; + case NeutronPackage.SUBNET__DNS_NAMESERVERS: + getDns_nameservers().clear(); + getDns_nameservers().addAll((Collection<? extends String>)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<? extends String>)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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage + * @generated + */ +public class NeutronAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static NeutronPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NeutronAdapterFactory() { + if (modelPackage == null) { + modelPackage = NeutronPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @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 <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NeutronSwitch<Adapter> modelSwitch = + new NeutronSwitch<Adapter>() { + @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 <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @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 <em>Service</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Object</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Network</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Subnet</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Allocation Pool</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Router</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Port</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Security Group</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Security Rule</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Floating Ip</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Binding Profile</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Binding Vif Detail</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Fixed Ip</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>External Gateway</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Request</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Create Network Request</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Create Subnet Request</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Create Router Request</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Create Port Request</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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 <em>Open Stack Request</em>}'. + * <!-- begin-user-doc --> + * 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. + * <!-- end-user-doc --> + * @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. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @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; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> 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. + * <!-- end-user-doc --> + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage + * @generated + */ +public class NeutronSwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static NeutronPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NeutronSwitch() { + if (modelPackage == null) { + modelPackage = NeutronPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @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 <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> 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 '<em>Service</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Service</em>'. + * @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 '<em>Object</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Object</em>'. + * @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 '<em>Network</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Network</em>'. + * @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 '<em>Subnet</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Subnet</em>'. + * @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 '<em>Allocation Pool</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Allocation Pool</em>'. + * @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 '<em>Router</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Router</em>'. + * @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 '<em>Port</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Port</em>'. + * @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 '<em>Security Group</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Security Group</em>'. + * @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 '<em>Security Rule</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Security Rule</em>'. + * @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 '<em>Floating Ip</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Floating Ip</em>'. + * @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 '<em>Binding Profile</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Binding Profile</em>'. + * @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 '<em>Binding Vif Detail</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Binding Vif Detail</em>'. + * @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 '<em>Fixed Ip</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Fixed Ip</em>'. + * @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 '<em>External Gateway</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>External Gateway</em>'. + * @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 '<em>Request</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Request</em>'. + * @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 '<em>Create Network Request</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Create Network Request</em>'. + * @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 '<em>Create Subnet Request</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Create Subnet Request</em>'. + * @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 '<em>Create Router Request</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Create Router Request</em>'. + * @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 '<em>Create Port Request</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Create Port Request</em>'. + * @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 '<em>Open Stack Request</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Open Stack Request</em>'. + * @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 '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //NeutronSwitch |