From 21f2f785e12c961a7c19dbf6aecc0f7dd136506d Mon Sep 17 00:00:00 2001
From: lj1412
+ * The following features are supported:
+ *
+ *
+ *
+ * If the meaning of the 'Locations' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Locations' containment reference list. + * @see org.openecomp.ncomp.openstack.OpenstackPackage#getOpenStackController_Locations() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Vm Types' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Vm Types' containment reference list. + * @see org.openecomp.ncomp.openstack.OpenstackPackage#getOpenStackController_VmTypes() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Users' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Users' containment reference list. + * @see org.openecomp.ncomp.openstack.OpenstackPackage#getOpenStackController_Users() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Timestamp' attribute. + * + *+ * If the meaning of the 'Timestamp' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Timestamp' attribute. + * @see #setTimestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Timestamp() + * @model unique="false" + * @generated + */ + Date getTimestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getTimestamp Timestamp}' attribute. + * + * + * @param value the new value of the 'Timestamp' attribute. + * @see #getTimestamp() + * @generated + */ + void setTimestamp(Date value); + + /** + * Returns the value of the 'Enabled' attribute. + * + *+ * If the meaning of the 'Enabled' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Enabled' attribute. + * @see #setEnabled(Boolean) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Enabled() + * @model unique="false" + * @generated + */ + Boolean getEnabled(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getEnabled Enabled}' attribute. + * + * + * @param value the new value of the 'Enabled' attribute. + * @see #getEnabled() + * @generated + */ + void setEnabled(Boolean value); + + /** + * Returns the value of the 'State' attribute. + * + *+ * If the meaning of the 'State' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'State' attribute. + * @see #setState(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_State() + * @model unique="false" + * @generated + */ + String getState(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState State}' attribute. + * + * + * @param value the new value of the 'State' attribute. + * @see #getState() + * @generated + */ + void setState(String value); + + /** + * Returns the value of the 'State timestamp' attribute. + * + *+ * If the meaning of the 'State timestamp' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'State timestamp' attribute. + * @see #setState_timestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_State_timestamp() + * @model unique="false" + * @generated + */ + Date getState_timestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getState_timestamp State timestamp}' attribute. + * + * + * @param value the new value of the 'State timestamp' attribute. + * @see #getState_timestamp() + * @generated + */ + void setState_timestamp(Date value); + + /** + * Returns the value of the 'Description' attribute. + * + *+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Alarm actions' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Alarm actions' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Alarm actions' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Alarm_actions() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Ok actions' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ok actions' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Ok_actions() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Insufficient data actions' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Insufficient data actions' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Insufficient_data_actions() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Repeat actions' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Repeat actions' attribute. + * @see #setRepeat_actions(Boolean) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Repeat_actions() + * @model unique="false" + * @generated + */ + Boolean getRepeat_actions(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm#getRepeat_actions Repeat actions}' attribute. + * + * + * @param value the new value of the 'Repeat actions' attribute. + * @see #getRepeat_actions() + * @generated + */ + void setRepeat_actions(Boolean value); + + /** + * Returns the value of the 'Time constraints' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Time constraints' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Time constraints' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerAlarm_Time_constraints() + * @model unique="false" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Operation' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Operation' attribute. + * @see #setOperation(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerFilter_Operation() + * @model unique="false" + * @generated + */ + String getOperation(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getOperation Operation}' attribute. + * + * + * @param value the new value of the 'Operation' attribute. + * @see #getOperation() + * @generated + */ + void setOperation(String value); + + /** + * Returns the value of the 'Value' attribute. + * + *+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerFilter_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + + /** + * Returns the value of the 'Field' attribute. + * + *+ * If the meaning of the 'Field' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Field' attribute. + * @see #setField(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerFilter_Field() + * @model unique="false" + * @generated + */ + String getField(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter#getField Field}' attribute. + * + * + * @param value the new value of the 'Field' attribute. + * @see #getField() + * @generated + */ + void setField(String value); + + /** + * Returns the value of the 'Filters' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter}. + * + *+ * If the meaning of the 'Filters' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Filters' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerFilter_Filters() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Field' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Field' attribute. + * @see #setField(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerOrderedBy_Field() + * @model unique="false" + * @generated + */ + String getField(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getField Field}' attribute. + * + * + * @param value the new value of the 'Field' attribute. + * @see #getField() + * @generated + */ + void setField(String value); + + /** + * Returns the value of the 'Direction' attribute. + * + *+ * If the meaning of the 'Direction' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Direction' attribute. + * @see #setDirection(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerOrderedBy_Direction() + * @model unique="false" + * @generated + */ + String getDirection(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy#getDirection Direction}' attribute. + * + * + * @param value the new value of the 'Direction' attribute. + * @see #getDirection() + * @generated + */ + void setDirection(String value); + +} // CeilometerOrderedBy diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerPackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerPackage.java new file mode 100644 index 0000000..f6f33e5 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerPackage.java @@ -0,0 +1,2557 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.openecomp.ncomp.openstack.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *+ * The following features are supported: + *
+ * If the meaning of the 'Alarms' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Alarms' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerProject_Alarms() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Resources' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Resources' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerProject_Resources() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Meters' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Meters' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerProject_Meters() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Filter' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Filter' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerQuery_Filter() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Orderby' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Orderby' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerQuery_Orderby() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Limit' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Limit' attribute. + * @see #setLimit(Long) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerQuery_Limit() + * @model unique="false" + * @generated + */ + Long getLimit(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery#getLimit Limit}' attribute. + * + * + * @param value the new value of the 'Limit' attribute. + * @see #getLimit() + * @generated + */ + void setLimit(Long value); + +} // CeilometerQuery diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerRequest.java new file mode 100644 index 0000000..a36c8e5 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerRequest.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +/** + * + * A representation of the model object 'Request'. + * + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerRequest() + * @model abstract="true" + * @generated + */ +public interface CeilometerRequest extends OpenStackRequest { +} // CeilometerRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerResource.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerResource.java new file mode 100644 index 0000000..fe0e704 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerResource.java @@ -0,0 +1,227 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import java.util.Date; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Resource'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Project id' attribute. + * + *+ * If the meaning of the 'Project id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Project id' attribute. + * @see #setProject_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Project_id() + * @model unique="false" + * @generated + */ + String getProject_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getProject_id Project id}' attribute. + * + * + * @param value the new value of the 'Project id' attribute. + * @see #getProject_id() + * @generated + */ + void setProject_id(String value); + + /** + * Returns the value of the 'First sample timestamp' attribute. + * + *+ * If the meaning of the 'First sample timestamp' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'First sample timestamp' attribute. + * @see #setFirst_sample_timestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_First_sample_timestamp() + * @model unique="false" + * @generated + */ + Date getFirst_sample_timestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getFirst_sample_timestamp First sample timestamp}' attribute. + * + * + * @param value the new value of the 'First sample timestamp' attribute. + * @see #getFirst_sample_timestamp() + * @generated + */ + void setFirst_sample_timestamp(Date value); + + /** + * Returns the value of the 'Last sample timestamp' attribute. + * + *+ * If the meaning of the 'Last sample timestamp' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Last sample timestamp' attribute. + * @see #setLast_sample_timestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Last_sample_timestamp() + * @model unique="false" + * @generated + */ + Date getLast_sample_timestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getLast_sample_timestamp Last sample timestamp}' attribute. + * + * + * @param value the new value of the 'Last sample timestamp' attribute. + * @see #getLast_sample_timestamp() + * @generated + */ + void setLast_sample_timestamp(Date value); + + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Link}. + * + *+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + + /** + * Returns the value of the 'Metadata' containment reference. + * + *+ * If the meaning of the 'Metadata' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Metadata' containment reference. + * @see #setMetadata(Metadata) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerResource_Metadata() + * @model containment="true" + * @generated + */ + Metadata getMetadata(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource#getMetadata Metadata}' containment reference. + * + * + * @param value the new value of the 'Metadata' containment reference. + * @see #getMetadata() + * @generated + */ + void setMetadata(Metadata value); +} // CeilometerResource diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerSample.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerSample.java new file mode 100644 index 0000000..c0abee2 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerSample.java @@ -0,0 +1,316 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import java.util.Date; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Sample'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Counter name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Counter name' attribute. + * @see #setCounter_name(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Counter_name() + * @model unique="false" + * @generated + */ + String getCounter_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_name Counter name}' attribute. + * + * + * @param value the new value of the 'Counter name' attribute. + * @see #getCounter_name() + * @generated + */ + void setCounter_name(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Resource id' attribute. + * + *+ * If the meaning of the 'Resource id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Resource id' attribute. + * @see #setResource_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Resource_id() + * @model unique="false" + * @generated + */ + String getResource_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getResource_id Resource id}' attribute. + * + * + * @param value the new value of the 'Resource id' attribute. + * @see #getResource_id() + * @generated + */ + void setResource_id(String value); + + /** + * Returns the value of the 'Timestamp' attribute. + * + *+ * If the meaning of the 'Timestamp' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Timestamp' attribute. + * @see #setTimestamp(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Timestamp() + * @model unique="false" + * @generated + */ + Date getTimestamp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getTimestamp Timestamp}' attribute. + * + * + * @param value the new value of the 'Timestamp' attribute. + * @see #getTimestamp() + * @generated + */ + void setTimestamp(Date value); + + /** + * Returns the value of the 'Recorded at' attribute. + * + *+ * If the meaning of the 'Recorded at' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Recorded at' attribute. + * @see #setRecorded_at(Date) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Recorded_at() + * @model unique="false" + * @generated + */ + Date getRecorded_at(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getRecorded_at Recorded at}' attribute. + * + * + * @param value the new value of the 'Recorded at' attribute. + * @see #getRecorded_at() + * @generated + */ + void setRecorded_at(Date value); + + /** + * Returns the value of the 'Message id' attribute. + * + *+ * If the meaning of the 'Message id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Message id' attribute. + * @see #setMessage_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Message_id() + * @model unique="false" + * @generated + */ + String getMessage_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getMessage_id Message id}' attribute. + * + * + * @param value the new value of the 'Message id' attribute. + * @see #getMessage_id() + * @generated + */ + void setMessage_id(String value); + + /** + * Returns the value of the 'Source' attribute. + * + *+ * If the meaning of the 'Source' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Source' attribute. + * @see #setSource(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Source() + * @model unique="false" + * @generated + */ + String getSource(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getSource Source}' attribute. + * + * + * @param value the new value of the 'Source' attribute. + * @see #getSource() + * @generated + */ + void setSource(String value); + + /** + * Returns the value of the 'Counter unit' attribute. + * + *+ * If the meaning of the 'Counter unit' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Counter unit' attribute. + * @see #setCounter_unit(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Counter_unit() + * @model unique="false" + * @generated + */ + String getCounter_unit(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_unit Counter unit}' attribute. + * + * + * @param value the new value of the 'Counter unit' attribute. + * @see #getCounter_unit() + * @generated + */ + void setCounter_unit(String value); + + /** + * Returns the value of the 'Counter volume' attribute. + * + *+ * If the meaning of the 'Counter volume' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Counter volume' attribute. + * @see #setCounter_volume(double) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Counter_volume() + * @model unique="false" + * @generated + */ + double getCounter_volume(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getCounter_volume Counter volume}' attribute. + * + * + * @param value the new value of the 'Counter volume' attribute. + * @see #getCounter_volume() + * @generated + */ + void setCounter_volume(double value); + + /** + * Returns the value of the 'Project id' attribute. + * + *+ * If the meaning of the 'Project id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Project id' attribute. + * @see #setProject_id(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerSample_Project_id() + * @model unique="false" + * @generated + */ + String getProject_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample#getProject_id Project id}' attribute. + * + * + * @param value the new value of the 'Project id' attribute. + * @see #getProject_id() + * @generated + */ + void setProject_id(String value); + +} // CeilometerSample diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerService.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerService.java new file mode 100644 index 0000000..4133b4b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerService.java @@ -0,0 +1,103 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Service'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Ceilometer Available Capabilites' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ceilometer Available Capabilites' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerService_CeilometerAvailableCapabilites() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Ceilometer Unavailable Capabilites' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ceilometer Unavailable Capabilites' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerService_CeilometerUnavailableCapabilites() + * @model unique="false" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Threshold rule' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Threshold rule' containment reference. + * @see #setThreshold_rule(CeilometerThresholdAlarmRule) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarm_Threshold_rule() + * @model containment="true" + * @generated + */ + CeilometerThresholdAlarmRule getThreshold_rule(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm#getThreshold_rule Threshold rule}' containment reference. + * + * + * @param value the new value of the 'Threshold rule' containment reference. + * @see #getThreshold_rule() + * @generated + */ + void setThreshold_rule(CeilometerThresholdAlarmRule value); +} // CeilometerThresholdAlarm diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarmRule.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarmRule.java new file mode 100644 index 0000000..4a50de6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CeilometerThresholdAlarmRule.java @@ -0,0 +1,252 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Threshold Alarm Rule'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Meter name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Meter name' attribute. + * @see #setMeter_name(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Meter_name() + * @model unique="false" + * @generated + */ + String getMeter_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getMeter_name Meter name}' attribute. + * + * + * @param value the new value of the 'Meter name' attribute. + * @see #getMeter_name() + * @generated + */ + void setMeter_name(String value); + + /** + * Returns the value of the 'Evaluation periods' attribute. + * + *+ * If the meaning of the 'Evaluation periods' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Evaluation periods' attribute. + * @see #setEvaluation_periods(Long) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Evaluation_periods() + * @model unique="false" + * @generated + */ + Long getEvaluation_periods(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getEvaluation_periods Evaluation periods}' attribute. + * + * + * @param value the new value of the 'Evaluation periods' attribute. + * @see #getEvaluation_periods() + * @generated + */ + void setEvaluation_periods(Long value); + + /** + * Returns the value of the 'Period' attribute. + * + *+ * If the meaning of the 'Period' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Period' attribute. + * @see #setPeriod(Long) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Period() + * @model unique="false" + * @generated + */ + Long getPeriod(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getPeriod Period}' attribute. + * + * + * @param value the new value of the 'Period' attribute. + * @see #getPeriod() + * @generated + */ + void setPeriod(Long value); + + /** + * Returns the value of the 'Statistic' attribute. + * + *+ * If the meaning of the 'Statistic' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Statistic' attribute. + * @see #setStatistic(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Statistic() + * @model unique="false" + * @generated + */ + String getStatistic(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getStatistic Statistic}' attribute. + * + * + * @param value the new value of the 'Statistic' attribute. + * @see #getStatistic() + * @generated + */ + void setStatistic(String value); + + /** + * Returns the value of the 'Threshold' attribute. + * + *+ * If the meaning of the 'Threshold' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Threshold' attribute. + * @see #setThreshold(double) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Threshold() + * @model unique="false" + * @generated + */ + double getThreshold(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getThreshold Threshold}' attribute. + * + * + * @param value the new value of the 'Threshold' attribute. + * @see #getThreshold() + * @generated + */ + void setThreshold(double value); + + /** + * Returns the value of the 'Query' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Query' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Query' attribute list. + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Query() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Comparison operator' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Comparison operator' attribute. + * @see #setComparison_operator(String) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Comparison_operator() + * @model unique="false" + * @generated + */ + String getComparison_operator(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getComparison_operator Comparison operator}' attribute. + * + * + * @param value the new value of the 'Comparison operator' attribute. + * @see #getComparison_operator() + * @generated + */ + void setComparison_operator(String value); + + /** + * Returns the value of the 'Exclude outliers' attribute. + * + *+ * If the meaning of the 'Exclude outliers' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Exclude outliers' attribute. + * @see #setExclude_outliers(Boolean) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCeilometerThresholdAlarmRule_Exclude_outliers() + * @model unique="false" + * @generated + */ + Boolean getExclude_outliers(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule#getExclude_outliers Exclude outliers}' attribute. + * + * + * @param value the new value of the 'Exclude outliers' attribute. + * @see #getExclude_outliers() + * @generated + */ + void setExclude_outliers(Boolean value); + +} // CeilometerThresholdAlarmRule diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CreateAlarmRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CreateAlarmRequest.java new file mode 100644 index 0000000..44e11b7 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/CreateAlarmRequest.java @@ -0,0 +1,38 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + + +/** + * + * A representation of the model object 'Create Alarm Request'. + * + * + * + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getCreateAlarmRequest() + * @model + * @generated + */ +public interface CreateAlarmRequest extends CeilometerRequest { +} // CreateAlarmRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/SampleRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/SampleRequest.java new file mode 100644 index 0000000..47640b7 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/SampleRequest.java @@ -0,0 +1,70 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer; + + +/** + * + * A representation of the model object 'Sample Request'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Query' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Query' containment reference. + * @see #setQuery(CeilometerQuery) + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#getSampleRequest_Query() + * @model containment="true" + * @generated + */ + CeilometerQuery getQuery(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.ceilometer.SampleRequest#getQuery Query}' containment reference. + * + * + * @param value the new value of the 'Query' containment reference. + * @see #getQuery() + * @generated + */ + void setQuery(CeilometerQuery value); + +} // SampleRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerAlarmImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerAlarmImpl.java new file mode 100644 index 0000000..9e989b2 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerAlarmImpl.java @@ -0,0 +1,708 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import java.util.Collection; +import java.util.Date; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * + * An implementation of the model object 'Alarm'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public class CeilometerMeterImpl extends MinimalEObjectImpl.Container implements CeilometerMeter { + /** + * + * + * @generated + */ + protected CeilometerMeterImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_METER; + } + +} //CeilometerMeterImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerOrderedByImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerOrderedByImpl.java new file mode 100644 index 0000000..fd4f9c4 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerOrderedByImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Ordered By'. + * + *+ * The following features are implemented: + *
Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage#eNS_URI + * @see #init() + * @generated + */ + private CeilometerPackageImpl() { + super(eNS_URI, CeilometerFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link CeilometerPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CeilometerPackage init() { + if (isInited) return (CeilometerPackage)EPackage.Registry.INSTANCE.getEPackage(CeilometerPackage.eNS_URI); + + // Obtain or create and register package + CeilometerPackageImpl theCeilometerPackage = (CeilometerPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CeilometerPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CeilometerPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + ComputePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCeilometerPackage.createPackageContents(); + + // Initialize created meta-data + theCeilometerPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCeilometerPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CeilometerPackage.eNS_URI, theCeilometerPackage); + return theCeilometerPackage; + } + + /** + * + * + * @generated + */ + public EClass getCeilometerService() { + return ceilometerServiceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerService_CeilometerAvailableCapabilites() { + return (EAttribute)ceilometerServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerService_CeilometerUnavailableCapabilites() { + return (EAttribute)ceilometerServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getCeilometerService__CreateAlarm__CreateAlarmRequest() { + return ceilometerServiceEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getCeilometerService__DeleteAlarm__String_String() { + return ceilometerServiceEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getCeilometerService__CreateAlarm__SampleRequest() { + return ceilometerServiceEClass.getEOperations().get(2); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerProject() { + return ceilometerProjectEClass; + } + + /** + * + * + * @generated + */ + public EReference getCeilometerProject_Alarms() { + return (EReference)ceilometerProjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerProject_Resources() { + return (EReference)ceilometerProjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerProject_Meters() { + return (EReference)ceilometerProjectEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerAlarm() { + return ceilometerAlarmEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Id() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_User_id() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Timestamp() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Enabled() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_State() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_State_timestamp() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Description() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Alarm_actions() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Ok_actions() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Insufficient_data_actions() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Repeat_actions() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerAlarm_Time_constraints() { + return (EAttribute)ceilometerAlarmEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerThresholdAlarm() { + return ceilometerThresholdAlarmEClass; + } + + /** + * + * + * @generated + */ + public EReference getCeilometerThresholdAlarm_Threshold_rule() { + return (EReference)ceilometerThresholdAlarmEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerThresholdAlarmRule() { + return ceilometerThresholdAlarmRuleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Meter_name() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Evaluation_periods() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Period() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Statistic() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Threshold() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Query() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Comparison_operator() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerThresholdAlarmRule_Exclude_outliers() { + return (EAttribute)ceilometerThresholdAlarmRuleEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerResource() { + return ceilometerResourceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_Id() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_User_id() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_Project_id() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_First_sample_timestamp() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerResource_Last_sample_timestamp() { + return (EAttribute)ceilometerResourceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerResource_Links() { + return (EReference)ceilometerResourceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerResource_Metadata() { + return (EReference)ceilometerResourceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerMeter() { + return ceilometerMeterEClass; + } + + /** + * + * + * @generated + */ + public EClass getCeilometerQuery() { + return ceilometerQueryEClass; + } + + /** + * + * + * @generated + */ + public EReference getCeilometerQuery_Filter() { + return (EReference)ceilometerQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerQuery_Orderby() { + return (EReference)ceilometerQueryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerQuery_Limit() { + return (EAttribute)ceilometerQueryEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerFilter() { + return ceilometerFilterEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerFilter_Operation() { + return (EAttribute)ceilometerFilterEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerFilter_Value() { + return (EAttribute)ceilometerFilterEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerFilter_Field() { + return (EAttribute)ceilometerFilterEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getCeilometerFilter_Filters() { + return (EReference)ceilometerFilterEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerOrderedBy() { + return ceilometerOrderedByEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerOrderedBy_Field() { + return (EAttribute)ceilometerOrderedByEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerOrderedBy_Direction() { + return (EAttribute)ceilometerOrderedByEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerRequest() { + return ceilometerRequestEClass; + } + + /** + * + * + * @generated + */ + public EClass getCreateAlarmRequest() { + return createAlarmRequestEClass; + } + + /** + * + * + * @generated + */ + public EClass getSampleRequest() { + return sampleRequestEClass; + } + + /** + * + * + * @generated + */ + public EReference getSampleRequest_Query() { + return (EReference)sampleRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getCeilometerSample() { + return ceilometerSampleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Counter_name() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_User_id() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Resource_id() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Timestamp() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Recorded_at() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Message_id() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Source() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Counter_unit() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Counter_volume() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getCeilometerSample_Project_id() { + return (EAttribute)ceilometerSampleEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public CeilometerFactory getCeilometerFactory() { + return (CeilometerFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + ceilometerServiceEClass = createEClass(CEILOMETER_SERVICE); + createEAttribute(ceilometerServiceEClass, CEILOMETER_SERVICE__CEILOMETER_AVAILABLE_CAPABILITES); + createEAttribute(ceilometerServiceEClass, CEILOMETER_SERVICE__CEILOMETER_UNAVAILABLE_CAPABILITES); + createEOperation(ceilometerServiceEClass, CEILOMETER_SERVICE___CREATE_ALARM__CREATEALARMREQUEST); + createEOperation(ceilometerServiceEClass, CEILOMETER_SERVICE___DELETE_ALARM__STRING_STRING); + createEOperation(ceilometerServiceEClass, CEILOMETER_SERVICE___CREATE_ALARM__SAMPLEREQUEST); + + ceilometerProjectEClass = createEClass(CEILOMETER_PROJECT); + createEReference(ceilometerProjectEClass, CEILOMETER_PROJECT__ALARMS); + createEReference(ceilometerProjectEClass, CEILOMETER_PROJECT__RESOURCES); + createEReference(ceilometerProjectEClass, CEILOMETER_PROJECT__METERS); + + ceilometerAlarmEClass = createEClass(CEILOMETER_ALARM); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__ID); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__USER_ID); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__TIMESTAMP); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__ENABLED); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__STATE); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__STATE_TIMESTAMP); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__DESCRIPTION); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__ALARM_ACTIONS); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__OK_ACTIONS); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__INSUFFICIENT_DATA_ACTIONS); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__REPEAT_ACTIONS); + createEAttribute(ceilometerAlarmEClass, CEILOMETER_ALARM__TIME_CONSTRAINTS); + + ceilometerThresholdAlarmEClass = createEClass(CEILOMETER_THRESHOLD_ALARM); + createEReference(ceilometerThresholdAlarmEClass, CEILOMETER_THRESHOLD_ALARM__THRESHOLD_RULE); + + ceilometerThresholdAlarmRuleEClass = createEClass(CEILOMETER_THRESHOLD_ALARM_RULE); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__METER_NAME); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__EVALUATION_PERIODS); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__PERIOD); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__STATISTIC); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__THRESHOLD); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__QUERY); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__COMPARISON_OPERATOR); + createEAttribute(ceilometerThresholdAlarmRuleEClass, CEILOMETER_THRESHOLD_ALARM_RULE__EXCLUDE_OUTLIERS); + + ceilometerResourceEClass = createEClass(CEILOMETER_RESOURCE); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__ID); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__USER_ID); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__PROJECT_ID); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__FIRST_SAMPLE_TIMESTAMP); + createEAttribute(ceilometerResourceEClass, CEILOMETER_RESOURCE__LAST_SAMPLE_TIMESTAMP); + createEReference(ceilometerResourceEClass, CEILOMETER_RESOURCE__LINKS); + createEReference(ceilometerResourceEClass, CEILOMETER_RESOURCE__METADATA); + + ceilometerMeterEClass = createEClass(CEILOMETER_METER); + + ceilometerQueryEClass = createEClass(CEILOMETER_QUERY); + createEReference(ceilometerQueryEClass, CEILOMETER_QUERY__FILTER); + createEReference(ceilometerQueryEClass, CEILOMETER_QUERY__ORDERBY); + createEAttribute(ceilometerQueryEClass, CEILOMETER_QUERY__LIMIT); + + ceilometerFilterEClass = createEClass(CEILOMETER_FILTER); + createEAttribute(ceilometerFilterEClass, CEILOMETER_FILTER__OPERATION); + createEAttribute(ceilometerFilterEClass, CEILOMETER_FILTER__VALUE); + createEAttribute(ceilometerFilterEClass, CEILOMETER_FILTER__FIELD); + createEReference(ceilometerFilterEClass, CEILOMETER_FILTER__FILTERS); + + ceilometerOrderedByEClass = createEClass(CEILOMETER_ORDERED_BY); + createEAttribute(ceilometerOrderedByEClass, CEILOMETER_ORDERED_BY__FIELD); + createEAttribute(ceilometerOrderedByEClass, CEILOMETER_ORDERED_BY__DIRECTION); + + ceilometerRequestEClass = createEClass(CEILOMETER_REQUEST); + + createAlarmRequestEClass = createEClass(CREATE_ALARM_REQUEST); + + sampleRequestEClass = createEClass(SAMPLE_REQUEST); + createEReference(sampleRequestEClass, SAMPLE_REQUEST__QUERY); + + ceilometerSampleEClass = createEClass(CEILOMETER_SAMPLE); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__COUNTER_NAME); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__USER_ID); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__RESOURCE_ID); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__TIMESTAMP); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__RECORDED_AT); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__MESSAGE_ID); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__SOURCE); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__COUNTER_UNIT); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__COUNTER_VOLUME); + createEAttribute(ceilometerSampleEClass, CEILOMETER_SAMPLE__PROJECT_ID); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + ComputePackage theComputePackage = (ComputePackage)EPackage.Registry.INSTANCE.getEPackage(ComputePackage.eNS_URI); + CorePackage theCorePackage_1 = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + ceilometerAlarmEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + ceilometerThresholdAlarmEClass.getESuperTypes().add(this.getCeilometerAlarm()); + ceilometerRequestEClass.getESuperTypes().add(theCorePackage_1.getOpenStackRequest()); + createAlarmRequestEClass.getESuperTypes().add(this.getCeilometerRequest()); + sampleRequestEClass.getESuperTypes().add(this.getCeilometerRequest()); + + // Initialize classes, features, and operations; add parameters + initEClass(ceilometerServiceEClass, CeilometerService.class, "CeilometerService", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerService_CeilometerAvailableCapabilites(), theEcorePackage.getEString(), "ceilometerAvailableCapabilites", null, 0, -1, CeilometerService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerService_CeilometerUnavailableCapabilites(), theEcorePackage.getEString(), "ceilometerUnavailableCapabilites", null, 0, -1, CeilometerService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + EOperation op = initEOperation(getCeilometerService__CreateAlarm__CreateAlarmRequest(), this.getCeilometerAlarm(), "createAlarm", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreateAlarmRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getCeilometerService__DeleteAlarm__String_String(), null, "deleteAlarm", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getCeilometerService__CreateAlarm__SampleRequest(), this.getCeilometerSample(), "createAlarm", 0, -1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getSampleRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(ceilometerProjectEClass, CeilometerProject.class, "CeilometerProject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCeilometerProject_Alarms(), this.getCeilometerAlarm(), null, "alarms", null, 0, -1, CeilometerProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerProject_Resources(), this.getCeilometerResource(), null, "resources", null, 0, -1, CeilometerProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerProject_Meters(), this.getCeilometerMeter(), null, "meters", null, 0, -1, CeilometerProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerAlarmEClass, CeilometerAlarm.class, "CeilometerAlarm", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerAlarm_Id(), theEcorePackage.getEString(), "id", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Timestamp(), theEcorePackage.getEDate(), "timestamp", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Enabled(), theEcorePackage.getEBooleanObject(), "enabled", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_State(), theEcorePackage.getEString(), "state", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_State_timestamp(), theEcorePackage.getEDate(), "state_timestamp", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Description(), theEcorePackage.getEString(), "description", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Alarm_actions(), theEcorePackage.getEString(), "alarm_actions", null, 0, -1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Ok_actions(), theEcorePackage.getEString(), "ok_actions", null, 0, -1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Insufficient_data_actions(), theEcorePackage.getEString(), "insufficient_data_actions", null, 0, -1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Repeat_actions(), theEcorePackage.getEBooleanObject(), "repeat_actions", null, 0, 1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerAlarm_Time_constraints(), theEcorePackage.getEString(), "time_constraints", null, 0, -1, CeilometerAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerThresholdAlarmEClass, CeilometerThresholdAlarm.class, "CeilometerThresholdAlarm", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCeilometerThresholdAlarm_Threshold_rule(), this.getCeilometerThresholdAlarmRule(), null, "threshold_rule", null, 0, 1, CeilometerThresholdAlarm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerThresholdAlarmRuleEClass, CeilometerThresholdAlarmRule.class, "CeilometerThresholdAlarmRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerThresholdAlarmRule_Meter_name(), theEcorePackage.getEString(), "meter_name", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Evaluation_periods(), theEcorePackage.getELongObject(), "evaluation_periods", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Period(), theEcorePackage.getELongObject(), "period", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Statistic(), theEcorePackage.getEString(), "statistic", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Threshold(), theEcorePackage.getEDouble(), "threshold", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Query(), theEcorePackage.getEString(), "query", null, 0, -1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Comparison_operator(), theEcorePackage.getEString(), "comparison_operator", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerThresholdAlarmRule_Exclude_outliers(), theEcorePackage.getEBooleanObject(), "exclude_outliers", null, 0, 1, CeilometerThresholdAlarmRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerResourceEClass, CeilometerResource.class, "CeilometerResource", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerResource_Id(), theEcorePackage.getEString(), "id", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerResource_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerResource_Project_id(), theEcorePackage.getEString(), "project_id", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerResource_First_sample_timestamp(), theEcorePackage.getEDate(), "first_sample_timestamp", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerResource_Last_sample_timestamp(), theEcorePackage.getEDate(), "last_sample_timestamp", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerResource_Links(), theComputePackage.getLink(), null, "links", null, 0, -1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerResource_Metadata(), theComputePackage.getMetadata(), null, "metadata", null, 0, 1, CeilometerResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerMeterEClass, CeilometerMeter.class, "CeilometerMeter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(ceilometerQueryEClass, CeilometerQuery.class, "CeilometerQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCeilometerQuery_Filter(), this.getCeilometerFilter(), null, "filter", null, 0, -1, CeilometerQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerQuery_Orderby(), this.getCeilometerOrderedBy(), null, "orderby", null, 0, -1, CeilometerQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerQuery_Limit(), theEcorePackage.getELongObject(), "limit", null, 0, 1, CeilometerQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerFilterEClass, CeilometerFilter.class, "CeilometerFilter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerFilter_Operation(), theEcorePackage.getEString(), "operation", null, 0, 1, CeilometerFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerFilter_Value(), theEcorePackage.getEString(), "value", null, 0, 1, CeilometerFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerFilter_Field(), theEcorePackage.getEString(), "field", null, 0, 1, CeilometerFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCeilometerFilter_Filters(), this.getCeilometerFilter(), null, "filters", null, 0, -1, CeilometerFilter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerOrderedByEClass, CeilometerOrderedBy.class, "CeilometerOrderedBy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerOrderedBy_Field(), theEcorePackage.getEString(), "field", null, 0, 1, CeilometerOrderedBy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerOrderedBy_Direction(), theEcorePackage.getEString(), "direction", null, 0, 1, CeilometerOrderedBy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerRequestEClass, CeilometerRequest.class, "CeilometerRequest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(createAlarmRequestEClass, CreateAlarmRequest.class, "CreateAlarmRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(sampleRequestEClass, SampleRequest.class, "SampleRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSampleRequest_Query(), this.getCeilometerQuery(), null, "query", null, 0, 1, SampleRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ceilometerSampleEClass, CeilometerSample.class, "CeilometerSample", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCeilometerSample_Counter_name(), theEcorePackage.getEString(), "counter_name", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Resource_id(), theEcorePackage.getEString(), "resource_id", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Timestamp(), theEcorePackage.getEDate(), "timestamp", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Recorded_at(), theEcorePackage.getEDate(), "recorded_at", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Message_id(), theEcorePackage.getEString(), "message_id", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Source(), theEcorePackage.getEString(), "source", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Counter_unit(), theEcorePackage.getEString(), "counter_unit", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Counter_volume(), theEcorePackage.getEDouble(), "counter_volume", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCeilometerSample_Project_id(), theEcorePackage.getEString(), "project_id", null, 0, 1, CeilometerSample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "openstack", "http://openecomp.org/sirius/openstack" + }); + } + +} //CeilometerPackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerProjectImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerProjectImpl.java new file mode 100644 index 0000000..5c1c6c0 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerProjectImpl.java @@ -0,0 +1,246 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerProject; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerResource; +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Project'. + * + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public abstract class CeilometerRequestImpl extends OpenStackRequestImpl implements CeilometerRequest { + /** + * + * + * @generated + */ + protected CeilometerRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CEILOMETER_REQUEST; + } + +} //CeilometerRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerResourceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerResourceImpl.java new file mode 100644 index 0000000..044097e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/CeilometerResourceImpl.java @@ -0,0 +1,513 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerResource; + +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import java.util.Collection; +import java.util.Date; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Resource'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public class CreateAlarmRequestImpl extends CeilometerRequestImpl implements CreateAlarmRequest { + /** + * + * + * @generated + */ + protected CreateAlarmRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CeilometerPackage.Literals.CREATE_ALARM_REQUEST; + } + +} //CreateAlarmRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/SampleRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/SampleRequestImpl.java new file mode 100644 index 0000000..f8b2209 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/impl/SampleRequestImpl.java @@ -0,0 +1,196 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.ceilometer.impl; + +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery; +import org.openecomp.ncomp.openstack.ceilometer.SampleRequest; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Sample Request'. + * + *+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage
+ * @generated
+ */
+public class CeilometerAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static CeilometerPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public CeilometerAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = CeilometerPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected CeilometerSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService Service}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService
+ * @generated
+ */
+ public Adapter createCeilometerServiceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject Project}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerProject
+ * @generated
+ */
+ public Adapter createCeilometerProjectAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm Alarm}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm
+ * @generated
+ */
+ public Adapter createCeilometerAlarmAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm Threshold Alarm}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarm
+ * @generated
+ */
+ public Adapter createCeilometerThresholdAlarmAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule Threshold Alarm Rule}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerThresholdAlarmRule
+ * @generated
+ */
+ public Adapter createCeilometerThresholdAlarmRuleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerResource Resource}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerResource
+ * @generated
+ */
+ public Adapter createCeilometerResourceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter Meter}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerMeter
+ * @generated
+ */
+ public Adapter createCeilometerMeterAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery Query}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerQuery
+ * @generated
+ */
+ public Adapter createCeilometerQueryAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter Filter}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerFilter
+ * @generated
+ */
+ public Adapter createCeilometerFilterAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy Ordered By}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerOrderedBy
+ * @generated
+ */
+ public Adapter createCeilometerOrderedByAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerRequest Request}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerRequest
+ * @generated
+ */
+ public Adapter createCeilometerRequestAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest Create Alarm Request}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest
+ * @generated
+ */
+ public Adapter createCreateAlarmRequestAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.SampleRequest Sample Request}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.SampleRequest
+ * @generated
+ */
+ public Adapter createSampleRequestAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerSample Sample}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerSample
+ * @generated
+ */
+ public Adapter createCeilometerSampleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest Open Stack Request}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.core.OpenStackRequest
+ * @generated
+ */
+ public Adapter createOpenStackRequestAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //CeilometerAdapterFactory
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerSwitch.java
new file mode 100644
index 0000000..6e3efb0
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/ceilometer/util/CeilometerSwitch.java
@@ -0,0 +1,445 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.ceilometer.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+import org.openecomp.ncomp.openstack.ceilometer.*;
+
+import org.openecomp.ncomp.openstack.core.OpenStackRequest;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage
+ * @generated
+ */
+public class CeilometerSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case CeilometerPackage.CEILOMETER_SERVICE: {
+ CeilometerService ceilometerService = (CeilometerService)theEObject;
+ T result = caseCeilometerService(ceilometerService);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_PROJECT: {
+ CeilometerProject ceilometerProject = (CeilometerProject)theEObject;
+ T result = caseCeilometerProject(ceilometerProject);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_ALARM: {
+ CeilometerAlarm ceilometerAlarm = (CeilometerAlarm)theEObject;
+ T result = caseCeilometerAlarm(ceilometerAlarm);
+ if (result == null) result = caseNamedEntity(ceilometerAlarm);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM: {
+ CeilometerThresholdAlarm ceilometerThresholdAlarm = (CeilometerThresholdAlarm)theEObject;
+ T result = caseCeilometerThresholdAlarm(ceilometerThresholdAlarm);
+ if (result == null) result = caseCeilometerAlarm(ceilometerThresholdAlarm);
+ if (result == null) result = caseNamedEntity(ceilometerThresholdAlarm);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_THRESHOLD_ALARM_RULE: {
+ CeilometerThresholdAlarmRule ceilometerThresholdAlarmRule = (CeilometerThresholdAlarmRule)theEObject;
+ T result = caseCeilometerThresholdAlarmRule(ceilometerThresholdAlarmRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_RESOURCE: {
+ CeilometerResource ceilometerResource = (CeilometerResource)theEObject;
+ T result = caseCeilometerResource(ceilometerResource);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_METER: {
+ CeilometerMeter ceilometerMeter = (CeilometerMeter)theEObject;
+ T result = caseCeilometerMeter(ceilometerMeter);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_QUERY: {
+ CeilometerQuery ceilometerQuery = (CeilometerQuery)theEObject;
+ T result = caseCeilometerQuery(ceilometerQuery);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_FILTER: {
+ CeilometerFilter ceilometerFilter = (CeilometerFilter)theEObject;
+ T result = caseCeilometerFilter(ceilometerFilter);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_ORDERED_BY: {
+ CeilometerOrderedBy ceilometerOrderedBy = (CeilometerOrderedBy)theEObject;
+ T result = caseCeilometerOrderedBy(ceilometerOrderedBy);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_REQUEST: {
+ CeilometerRequest ceilometerRequest = (CeilometerRequest)theEObject;
+ T result = caseCeilometerRequest(ceilometerRequest);
+ if (result == null) result = caseOpenStackRequest(ceilometerRequest);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CREATE_ALARM_REQUEST: {
+ CreateAlarmRequest createAlarmRequest = (CreateAlarmRequest)theEObject;
+ T result = caseCreateAlarmRequest(createAlarmRequest);
+ if (result == null) result = caseCeilometerRequest(createAlarmRequest);
+ if (result == null) result = caseOpenStackRequest(createAlarmRequest);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.SAMPLE_REQUEST: {
+ SampleRequest sampleRequest = (SampleRequest)theEObject;
+ T result = caseSampleRequest(sampleRequest);
+ if (result == null) result = caseCeilometerRequest(sampleRequest);
+ if (result == null) result = caseOpenStackRequest(sampleRequest);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CeilometerPackage.CEILOMETER_SAMPLE: {
+ CeilometerSample ceilometerSample = (CeilometerSample)theEObject;
+ T result = caseCeilometerSample(ceilometerSample);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Service'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Service'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerService(CeilometerService object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Project'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Project'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerProject(CeilometerProject object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Alarm'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Alarm'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerAlarm(CeilometerAlarm object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Threshold Alarm'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Threshold Alarm'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerThresholdAlarm(CeilometerThresholdAlarm object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Threshold Alarm Rule'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Threshold Alarm Rule'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerThresholdAlarmRule(CeilometerThresholdAlarmRule object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Resource'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Resource'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerResource(CeilometerResource object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Meter'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Meter'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerMeter(CeilometerMeter object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Query'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Query'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerQuery(CeilometerQuery object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Filter'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Filter'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerFilter(CeilometerFilter object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Ordered By'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Ordered By'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerOrderedBy(CeilometerOrderedBy object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Request'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Request'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerRequest(CeilometerRequest object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Create Alarm Request'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Create Alarm Request'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCreateAlarmRequest(CreateAlarmRequest object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Sample Request'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Sample Request'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSampleRequest(SampleRequest object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Sample'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Sample'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerSample(CeilometerSample object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Open Stack Request'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Open Stack Request'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenStackRequest(OpenStackRequest object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //CeilometerSwitch
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Address.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Address.java
new file mode 100644
index 0000000..4a40fd3
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Address.java
@@ -0,0 +1,152 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.compute;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Address'.
+ *
+ *
+ * + * The following features are supported: + *
+ * If the meaning of the 'Version' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Version' attribute. + * @see #setVersion(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddress_Version() + * @model unique="false" + * @generated + */ + int getVersion(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Address#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see #getVersion() + * @generated + */ + void setVersion(int value); + + /** + * Returns the value of the 'Addr' attribute. + * + *+ * If the meaning of the 'Addr' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Addr' attribute. + * @see #setAddr(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddress_Addr() + * @model unique="false" + * @generated + */ + String getAddr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Address#getAddr Addr}' attribute. + * + * + * @param value the new value of the 'Addr' attribute. + * @see #getAddr() + * @generated + */ + void setAddr(String value); + + /** + * Returns the value of the 'OS EXT IPS MAC mac addr' attribute. + * + *+ * If the meaning of the 'OS EXT IPS MAC mac addr' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS EXT IPS MAC mac addr' attribute. + * @see #setOS_EXT_IPS_MAC_mac_addr(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddress_OS_EXT_IPS_MAC_mac_addr() + * @model unique="false" + * @generated + */ + String getOS_EXT_IPS_MAC_mac_addr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_MAC_mac_addr OS EXT IPS MAC mac addr}' attribute. + * + * + * @param value the new value of the 'OS EXT IPS MAC mac addr' attribute. + * @see #getOS_EXT_IPS_MAC_mac_addr() + * @generated + */ + void setOS_EXT_IPS_MAC_mac_addr(String value); + + /** + * Returns the value of the 'OS EXT IPS type' attribute. + * + *+ * If the meaning of the 'OS EXT IPS type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS EXT IPS type' attribute. + * @see #setOS_EXT_IPS_type(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddress_OS_EXT_IPS_type() + * @model unique="false" + * @generated + */ + String getOS_EXT_IPS_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Address#getOS_EXT_IPS_type OS EXT IPS type}' attribute. + * + * + * @param value the new value of the 'OS EXT IPS type' attribute. + * @see #getOS_EXT_IPS_type() + * @generated + */ + void setOS_EXT_IPS_type(String value); + +} // Address diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Addresses.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Addresses.java new file mode 100644 index 0000000..62fffe8 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Addresses.java @@ -0,0 +1,90 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Addresses'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddresses_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Addresses#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Ips' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Address}. + * + *+ * If the meaning of the 'Ips' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ips' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getAddresses_Ips() + * @model containment="true" + * @generated + */ + EList getIps(); + +} // Addresses diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeFactory.java new file mode 100644 index 0000000..259b104 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputeFactory.java @@ -0,0 +1,261 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage + * @generated + */ +public interface ComputeFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + ComputeFactory eINSTANCE = org.openecomp.ncomp.openstack.compute.impl.ComputeFactoryImpl.init(); + + /** + * Returns a new object of class 'Openstack Request New Server'. + * + * + * @return a new object of class 'Openstack Request New Server'. + * @generated + */ + OpenstackRequestNewServer createOpenstackRequestNewServer(); + + /** + * Returns a new object of class 'Openstack Request Key Pair'. + * + * + * @return a new object of class 'Openstack Request Key Pair'. + * @generated + */ + OpenstackRequestKeyPair createOpenstackRequestKeyPair(); + + /** + * Returns a new object of class 'Openstack Request Flavor'. + * + * + * @return a new object of class 'Openstack Request Flavor'. + * @generated + */ + OpenstackRequestFlavor createOpenstackRequestFlavor(); + + /** + * Returns a new object of class 'Openstack Request Security Group'. + * + * + * @return a new object of class 'Openstack Request Security Group'. + * @generated + */ + OpenstackRequestSecurityGroup createOpenstackRequestSecurityGroup(); + + /** + * Returns a new object of class 'Openstack Request Server Action'. + * + * + * @return a new object of class 'Openstack Request Server Action'. + * @generated + */ + OpenstackRequestServerAction createOpenstackRequestServerAction(); + + /** + * Returns a new object of class 'Openstack Request Poll'. + * + * + * @return a new object of class 'Openstack Request Poll'. + * @generated + */ + OpenstackRequestPoll createOpenstackRequestPoll(); + + /** + * Returns a new object of class 'Server'. + * + * + * @return a new object of class 'Server'. + * @generated + */ + Server createServer(); + + /** + * Returns a new object of class 'Image'. + * + * + * @return a new object of class 'Image'. + * @generated + */ + Image createImage(); + + /** + * Returns a new object of class 'Flavor'. + * + * + * @return a new object of class 'Flavor'. + * @generated + */ + Flavor createFlavor(); + + /** + * Returns a new object of class 'Addresses'. + * + * + * @return a new object of class 'Addresses'. + * @generated + */ + Addresses createAddresses(); + + /** + * Returns a new object of class 'Address'. + * + * + * @return a new object of class 'Address'. + * @generated + */ + Address createAddress(); + + /** + * Returns a new object of class 'Link'. + * + * + * @return a new object of class 'Link'. + * @generated + */ + Link createLink(); + + /** + * Returns a new object of class 'Metadata'. + * + * + * @return a new object of class 'Metadata'. + * @generated + */ + Metadata createMetadata(); + + /** + * Returns a new object of class 'Fault'. + * + * + * @return a new object of class 'Fault'. + * @generated + */ + Fault createFault(); + + /** + * Returns a new object of class 'Personality'. + * + * + * @return a new object of class 'Personality'. + * @generated + */ + Personality createPersonality(); + + /** + * Returns a new object of class 'Reference'. + * + * + * @return a new object of class 'Reference'. + * @generated + */ + Reference createReference(); + + /** + * Returns a new object of class 'Volume'. + * + * + * @return a new object of class 'Volume'. + * @generated + */ + Volume createVolume(); + + /** + * Returns a new object of class 'Volume Attachment'. + * + * + * @return a new object of class 'Volume Attachment'. + * @generated + */ + VolumeAttachment createVolumeAttachment(); + + /** + * Returns a new object of class 'Floating Ip'. + * + * + * @return a new object of class 'Floating Ip'. + * @generated + */ + FloatingIp createFloatingIp(); + + /** + * Returns a new object of class 'Security Group'. + * + * + * @return a new object of class 'Security Group'. + * @generated + */ + SecurityGroup createSecurityGroup(); + + /** + * Returns a new object of class 'Security Rule'. + * + * + * @return a new object of class 'Security Rule'. + * @generated + */ + SecurityRule createSecurityRule(); + + /** + * Returns a new object of class 'Security Range'. + * + * + * @return a new object of class 'Security Range'. + * @generated + */ + SecurityRange createSecurityRange(); + + /** + * Returns a new object of class 'Key Pair'. + * + * + * @return a new object of class 'Key Pair'. + * @generated + */ + KeyPair createKeyPair(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + ComputePackage getComputePackage(); + +} //ComputeFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputePackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputePackage.java new file mode 100644 index 0000000..c6ca7c1 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/ComputePackage.java @@ -0,0 +1,5045 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *+ * The following features are supported: + *
+ * If the meaning of the 'Message' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Message' attribute. + * @see #setMessage(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFault_Message() + * @model unique="false" + * @generated + */ + String getMessage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Fault#getMessage Message}' attribute. + * + * + * @param value the new value of the 'Message' attribute. + * @see #getMessage() + * @generated + */ + void setMessage(String value); + + /** + * Returns the value of the 'Created' attribute. + * + *+ * If the meaning of the 'Created' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Created' attribute. + * @see #setCreated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFault_Created() + * @model unique="false" + * @generated + */ + String getCreated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Fault#getCreated Created}' attribute. + * + * + * @param value the new value of the 'Created' attribute. + * @see #getCreated() + * @generated + */ + void setCreated(String value); + + /** + * Returns the value of the 'Code' attribute. + * + *+ * If the meaning of the 'Code' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Code' attribute. + * @see #setCode(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFault_Code() + * @model unique="false" + * @generated + */ + int getCode(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Fault#getCode Code}' attribute. + * + * + * @param value the new value of the 'Code' attribute. + * @see #getCode() + * @generated + */ + void setCode(int value); + +} // Fault diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Flavor.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Flavor.java new file mode 100644 index 0000000..26a5f95 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Flavor.java @@ -0,0 +1,333 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Flavor'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Ram' attribute. + * + *+ * If the meaning of the 'Ram' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ram' attribute. + * @see #setRam(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Ram() + * @model unique="false" + * @generated + */ + int getRam(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getRam Ram}' attribute. + * + * + * @param value the new value of the 'Ram' attribute. + * @see #getRam() + * @generated + */ + void setRam(int value); + + /** + * Returns the value of the 'Disk' attribute. + * + *+ * If the meaning of the 'Disk' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Disk' attribute. + * @see #setDisk(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Disk() + * @model unique="false" + * @generated + */ + int getDisk(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getDisk Disk}' attribute. + * + * + * @param value the new value of the 'Disk' attribute. + * @see #getDisk() + * @generated + */ + void setDisk(int value); + + /** + * Returns the value of the 'Vcpus' attribute. + * + *+ * If the meaning of the 'Vcpus' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Vcpus' attribute. + * @see #setVcpus(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Vcpus() + * @model unique="false" + * @generated + */ + int getVcpus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getVcpus Vcpus}' attribute. + * + * + * @param value the new value of the 'Vcpus' attribute. + * @see #getVcpus() + * @generated + */ + void setVcpus(int value); + + /** + * Returns the value of the 'Swap' attribute. + * + *+ * If the meaning of the 'Swap' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Swap' attribute. + * @see #setSwap(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Swap() + * @model unique="false" + * @generated + */ + String getSwap(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getSwap Swap}' attribute. + * + * + * @param value the new value of the 'Swap' attribute. + * @see #getSwap() + * @generated + */ + void setSwap(String value); + + /** + * Returns the value of the 'Rxtx factor' attribute. + * + *+ * If the meaning of the 'Rxtx factor' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Rxtx factor' attribute. + * @see #setRxtx_factor(double) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Rxtx_factor() + * @model unique="false" + * @generated + */ + double getRxtx_factor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getRxtx_factor Rxtx factor}' attribute. + * + * + * @param value the new value of the 'Rxtx factor' attribute. + * @see #getRxtx_factor() + * @generated + */ + void setRxtx_factor(double value); + + /** + * Returns the value of the 'OS FLV EXT DATA ephemeral' attribute. + * + *+ * If the meaning of the 'OS FLV EXT DATA ephemeral' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS FLV EXT DATA ephemeral' attribute. + * @see #setOS_FLV_EXT_DATA_ephemeral(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_OS_FLV_EXT_DATA_ephemeral() + * @model unique="false" + * @generated + */ + int getOS_FLV_EXT_DATA_ephemeral(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#getOS_FLV_EXT_DATA_ephemeral OS FLV EXT DATA ephemeral}' attribute. + * + * + * @param value the new value of the 'OS FLV EXT DATA ephemeral' attribute. + * @see #getOS_FLV_EXT_DATA_ephemeral() + * @generated + */ + void setOS_FLV_EXT_DATA_ephemeral(int value); + + /** + * Returns the value of the 'OS FLV DISABLED disabled' attribute. + * + *+ * If the meaning of the 'OS FLV DISABLED disabled' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS FLV DISABLED disabled' attribute. + * @see #setOS_FLV_DISABLED_disabled(boolean) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_OS_FLV_DISABLED_disabled() + * @model unique="false" + * @generated + */ + boolean isOS_FLV_DISABLED_disabled(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#isOS_FLV_DISABLED_disabled OS FLV DISABLED disabled}' attribute. + * + * + * @param value the new value of the 'OS FLV DISABLED disabled' attribute. + * @see #isOS_FLV_DISABLED_disabled() + * @generated + */ + void setOS_FLV_DISABLED_disabled(boolean value); + + /** + * Returns the value of the 'Os flavor access is public' attribute. + * + *+ * If the meaning of the 'Os flavor access is public' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Os flavor access is public' attribute. + * @see #setOs_flavor_access_is_public(boolean) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Os_flavor_access_is_public() + * @model unique="false" + * @generated + */ + boolean isOs_flavor_access_is_public(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Flavor#isOs_flavor_access_is_public Os flavor access is public}' attribute. + * + * + * @param value the new value of the 'Os flavor access is public' attribute. + * @see #isOs_flavor_access_is_public() + * @generated + */ + void setOs_flavor_access_is_public(boolean value); + + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Link}. + * + *+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFlavor_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + +} // Flavor diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/FloatingIp.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/FloatingIp.java new file mode 100644 index 0000000..b842a4b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/FloatingIp.java @@ -0,0 +1,179 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Floating Ip'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Instance id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Instance id' attribute. + * @see #setInstance_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Instance_id() + * @model unique="false" + * @generated + */ + String getInstance_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getInstance_id Instance id}' attribute. + * + * + * @param value the new value of the 'Instance id' attribute. + * @see #getInstance_id() + * @generated + */ + void setInstance_id(String value); + + /** + * Returns the value of the 'Ip' attribute. + * + *+ * If the meaning of the 'Ip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ip' attribute. + * @see #setIp(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Ip() + * @model unique="false" + * @generated + */ + String getIp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getIp Ip}' attribute. + * + * + * @param value the new value of the 'Ip' attribute. + * @see #getIp() + * @generated + */ + void setIp(String value); + + /** + * Returns the value of the 'Fixed ip' attribute. + * + *+ * If the meaning of the 'Fixed ip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Fixed ip' attribute. + * @see #setFixed_ip(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Fixed_ip() + * @model unique="false" + * @generated + */ + String getFixed_ip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getFixed_ip Fixed ip}' attribute. + * + * + * @param value the new value of the 'Fixed ip' attribute. + * @see #getFixed_ip() + * @generated + */ + void setFixed_ip(String value); + + /** + * Returns the value of the 'Id' attribute. + * + *+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Pool' attribute. + * + *+ * If the meaning of the 'Pool' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Pool' attribute. + * @see #setPool(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getFloatingIp_Pool() + * @model unique="false" + * @generated + */ + String getPool(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.FloatingIp#getPool Pool}' attribute. + * + * + * @param value the new value of the 'Pool' attribute. + * @see #getPool() + * @generated + */ + void setPool(String value); + +} // FloatingIp diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Image.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Image.java new file mode 100644 index 0000000..86f7f4d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Image.java @@ -0,0 +1,404 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Image'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Updated' attribute. + * + *+ * If the meaning of the 'Updated' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Updated' attribute. + * @see #setUpdated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Updated() + * @model unique="false" + * @generated + */ + String getUpdated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getUpdated Updated}' attribute. + * + * + * @param value the new value of the 'Updated' attribute. + * @see #getUpdated() + * @generated + */ + void setUpdated(String value); + + /** + * Returns the value of the 'Created' attribute. + * + *+ * If the meaning of the 'Created' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Created' attribute. + * @see #setCreated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Created() + * @model unique="false" + * @generated + */ + String getCreated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getCreated Created}' attribute. + * + * + * @param value the new value of the 'Created' attribute. + * @see #getCreated() + * @generated + */ + void setCreated(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Progress' attribute. + * + *+ * If the meaning of the 'Progress' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Progress' attribute. + * @see #setProgress(Long) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Progress() + * @model unique="false" + * @generated + */ + Long getProgress(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getProgress Progress}' attribute. + * + * + * @param value the new value of the 'Progress' attribute. + * @see #getProgress() + * @generated + */ + void setProgress(Long value); + + /** + * Returns the value of the 'Min Disk' attribute. + * + *+ * If the meaning of the 'Min Disk' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Min Disk' attribute. + * @see #setMinDisk(Long) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_MinDisk() + * @model unique="false" + * @generated + */ + Long getMinDisk(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getMinDisk Min Disk}' attribute. + * + * + * @param value the new value of the 'Min Disk' attribute. + * @see #getMinDisk() + * @generated + */ + void setMinDisk(Long value); + + /** + * Returns the value of the 'Min Ram' attribute. + * + *+ * If the meaning of the 'Min Ram' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Min Ram' attribute. + * @see #setMinRam(Long) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_MinRam() + * @model unique="false" + * @generated + */ + Long getMinRam(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getMinRam Min Ram}' attribute. + * + * + * @param value the new value of the 'Min Ram' attribute. + * @see #getMinRam() + * @generated + */ + void setMinRam(Long value); + + /** + * Returns the value of the 'OS EXT IMG SIZE size' attribute. + * + *+ * If the meaning of the 'OS EXT IMG SIZE size' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS EXT IMG SIZE size' attribute. + * @see #setOS_EXT_IMG_SIZE_size(Long) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_OS_EXT_IMG_SIZE_size() + * @model unique="false" + * @generated + */ + Long getOS_EXT_IMG_SIZE_size(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getOS_EXT_IMG_SIZE_size OS EXT IMG SIZE size}' attribute. + * + * + * @param value the new value of the 'OS EXT IMG SIZE size' attribute. + * @see #getOS_EXT_IMG_SIZE_size() + * @generated + */ + void setOS_EXT_IMG_SIZE_size(Long value); + + /** + * Returns the value of the 'Server' containment reference. + * + *+ * If the meaning of the 'Server' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Server' containment reference. + * @see #setServer(Reference) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Server() + * @model containment="true" + * @generated + */ + Reference getServer(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Image#getServer Server}' containment reference. + * + * + * @param value the new value of the 'Server' containment reference. + * @see #getServer() + * @generated + */ + void setServer(Reference value); + + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Link}. + * + *+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + + /** + * Returns the value of the 'Metadata' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Metadata}. + * + *+ * If the meaning of the 'Metadata' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Metadata' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getImage_Metadata() + * @model containment="true" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Public key' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Public key' attribute. + * @see #setPublic_key(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getKeyPair_Public_key() + * @model unique="false" + * @generated + */ + String getPublic_key(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.KeyPair#getPublic_key Public key}' attribute. + * + * + * @param value the new value of the 'Public key' attribute. + * @see #getPublic_key() + * @generated + */ + void setPublic_key(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getKeyPair_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.KeyPair#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Fingerprint' attribute. + * + *+ * If the meaning of the 'Fingerprint' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Fingerprint' attribute. + * @see #setFingerprint(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getKeyPair_Fingerprint() + * @model unique="false" + * @generated + */ + String getFingerprint(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.KeyPair#getFingerprint Fingerprint}' attribute. + * + * + * @param value the new value of the 'Fingerprint' attribute. + * @see #getFingerprint() + * @generated + */ + void setFingerprint(String value); + +} // KeyPair diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Link.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Link.java new file mode 100644 index 0000000..3e09988 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Link.java @@ -0,0 +1,125 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Link'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Rel' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Rel' attribute. + * @see #setRel(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getLink_Rel() + * @model unique="false" + * @generated + */ + String getRel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Link#getRel Rel}' attribute. + * + * + * @param value the new value of the 'Rel' attribute. + * @see #getRel() + * @generated + */ + void setRel(String value); + + /** + * Returns the value of the 'Href' attribute. + * + *+ * If the meaning of the 'Href' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Href' attribute. + * @see #setHref(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getLink_Href() + * @model unique="false" + * @generated + */ + String getHref(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Link#getHref Href}' attribute. + * + * + * @param value the new value of the 'Href' attribute. + * @see #getHref() + * @generated + */ + void setHref(String value); + + /** + * Returns the value of the 'Type' attribute. + * + *+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getLink_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Link#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + +} // Link diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Metadata.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Metadata.java new file mode 100644 index 0000000..49bfa6e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Metadata.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Metadata'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Key' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Key' attribute. + * @see #setKey(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getMetadata_Key() + * @model unique="false" + * @generated + */ + String getKey(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Metadata#getKey Key}' attribute. + * + * + * @param value the new value of the 'Key' attribute. + * @see #getKey() + * @generated + */ + void setKey(String value); + + /** + * Returns the value of the 'Value' attribute. + * + *+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getMetadata_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Metadata#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // Metadata diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestFlavor.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestFlavor.java new file mode 100644 index 0000000..9d53f4b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestFlavor.java @@ -0,0 +1,72 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +/** + * + * A representation of the model object 'Openstack Request Flavor'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Vm Type' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Vm Type' containment reference. + * @see #setVmType(VirtualMachineType) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestFlavor_VmType() + * @model containment="true" + * @generated + */ + VirtualMachineType getVmType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor#getVmType Vm Type}' containment reference. + * + * + * @param value the new value of the 'Vm Type' containment reference. + * @see #getVmType() + * @generated + */ + void setVmType(VirtualMachineType value); + +} // OpenstackRequestFlavor diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestKeyPair.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestKeyPair.java new file mode 100644 index 0000000..71f1e0f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestKeyPair.java @@ -0,0 +1,72 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +/** + * + * A representation of the model object 'Openstack Request Key Pair'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'User' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'User' containment reference. + * @see #setUser(User) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestKeyPair_User() + * @model containment="true" + * @generated + */ + User getUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair#getUser User}' containment reference. + * + * + * @param value the new value of the 'User' containment reference. + * @see #getUser() + * @generated + */ + void setUser(User value); + +} // OpenstackRequestKeyPair diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestNewServer.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestNewServer.java new file mode 100644 index 0000000..00c9bae --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestNewServer.java @@ -0,0 +1,243 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Openstack Request New Server'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Hypervisor' attribute. + * + *+ * If the meaning of the 'Hypervisor' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Hypervisor' attribute. + * @see #setHypervisor(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_Hypervisor() + * @model unique="false" + * @generated + */ + String getHypervisor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getHypervisor Hypervisor}' attribute. + * + * + * @param value the new value of the 'Hypervisor' attribute. + * @see #getHypervisor() + * @generated + */ + void setHypervisor(String value); + + /** + * Returns the value of the 'User' attribute. + * + *+ * If the meaning of the 'User' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'User' attribute. + * @see #setUser(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_User() + * @model unique="false" + * @generated + */ + String getUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser User}' attribute. + * + * + * @param value the new value of the 'User' attribute. + * @see #getUser() + * @generated + */ + void setUser(String value); + + /** + * Returns the value of the 'Networks' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Networks' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Networks' attribute list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_Networks() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Ports' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ports' attribute list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_Ports() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'User data' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'User data' attribute. + * @see #setUser_data(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_User_data() + * @model unique="false" + * @generated + */ + String getUser_data(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getUser_data User data}' attribute. + * + * + * @param value the new value of the 'User data' attribute. + * @see #getUser_data() + * @generated + */ + void setUser_data(String value); + + /** + * Returns the value of the 'Floating Ip' attribute. + * + *+ * If the meaning of the 'Floating Ip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Floating Ip' attribute. + * @see #setFloatingIp(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_FloatingIp() + * @model unique="false" + * @generated + */ + String getFloatingIp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getFloatingIp Floating Ip}' attribute. + * + * + * @param value the new value of the 'Floating Ip' attribute. + * @see #getFloatingIp() + * @generated + */ + void setFloatingIp(String value); + + /** + * Returns the value of the 'Vm Type' containment reference. + * + *+ * If the meaning of the 'Vm Type' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Vm Type' containment reference. + * @see #setVmType(VirtualMachineType) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestNewServer_VmType() + * @model containment="true" + * @generated + */ + VirtualMachineType getVmType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer#getVmType Vm Type}' containment reference. + * + * + * @param value the new value of the 'Vm Type' containment reference. + * @see #getVmType() + * @generated + */ + void setVmType(VirtualMachineType value); + +} // OpenstackRequestNewServer diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestPoll.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestPoll.java new file mode 100644 index 0000000..810e34b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestPoll.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +/** + * + * A representation of the model object 'Openstack Request Poll'. + * + * + * + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestPoll() + * @model + * @generated + */ +public interface OpenstackRequestPoll extends OpenStackRequest { +} // OpenstackRequestPoll diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestSecurityGroup.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestSecurityGroup.java new file mode 100644 index 0000000..45a7434 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestSecurityGroup.java @@ -0,0 +1,72 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +/** + * + * A representation of the model object 'Openstack Request Security Group'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Vm Type' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Vm Type' containment reference. + * @see #setVmType(VirtualMachineType) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestSecurityGroup_VmType() + * @model containment="true" + * @generated + */ + VirtualMachineType getVmType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup#getVmType Vm Type}' containment reference. + * + * + * @param value the new value of the 'Vm Type' containment reference. + * @see #getVmType() + * @generated + */ + void setVmType(VirtualMachineType value); + +} // OpenstackRequestSecurityGroup diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestServerAction.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestServerAction.java new file mode 100644 index 0000000..4eb1d57 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/OpenstackRequestServerAction.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +/** + * + * A representation of the model object 'Openstack Request Server Action'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestServerAction_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Action' attribute. + * + *+ * If the meaning of the 'Action' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Action' attribute. + * @see #setAction(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getOpenstackRequestServerAction_Action() + * @model unique="false" + * @generated + */ + String getAction(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction#getAction Action}' attribute. + * + * + * @param value the new value of the 'Action' attribute. + * @see #getAction() + * @generated + */ + void setAction(String value); + +} // OpenstackRequestServerAction diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Personality.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Personality.java new file mode 100644 index 0000000..42e5156 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Personality.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Personality'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Path' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Path' attribute. + * @see #setPath(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getPersonality_Path() + * @model unique="false" + * @generated + */ + String getPath(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Personality#getPath Path}' attribute. + * + * + * @param value the new value of the 'Path' attribute. + * @see #getPath() + * @generated + */ + void setPath(String value); + + /** + * Returns the value of the 'Contents' attribute. + * + *+ * If the meaning of the 'Contents' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Contents' attribute. + * @see #setContents(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getPersonality_Contents() + * @model unique="false" + * @generated + */ + String getContents(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Personality#getContents Contents}' attribute. + * + * + * @param value the new value of the 'Contents' attribute. + * @see #getContents() + * @generated + */ + void setContents(String value); + +} // Personality diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Reference.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Reference.java new file mode 100644 index 0000000..daf8be0 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Reference.java @@ -0,0 +1,90 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Reference'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getReference_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Reference#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Link}. + * + *+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getReference_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + +} // Reference diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityGroup.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityGroup.java new file mode 100644 index 0000000..7a585d8 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityGroup.java @@ -0,0 +1,144 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Security Group'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Rules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Rules' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityGroup_Rules() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityGroup_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'Id' attribute. + * + *+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityGroup_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Description' attribute. + * + *+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityGroup_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + +} // SecurityGroup diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRange.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRange.java new file mode 100644 index 0000000..7dd610c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRange.java @@ -0,0 +1,71 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Security Range'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Cidr' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Cidr' attribute. + * @see #setCidr(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRange_Cidr() + * @model unique="false" + * @generated + */ + String getCidr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRange#getCidr Cidr}' attribute. + * + * + * @param value the new value of the 'Cidr' attribute. + * @see #getCidr() + * @generated + */ + void setCidr(String value); + +} // SecurityRange diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRule.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRule.java new file mode 100644 index 0000000..e4b1184 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/SecurityRule.java @@ -0,0 +1,233 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Security Rule'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'From port' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'From port' attribute. + * @see #setFrom_port(Integer) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_From_port() + * @model unique="false" + * @generated + */ + Integer getFrom_port(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getFrom_port From port}' attribute. + * + * + * @param value the new value of the 'From port' attribute. + * @see #getFrom_port() + * @generated + */ + void setFrom_port(Integer value); + + /** + * Returns the value of the 'Group' containment reference. + * + *+ * If the meaning of the 'Group' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Group' containment reference. + * @see #setGroup(SecurityGroup) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Group() + * @model containment="true" + * @generated + */ + SecurityGroup getGroup(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getGroup Group}' containment reference. + * + * + * @param value the new value of the 'Group' containment reference. + * @see #getGroup() + * @generated + */ + void setGroup(SecurityGroup value); + + /** + * Returns the value of the 'Ip protocol' attribute. + * + *+ * If the meaning of the 'Ip protocol' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ip protocol' attribute. + * @see #setIp_protocol(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Ip_protocol() + * @model unique="false" + * @generated + */ + String getIp_protocol(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_protocol Ip protocol}' attribute. + * + * + * @param value the new value of the 'Ip protocol' attribute. + * @see #getIp_protocol() + * @generated + */ + void setIp_protocol(String value); + + /** + * Returns the value of the 'To port' attribute. + * + *+ * If the meaning of the 'To port' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'To port' attribute. + * @see #setTo_port(Integer) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_To_port() + * @model unique="false" + * @generated + */ + Integer getTo_port(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getTo_port To port}' attribute. + * + * + * @param value the new value of the 'To port' attribute. + * @see #getTo_port() + * @generated + */ + void setTo_port(Integer value); + + /** + * Returns the value of the 'Parent group id' attribute. + * + *+ * If the meaning of the 'Parent group id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Parent group id' attribute. + * @see #setParent_group_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Parent_group_id() + * @model unique="false" + * @generated + */ + String getParent_group_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getParent_group_id Parent group id}' attribute. + * + * + * @param value the new value of the 'Parent group id' attribute. + * @see #getParent_group_id() + * @generated + */ + void setParent_group_id(String value); + + /** + * Returns the value of the 'Ip range' containment reference. + * + *+ * If the meaning of the 'Ip range' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ip range' containment reference. + * @see #setIp_range(SecurityRange) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Ip_range() + * @model containment="true" + * @generated + */ + SecurityRange getIp_range(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getIp_range Ip range}' containment reference. + * + * + * @param value the new value of the 'Ip range' containment reference. + * @see #getIp_range() + * @generated + */ + void setIp_range(SecurityRange value); + + /** + * Returns the value of the 'Id' attribute. + * + *+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getSecurityRule_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.SecurityRule#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + +} // SecurityRule diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Server.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Server.java new file mode 100644 index 0000000..60e8f28 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Server.java @@ -0,0 +1,789 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Server'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'User id' attribute. + * + *+ * If the meaning of the 'User id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'User id' attribute. + * @see #setUser_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_User_id() + * @model unique="false" + * @generated + */ + String getUser_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getUser_id User id}' attribute. + * + * + * @param value the new value of the 'User id' attribute. + * @see #getUser_id() + * @generated + */ + void setUser_id(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Updated' attribute. + * + *+ * If the meaning of the 'Updated' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Updated' attribute. + * @see #setUpdated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Updated() + * @model unique="false" + * @generated + */ + String getUpdated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getUpdated Updated}' attribute. + * + * + * @param value the new value of the 'Updated' attribute. + * @see #getUpdated() + * @generated + */ + void setUpdated(String value); + + /** + * Returns the value of the 'Created' attribute. + * + *+ * If the meaning of the 'Created' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Created' attribute. + * @see #setCreated(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Created() + * @model unique="false" + * @generated + */ + String getCreated(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getCreated Created}' attribute. + * + * + * @param value the new value of the 'Created' attribute. + * @see #getCreated() + * @generated + */ + void setCreated(String value); + + /** + * Returns the value of the 'Host Id' attribute. + * + *+ * If the meaning of the 'Host Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Host Id' attribute. + * @see #setHostId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_HostId() + * @model unique="false" + * @generated + */ + String getHostId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getHostId Host Id}' attribute. + * + * + * @param value the new value of the 'Host Id' attribute. + * @see #getHostId() + * @generated + */ + void setHostId(String value); + + /** + * Returns the value of the 'Access IPv4' attribute. + * + *+ * If the meaning of the 'Access IPv4' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Access IPv4' attribute. + * @see #setAccessIPv4(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_AccessIPv4() + * @model unique="false" + * @generated + */ + String getAccessIPv4(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getAccessIPv4 Access IPv4}' attribute. + * + * + * @param value the new value of the 'Access IPv4' attribute. + * @see #getAccessIPv4() + * @generated + */ + void setAccessIPv4(String value); + + /** + * Returns the value of the 'Access IPv6' attribute. + * + *+ * If the meaning of the 'Access IPv6' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Access IPv6' attribute. + * @see #setAccessIPv6(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_AccessIPv6() + * @model unique="false" + * @generated + */ + String getAccessIPv6(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getAccessIPv6 Access IPv6}' attribute. + * + * + * @param value the new value of the 'Access IPv6' attribute. + * @see #getAccessIPv6() + * @generated + */ + void setAccessIPv6(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Config drive' attribute. + * + *+ * If the meaning of the 'Config drive' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Config drive' attribute. + * @see #setConfig_drive(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Config_drive() + * @model unique="false" + * @generated + */ + String getConfig_drive(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getConfig_drive Config drive}' attribute. + * + * + * @param value the new value of the 'Config drive' attribute. + * @see #getConfig_drive() + * @generated + */ + void setConfig_drive(String value); + + /** + * Returns the value of the 'Key name' attribute. + * + *+ * If the meaning of the 'Key name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Key name' attribute. + * @see #setKey_name(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Key_name() + * @model unique="false" + * @generated + */ + String getKey_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getKey_name Key name}' attribute. + * + * + * @param value the new value of the 'Key name' attribute. + * @see #getKey_name() + * @generated + */ + void setKey_name(String value); + + /** + * Returns the value of the 'Progress' attribute. + * + *+ * If the meaning of the 'Progress' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Progress' attribute. + * @see #setProgress(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Progress() + * @model unique="false" + * @generated + */ + int getProgress(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getProgress Progress}' attribute. + * + * + * @param value the new value of the 'Progress' attribute. + * @see #getProgress() + * @generated + */ + void setProgress(int value); + + /** + * Returns the value of the 'OS DCF disk Config' attribute. + * + *+ * If the meaning of the 'OS DCF disk Config' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS DCF disk Config' attribute. + * @see #setOS_DCF_diskConfig(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_DCF_diskConfig() + * @model unique="false" + * @generated + */ + String getOS_DCF_diskConfig(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_DCF_diskConfig OS DCF disk Config}' attribute. + * + * + * @param value the new value of the 'OS DCF disk Config' attribute. + * @see #getOS_DCF_diskConfig() + * @generated + */ + void setOS_DCF_diskConfig(String value); + + /** + * Returns the value of the 'OS EXT STS power state' attribute. + * + *+ * If the meaning of the 'OS EXT STS power state' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS EXT STS power state' attribute. + * @see #setOS_EXT_STS_power_state(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_STS_power_state() + * @model unique="false" + * @generated + */ + int getOS_EXT_STS_power_state(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_power_state OS EXT STS power state}' attribute. + * + * + * @param value the new value of the 'OS EXT STS power state' attribute. + * @see #getOS_EXT_STS_power_state() + * @generated + */ + void setOS_EXT_STS_power_state(int value); + + /** + * Returns the value of the 'OS EXT STS vm state' attribute. + * + *+ * If the meaning of the 'OS EXT STS vm state' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS EXT STS vm state' attribute. + * @see #setOS_EXT_STS_vm_state(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_STS_vm_state() + * @model unique="false" + * @generated + */ + String getOS_EXT_STS_vm_state(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_vm_state OS EXT STS vm state}' attribute. + * + * + * @param value the new value of the 'OS EXT STS vm state' attribute. + * @see #getOS_EXT_STS_vm_state() + * @generated + */ + void setOS_EXT_STS_vm_state(String value); + + /** + * Returns the value of the 'OS EXT STS task state' attribute. + * + *+ * If the meaning of the 'OS EXT STS task state' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS EXT STS task state' attribute. + * @see #setOS_EXT_STS_task_state(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_STS_task_state() + * @model unique="false" + * @generated + */ + String getOS_EXT_STS_task_state(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_STS_task_state OS EXT STS task state}' attribute. + * + * + * @param value the new value of the 'OS EXT STS task state' attribute. + * @see #getOS_EXT_STS_task_state() + * @generated + */ + void setOS_EXT_STS_task_state(String value); + + /** + * Returns the value of the 'OS EXT SRV ATTR host' attribute. + * + *+ * If the meaning of the 'OS EXT SRV ATTR host' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS EXT SRV ATTR host' attribute. + * @see #setOS_EXT_SRV_ATTR_host(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_SRV_ATTR_host() + * @model unique="false" + * @generated + */ + String getOS_EXT_SRV_ATTR_host(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_host OS EXT SRV ATTR host}' attribute. + * + * + * @param value the new value of the 'OS EXT SRV ATTR host' attribute. + * @see #getOS_EXT_SRV_ATTR_host() + * @generated + */ + void setOS_EXT_SRV_ATTR_host(String value); + + /** + * Returns the value of the 'OS EXT SRV ATTR instance name' attribute. + * + *+ * If the meaning of the 'OS EXT SRV ATTR instance name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS EXT SRV ATTR instance name' attribute. + * @see #setOS_EXT_SRV_ATTR_instance_name(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_SRV_ATTR_instance_name() + * @model unique="false" + * @generated + */ + String getOS_EXT_SRV_ATTR_instance_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_instance_name OS EXT SRV ATTR instance name}' attribute. + * + * + * @param value the new value of the 'OS EXT SRV ATTR instance name' attribute. + * @see #getOS_EXT_SRV_ATTR_instance_name() + * @generated + */ + void setOS_EXT_SRV_ATTR_instance_name(String value); + + /** + * Returns the value of the 'OS EXT SRV ATTR hypervisor hostname' attribute. + * + *+ * If the meaning of the 'OS EXT SRV ATTR hypervisor hostname' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS EXT SRV ATTR hypervisor hostname' attribute. + * @see #setOS_EXT_SRV_ATTR_hypervisor_hostname(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_EXT_SRV_ATTR_hypervisor_hostname() + * @model unique="false" + * @generated + */ + String getOS_EXT_SRV_ATTR_hypervisor_hostname(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_EXT_SRV_ATTR_hypervisor_hostname OS EXT SRV ATTR hypervisor hostname}' attribute. + * + * + * @param value the new value of the 'OS EXT SRV ATTR hypervisor hostname' attribute. + * @see #getOS_EXT_SRV_ATTR_hypervisor_hostname() + * @generated + */ + void setOS_EXT_SRV_ATTR_hypervisor_hostname(String value); + + /** + * Returns the value of the 'OS SRV USG launched at' attribute. + * + *+ * If the meaning of the 'OS SRV USG launched at' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS SRV USG launched at' attribute. + * @see #setOS_SRV_USG_launched_at(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_SRV_USG_launched_at() + * @model unique="false" + * @generated + */ + String getOS_SRV_USG_launched_at(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_launched_at OS SRV USG launched at}' attribute. + * + * + * @param value the new value of the 'OS SRV USG launched at' attribute. + * @see #getOS_SRV_USG_launched_at() + * @generated + */ + void setOS_SRV_USG_launched_at(String value); + + /** + * Returns the value of the 'OS SRV USG terminated at' attribute. + * + *+ * If the meaning of the 'OS SRV USG terminated at' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'OS SRV USG terminated at' attribute. + * @see #setOS_SRV_USG_terminated_at(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_OS_SRV_USG_terminated_at() + * @model unique="false" + * @generated + */ + String getOS_SRV_USG_terminated_at(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getOS_SRV_USG_terminated_at OS SRV USG terminated at}' attribute. + * + * + * @param value the new value of the 'OS SRV USG terminated at' attribute. + * @see #getOS_SRV_USG_terminated_at() + * @generated + */ + void setOS_SRV_USG_terminated_at(String value); + + /** + * Returns the value of the 'Image' containment reference. + * + *+ * If the meaning of the 'Image' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Image' containment reference. + * @see #setImage(Reference) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Image() + * @model containment="true" + * @generated + */ + Reference getImage(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getImage Image}' containment reference. + * + * + * @param value the new value of the 'Image' containment reference. + * @see #getImage() + * @generated + */ + void setImage(Reference value); + + /** + * Returns the value of the 'Flavor' containment reference. + * + *+ * If the meaning of the 'Flavor' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Flavor' containment reference. + * @see #setFlavor(Reference) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Flavor() + * @model containment="true" + * @generated + */ + Reference getFlavor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getFlavor Flavor}' containment reference. + * + * + * @param value the new value of the 'Flavor' containment reference. + * @see #getFlavor() + * @generated + */ + void setFlavor(Reference value); + + /** + * Returns the value of the 'Addresses' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Addresses}. + * + *+ * If the meaning of the 'Addresses' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Addresses' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Addresses() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Security groups' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Security groups' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Security_groups() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Metadata' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Metadata' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Metadata() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Links' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + + /** + * Returns the value of the 'Fault' containment reference. + * + *+ * If the meaning of the 'Fault' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Fault' containment reference. + * @see #setFault(Fault) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getServer_Fault() + * @model containment="true" + * @generated + */ + Fault getFault(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Server#getFault Fault}' containment reference. + * + * + * @param value the new value of the 'Fault' containment reference. + * @see #getFault() + * @generated + */ + void setFault(Fault value); + +} // Server diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Volume.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Volume.java new file mode 100644 index 0000000..0f89f5d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/Volume.java @@ -0,0 +1,323 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.openecomp.ncomp.core.NamedEntity; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Volume'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Display name' attribute. + * + *+ * If the meaning of the 'Display name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Display name' attribute. + * @see #setDisplay_name(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Display_name() + * @model unique="false" + * @generated + */ + String getDisplay_name(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getDisplay_name Display name}' attribute. + * + * + * @param value the new value of the 'Display name' attribute. + * @see #getDisplay_name() + * @generated + */ + void setDisplay_name(String value); + + /** + * Returns the value of the 'Attachments' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.VolumeAttachment}. + * + *+ * If the meaning of the 'Attachments' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Attachments' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Attachments() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Availability zone' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Availability zone' attribute. + * @see #setAvailability_zone(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Availability_zone() + * @model unique="false" + * @generated + */ + String getAvailability_zone(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getAvailability_zone Availability zone}' attribute. + * + * + * @param value the new value of the 'Availability zone' attribute. + * @see #getAvailability_zone() + * @generated + */ + void setAvailability_zone(String value); + + /** + * Returns the value of the 'Created at' attribute. + * + *+ * If the meaning of the 'Created at' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Created at' attribute. + * @see #setCreated_at(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Created_at() + * @model unique="false" + * @generated + */ + String getCreated_at(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getCreated_at Created at}' attribute. + * + * + * @param value the new value of the 'Created at' attribute. + * @see #getCreated_at() + * @generated + */ + void setCreated_at(String value); + + /** + * Returns the value of the 'Volume type' attribute. + * + *+ * If the meaning of the 'Volume type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Volume type' attribute. + * @see #setVolume_type(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Volume_type() + * @model unique="false" + * @generated + */ + String getVolume_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getVolume_type Volume type}' attribute. + * + * + * @param value the new value of the 'Volume type' attribute. + * @see #getVolume_type() + * @generated + */ + void setVolume_type(String value); + + /** + * Returns the value of the 'Metadata' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Metadata}. + * + *+ * If the meaning of the 'Metadata' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Metadata' containment reference list. + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Metadata() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Size' attribute. + * + *+ * If the meaning of the 'Size' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Size' attribute. + * @see #setSize(int) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Size() + * @model unique="false" + * @generated + */ + int getSize(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getSize Size}' attribute. + * + * + * @param value the new value of the 'Size' attribute. + * @see #getSize() + * @generated + */ + void setSize(int value); + + /** + * Returns the value of the 'Snapshot id' attribute. + * + *+ * If the meaning of the 'Snapshot id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Snapshot id' attribute. + * @see #setSnapshot_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Snapshot_id() + * @model unique="false" + * @generated + */ + String getSnapshot_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getSnapshot_id Snapshot id}' attribute. + * + * + * @param value the new value of the 'Snapshot id' attribute. + * @see #getSnapshot_id() + * @generated + */ + void setSnapshot_id(String value); + + /** + * Returns the value of the 'Display description' attribute. + * + *+ * If the meaning of the 'Display description' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Display description' attribute. + * @see #setDisplay_description(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolume_Display_description() + * @model unique="false" + * @generated + */ + String getDisplay_description(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.Volume#getDisplay_description Display description}' attribute. + * + * + * @param value the new value of the 'Display description' attribute. + * @see #getDisplay_description() + * @generated + */ + void setDisplay_description(String value); + +} // Volume diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/VolumeAttachment.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/VolumeAttachment.java new file mode 100644 index 0000000..862b337 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/VolumeAttachment.java @@ -0,0 +1,152 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Volume Attachment'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Device' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Device' attribute. + * @see #setDevice(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolumeAttachment_Device() + * @model unique="false" + * @generated + */ + String getDevice(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getDevice Device}' attribute. + * + * + * @param value the new value of the 'Device' attribute. + * @see #getDevice() + * @generated + */ + void setDevice(String value); + + /** + * Returns the value of the 'Server id' attribute. + * + *+ * If the meaning of the 'Server id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Server id' attribute. + * @see #setServer_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolumeAttachment_Server_id() + * @model unique="false" + * @generated + */ + String getServer_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getServer_id Server id}' attribute. + * + * + * @param value the new value of the 'Server id' attribute. + * @see #getServer_id() + * @generated + */ + void setServer_id(String value); + + /** + * Returns the value of the 'Id' attribute. + * + *+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolumeAttachment_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Volume id' attribute. + * + *+ * If the meaning of the 'Volume id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Volume id' attribute. + * @see #setVolume_id(String) + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#getVolumeAttachment_Volume_id() + * @model unique="false" + * @generated + */ + String getVolume_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment#getVolume_id Volume id}' attribute. + * + * + * @param value the new value of the 'Volume id' attribute. + * @see #getVolume_id() + * @generated + */ + void setVolume_id(String value); + +} // VolumeAttachment diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java new file mode 100644 index 0000000..23c7319 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java @@ -0,0 +1,346 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.Address; +import org.openecomp.ncomp.openstack.compute.ComputePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Address'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#eNS_URI + * @see #init() + * @generated + */ + private ComputePackageImpl() { + super(eNS_URI, ComputeFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link ComputePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ComputePackage init() { + if (isInited) return (ComputePackage)EPackage.Registry.INSTANCE.getEPackage(ComputePackage.eNS_URI); + + // Obtain or create and register package + ComputePackageImpl theComputePackage = (ComputePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ComputePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ComputePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theComputePackage.createPackageContents(); + + // Initialize created meta-data + theComputePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theComputePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ComputePackage.eNS_URI, theComputePackage); + return theComputePackage; + } + + /** + * + * + * @generated + */ + public EClass getComputeService() { + return computeServiceEClass; + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__CreateServer__OpenstackRequestNewServer() { + return computeServiceEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__DeleteServer__String_String() { + return computeServiceEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__CreateKeyPair__OpenstackRequestKeyPair() { + return computeServiceEClass.getEOperations().get(2); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__Delete__OpenstackRequestDelete() { + return computeServiceEClass.getEOperations().get(3); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__CreateFlavor__OpenstackRequestFlavor() { + return computeServiceEClass.getEOperations().get(4); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__CreateSecurityGroup__OpenstackRequestSecurityGroup() { + return computeServiceEClass.getEOperations().get(5); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__ServerAction__OpenstackRequestServerAction() { + return computeServiceEClass.getEOperations().get(6); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__DeployVmType__String_String() { + return computeServiceEClass.getEOperations().get(7); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__UndeployVmType__String_String() { + return computeServiceEClass.getEOperations().get(8); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__DeployUser__User_String() { + return computeServiceEClass.getEOperations().get(9); + } + + /** + * + * + * @generated + */ + public EOperation getComputeService__UndeployUser__User_String() { + return computeServiceEClass.getEOperations().get(10); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestNewServer() { + return openstackRequestNewServerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Name() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Hypervisor() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_User() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Networks() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Ports() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_User_data() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestNewServer_FloatingIp() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getOpenstackRequestNewServer_VmType() { + return (EReference)openstackRequestNewServerEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestKeyPair() { + return openstackRequestKeyPairEClass; + } + + /** + * + * + * @generated + */ + public EReference getOpenstackRequestKeyPair_User() { + return (EReference)openstackRequestKeyPairEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestFlavor() { + return openstackRequestFlavorEClass; + } + + /** + * + * + * @generated + */ + public EReference getOpenstackRequestFlavor_VmType() { + return (EReference)openstackRequestFlavorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestSecurityGroup() { + return openstackRequestSecurityGroupEClass; + } + + /** + * + * + * @generated + */ + public EReference getOpenstackRequestSecurityGroup_VmType() { + return (EReference)openstackRequestSecurityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestServerAction() { + return openstackRequestServerActionEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestServerAction_Name() { + return (EAttribute)openstackRequestServerActionEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestServerAction_Action() { + return (EAttribute)openstackRequestServerActionEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestPoll() { + return openstackRequestPollEClass; + } + + /** + * + * + * @generated + */ + public EClass getServer() { + return serverEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Id() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Tenant_id() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_User_id() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Name() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Updated() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Created() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_HostId() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_AccessIPv4() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_AccessIPv6() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Status() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Config_drive() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Key_name() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_Progress() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_DCF_diskConfig() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_STS_power_state() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_STS_vm_state() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_STS_task_state() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_SRV_ATTR_host() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_SRV_ATTR_instance_name() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(18); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_EXT_SRV_ATTR_hypervisor_hostname() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(19); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_SRV_USG_launched_at() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(20); + } + + /** + * + * + * @generated + */ + public EAttribute getServer_OS_SRV_USG_terminated_at() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(21); + } + + /** + * + * + * @generated + */ + public EReference getServer_Image() { + return (EReference)serverEClass.getEStructuralFeatures().get(22); + } + + /** + * + * + * @generated + */ + public EReference getServer_Flavor() { + return (EReference)serverEClass.getEStructuralFeatures().get(23); + } + + /** + * + * + * @generated + */ + public EReference getServer_Addresses() { + return (EReference)serverEClass.getEStructuralFeatures().get(24); + } + + /** + * + * + * @generated + */ + public EReference getServer_Security_groups() { + return (EReference)serverEClass.getEStructuralFeatures().get(25); + } + + /** + * + * + * @generated + */ + public EReference getServer_Metadata() { + return (EReference)serverEClass.getEStructuralFeatures().get(26); + } + + /** + * + * + * @generated + */ + public EReference getServer_Links() { + return (EReference)serverEClass.getEStructuralFeatures().get(27); + } + + /** + * + * + * @generated + */ + public EReference getServer_Fault() { + return (EReference)serverEClass.getEStructuralFeatures().get(28); + } + + /** + * + * + * @generated + */ + public EClass getImage() { + return imageEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Id() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Name() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Updated() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Created() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Tenant_id() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_User_id() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Status() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_Progress() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_MinDisk() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_MinRam() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getImage_OS_EXT_IMG_SIZE_size() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getImage_Server() { + return (EReference)imageEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EReference getImage_Links() { + return (EReference)imageEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EReference getImage_Metadata() { + return (EReference)imageEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EClass getFlavor() { + return flavorEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Id() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Name() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Ram() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Disk() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Vcpus() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Swap() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Rxtx_factor() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_OS_FLV_EXT_DATA_ephemeral() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_OS_FLV_DISABLED_disabled() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getFlavor_Os_flavor_access_is_public() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getFlavor_Links() { + return (EReference)flavorEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EClass getAddresses() { + return addressesEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAddresses_Name() { + return (EAttribute)addressesEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getAddresses_Ips() { + return (EReference)addressesEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getAddress() { + return addressEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAddress_Version() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getAddress_Addr() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getAddress_OS_EXT_IPS_MAC_mac_addr() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getAddress_OS_EXT_IPS_type() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getLink() { + return linkEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Rel() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Href() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Type() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getMetadata() { + return metadataEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMetadata_Key() { + return (EAttribute)metadataEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getMetadata_Value() { + return (EAttribute)metadataEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFault() { + return faultEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFault_Message() { + return (EAttribute)faultEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFault_Created() { + return (EAttribute)faultEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getFault_Code() { + return (EAttribute)faultEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getPersonality() { + return personalityEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPersonality_Path() { + return (EAttribute)personalityEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPersonality_Contents() { + return (EAttribute)personalityEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getReference() { + return referenceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getReference_Id() { + return (EAttribute)referenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getReference_Links() { + return (EReference)referenceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getVolume() { + return volumeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Status() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Display_name() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getVolume_Attachments() { + return (EReference)volumeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Availability_zone() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Created_at() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Volume_type() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getVolume_Metadata() { + return (EReference)volumeEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Id() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Size() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Snapshot_id() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getVolume_Display_description() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EClass getVolumeAttachment() { + return volumeAttachmentEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVolumeAttachment_Device() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVolumeAttachment_Server_id() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getVolumeAttachment_Id() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getVolumeAttachment_Volume_id() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getFloatingIp() { + return floatingIpEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Instance_id() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Ip() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Fixed_ip() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Id() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getFloatingIp_Pool() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getSecurityGroup() { + return securityGroupEClass; + } + + /** + * + * + * @generated + */ + public EReference getSecurityGroup_Rules() { + return (EReference)securityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityGroup_Tenant_id() { + return (EAttribute)securityGroupEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityGroup_Id() { + return (EAttribute)securityGroupEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityGroup_Description() { + return (EAttribute)securityGroupEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getSecurityRule() { + return securityRuleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_From_port() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getSecurityRule_Group() { + return (EReference)securityRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_Ip_protocol() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_To_port() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_Parent_group_id() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSecurityRule_Ip_range() { + return (EReference)securityRuleEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_Id() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EClass getSecurityRange() { + return securityRangeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRange_Cidr() { + return (EAttribute)securityRangeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getKeyPair() { + return keyPairEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getKeyPair_Public_key() { + return (EAttribute)keyPairEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getKeyPair_Name() { + return (EAttribute)keyPairEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getKeyPair_Fingerprint() { + return (EAttribute)keyPairEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public ComputeFactory getComputeFactory() { + return (ComputeFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + computeServiceEClass = createEClass(COMPUTE_SERVICE); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DELETE_SERVER__STRING_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DELETE__OPENSTACKREQUESTDELETE); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DEPLOY_VM_TYPE__STRING_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___UNDEPLOY_VM_TYPE__STRING_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DEPLOY_USER__USER_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___UNDEPLOY_USER__USER_STRING); + + openstackRequestNewServerEClass = createEClass(OPENSTACK_REQUEST_NEW_SERVER); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__NAME); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__USER); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__NETWORKS); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__PORTS); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__USER_DATA); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP); + createEReference(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE); + + openstackRequestKeyPairEClass = createEClass(OPENSTACK_REQUEST_KEY_PAIR); + createEReference(openstackRequestKeyPairEClass, OPENSTACK_REQUEST_KEY_PAIR__USER); + + openstackRequestFlavorEClass = createEClass(OPENSTACK_REQUEST_FLAVOR); + createEReference(openstackRequestFlavorEClass, OPENSTACK_REQUEST_FLAVOR__VM_TYPE); + + openstackRequestSecurityGroupEClass = createEClass(OPENSTACK_REQUEST_SECURITY_GROUP); + createEReference(openstackRequestSecurityGroupEClass, OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE); + + openstackRequestServerActionEClass = createEClass(OPENSTACK_REQUEST_SERVER_ACTION); + createEAttribute(openstackRequestServerActionEClass, OPENSTACK_REQUEST_SERVER_ACTION__NAME); + createEAttribute(openstackRequestServerActionEClass, OPENSTACK_REQUEST_SERVER_ACTION__ACTION); + + openstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL); + + serverEClass = createEClass(SERVER); + createEAttribute(serverEClass, SERVER__ID); + createEAttribute(serverEClass, SERVER__TENANT_ID); + createEAttribute(serverEClass, SERVER__USER_ID); + createEAttribute(serverEClass, SERVER__NAME); + createEAttribute(serverEClass, SERVER__UPDATED); + createEAttribute(serverEClass, SERVER__CREATED); + createEAttribute(serverEClass, SERVER__HOST_ID); + createEAttribute(serverEClass, SERVER__ACCESS_IPV4); + createEAttribute(serverEClass, SERVER__ACCESS_IPV6); + createEAttribute(serverEClass, SERVER__STATUS); + createEAttribute(serverEClass, SERVER__CONFIG_DRIVE); + createEAttribute(serverEClass, SERVER__KEY_NAME); + createEAttribute(serverEClass, SERVER__PROGRESS); + createEAttribute(serverEClass, SERVER__OS_DCF_DISK_CONFIG); + createEAttribute(serverEClass, SERVER__OS_EXT_STS_POWER_STATE); + createEAttribute(serverEClass, SERVER__OS_EXT_STS_VM_STATE); + createEAttribute(serverEClass, SERVER__OS_EXT_STS_TASK_STATE); + createEAttribute(serverEClass, SERVER__OS_EXT_SRV_ATTR_HOST); + createEAttribute(serverEClass, SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME); + createEAttribute(serverEClass, SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME); + createEAttribute(serverEClass, SERVER__OS_SRV_USG_LAUNCHED_AT); + createEAttribute(serverEClass, SERVER__OS_SRV_USG_TERMINATED_AT); + createEReference(serverEClass, SERVER__IMAGE); + createEReference(serverEClass, SERVER__FLAVOR); + createEReference(serverEClass, SERVER__ADDRESSES); + createEReference(serverEClass, SERVER__SECURITY_GROUPS); + createEReference(serverEClass, SERVER__METADATA); + createEReference(serverEClass, SERVER__LINKS); + createEReference(serverEClass, SERVER__FAULT); + + imageEClass = createEClass(IMAGE); + createEAttribute(imageEClass, IMAGE__ID); + createEAttribute(imageEClass, IMAGE__NAME); + createEAttribute(imageEClass, IMAGE__UPDATED); + createEAttribute(imageEClass, IMAGE__CREATED); + createEAttribute(imageEClass, IMAGE__TENANT_ID); + createEAttribute(imageEClass, IMAGE__USER_ID); + createEAttribute(imageEClass, IMAGE__STATUS); + createEAttribute(imageEClass, IMAGE__PROGRESS); + createEAttribute(imageEClass, IMAGE__MIN_DISK); + createEAttribute(imageEClass, IMAGE__MIN_RAM); + createEAttribute(imageEClass, IMAGE__OS_EXT_IMG_SIZE_SIZE); + createEReference(imageEClass, IMAGE__SERVER); + createEReference(imageEClass, IMAGE__LINKS); + createEReference(imageEClass, IMAGE__METADATA); + + flavorEClass = createEClass(FLAVOR); + createEAttribute(flavorEClass, FLAVOR__ID); + createEAttribute(flavorEClass, FLAVOR__NAME); + createEAttribute(flavorEClass, FLAVOR__RAM); + createEAttribute(flavorEClass, FLAVOR__DISK); + createEAttribute(flavorEClass, FLAVOR__VCPUS); + createEAttribute(flavorEClass, FLAVOR__SWAP); + createEAttribute(flavorEClass, FLAVOR__RXTX_FACTOR); + createEAttribute(flavorEClass, FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL); + createEAttribute(flavorEClass, FLAVOR__OS_FLV_DISABLED_DISABLED); + createEAttribute(flavorEClass, FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC); + createEReference(flavorEClass, FLAVOR__LINKS); + + addressesEClass = createEClass(ADDRESSES); + createEAttribute(addressesEClass, ADDRESSES__NAME); + createEReference(addressesEClass, ADDRESSES__IPS); + + addressEClass = createEClass(ADDRESS); + createEAttribute(addressEClass, ADDRESS__VERSION); + createEAttribute(addressEClass, ADDRESS__ADDR); + createEAttribute(addressEClass, ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR); + createEAttribute(addressEClass, ADDRESS__OS_EXT_IPS_TYPE); + + linkEClass = createEClass(LINK); + createEAttribute(linkEClass, LINK__REL); + createEAttribute(linkEClass, LINK__HREF); + createEAttribute(linkEClass, LINK__TYPE); + + metadataEClass = createEClass(METADATA); + createEAttribute(metadataEClass, METADATA__KEY); + createEAttribute(metadataEClass, METADATA__VALUE); + + faultEClass = createEClass(FAULT); + createEAttribute(faultEClass, FAULT__MESSAGE); + createEAttribute(faultEClass, FAULT__CREATED); + createEAttribute(faultEClass, FAULT__CODE); + + personalityEClass = createEClass(PERSONALITY); + createEAttribute(personalityEClass, PERSONALITY__PATH); + createEAttribute(personalityEClass, PERSONALITY__CONTENTS); + + referenceEClass = createEClass(REFERENCE); + createEAttribute(referenceEClass, REFERENCE__ID); + createEReference(referenceEClass, REFERENCE__LINKS); + + volumeEClass = createEClass(VOLUME); + createEAttribute(volumeEClass, VOLUME__STATUS); + createEAttribute(volumeEClass, VOLUME__DISPLAY_NAME); + createEReference(volumeEClass, VOLUME__ATTACHMENTS); + createEAttribute(volumeEClass, VOLUME__AVAILABILITY_ZONE); + createEAttribute(volumeEClass, VOLUME__CREATED_AT); + createEAttribute(volumeEClass, VOLUME__VOLUME_TYPE); + createEReference(volumeEClass, VOLUME__METADATA); + createEAttribute(volumeEClass, VOLUME__ID); + createEAttribute(volumeEClass, VOLUME__SIZE); + createEAttribute(volumeEClass, VOLUME__SNAPSHOT_ID); + createEAttribute(volumeEClass, VOLUME__DISPLAY_DESCRIPTION); + + volumeAttachmentEClass = createEClass(VOLUME_ATTACHMENT); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__DEVICE); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__SERVER_ID); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__ID); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__VOLUME_ID); + + floatingIpEClass = createEClass(FLOATING_IP); + createEAttribute(floatingIpEClass, FLOATING_IP__INSTANCE_ID); + createEAttribute(floatingIpEClass, FLOATING_IP__IP); + createEAttribute(floatingIpEClass, FLOATING_IP__FIXED_IP); + createEAttribute(floatingIpEClass, FLOATING_IP__ID); + createEAttribute(floatingIpEClass, FLOATING_IP__POOL); + + securityGroupEClass = createEClass(SECURITY_GROUP); + createEReference(securityGroupEClass, SECURITY_GROUP__RULES); + createEAttribute(securityGroupEClass, SECURITY_GROUP__TENANT_ID); + createEAttribute(securityGroupEClass, SECURITY_GROUP__ID); + createEAttribute(securityGroupEClass, SECURITY_GROUP__DESCRIPTION); + + securityRuleEClass = createEClass(SECURITY_RULE); + createEAttribute(securityRuleEClass, SECURITY_RULE__FROM_PORT); + createEReference(securityRuleEClass, SECURITY_RULE__GROUP); + createEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL); + createEAttribute(securityRuleEClass, SECURITY_RULE__TO_PORT); + createEAttribute(securityRuleEClass, SECURITY_RULE__PARENT_GROUP_ID); + createEReference(securityRuleEClass, SECURITY_RULE__IP_RANGE); + createEAttribute(securityRuleEClass, SECURITY_RULE__ID); + + securityRangeEClass = createEClass(SECURITY_RANGE); + createEAttribute(securityRangeEClass, SECURITY_RANGE__CIDR); + + keyPairEClass = createEClass(KEY_PAIR); + createEAttribute(keyPairEClass, KEY_PAIR__PUBLIC_KEY); + createEAttribute(keyPairEClass, KEY_PAIR__NAME); + createEAttribute(keyPairEClass, KEY_PAIR__FINGERPRINT); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + openstackRequestNewServerEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestKeyPairEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestFlavorEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestSecurityGroupEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestServerActionEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestPollEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + volumeEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + securityGroupEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(computeServiceEClass, ComputeService.class, "ComputeService", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + EOperation op = initEOperation(getComputeService__CreateServer__OpenstackRequestNewServer(), null, "createServer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestNewServer(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__DeleteServer__String_String(), null, "deleteServer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__CreateKeyPair__OpenstackRequestKeyPair(), null, "createKeyPair", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestKeyPair(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__Delete__OpenstackRequestDelete(), null, "delete", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getOpenstackRequestDelete(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__CreateFlavor__OpenstackRequestFlavor(), null, "createFlavor", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestFlavor(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__CreateSecurityGroup__OpenstackRequestSecurityGroup(), null, "createSecurityGroup", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestSecurityGroup(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__ServerAction__OpenstackRequestServerAction(), null, "serverAction", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestServerAction(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__DeployVmType__String_String(), null, "deployVmType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vmTypeName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__UndeployVmType__String_String(), null, "undeployVmType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vmTypeName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__DeployUser__User_String(), null, "deployUser", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage_1.getUser(), "user", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__UndeployUser__User_String(), null, "undeployUser", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage_1.getUser(), "user", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(openstackRequestNewServerEClass, OpenstackRequestNewServer.class, "OpenstackRequestNewServer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenstackRequestNewServer_Name(), theEcorePackage.getEString(), "name", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_Hypervisor(), theEcorePackage.getEString(), "hypervisor", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_User(), theEcorePackage.getEString(), "user", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_Networks(), theEcorePackage.getEString(), "networks", null, 0, -1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_Ports(), theEcorePackage.getEString(), "ports", null, 0, -1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_User_data(), theEcorePackage.getEString(), "user_data", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_FloatingIp(), theEcorePackage.getEString(), "floatingIp", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenstackRequestNewServer_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestKeyPairEClass, OpenstackRequestKeyPair.class, "OpenstackRequestKeyPair", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenstackRequestKeyPair_User(), theCorePackage_1.getUser(), null, "user", null, 0, 1, OpenstackRequestKeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestFlavorEClass, OpenstackRequestFlavor.class, "OpenstackRequestFlavor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenstackRequestFlavor_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, OpenstackRequestFlavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestSecurityGroupEClass, OpenstackRequestSecurityGroup.class, "OpenstackRequestSecurityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenstackRequestSecurityGroup_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, OpenstackRequestSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestServerActionEClass, OpenstackRequestServerAction.class, "OpenstackRequestServerAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenstackRequestServerAction_Name(), theEcorePackage.getEString(), "name", null, 0, 1, OpenstackRequestServerAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestServerAction_Action(), theEcorePackage.getEString(), "action", null, 0, 1, OpenstackRequestServerAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestPollEClass, OpenstackRequestPoll.class, "OpenstackRequestPoll", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(serverEClass, Server.class, "Server", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getServer_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Updated(), theEcorePackage.getEString(), "updated", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Created(), theEcorePackage.getEString(), "created", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_HostId(), theEcorePackage.getEString(), "hostId", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_AccessIPv4(), theEcorePackage.getEString(), "accessIPv4", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_AccessIPv6(), theEcorePackage.getEString(), "accessIPv6", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Config_drive(), theEcorePackage.getEString(), "config_drive", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Key_name(), theEcorePackage.getEString(), "key_name", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Progress(), theEcorePackage.getEInt(), "progress", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_DCF_diskConfig(), theEcorePackage.getEString(), "OS_DCF_diskConfig", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_STS_power_state(), theEcorePackage.getEInt(), "OS_EXT_STS_power_state", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_STS_vm_state(), theEcorePackage.getEString(), "OS_EXT_STS_vm_state", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_STS_task_state(), theEcorePackage.getEString(), "OS_EXT_STS_task_state", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_SRV_ATTR_host(), theEcorePackage.getEString(), "OS_EXT_SRV_ATTR_host", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_SRV_ATTR_instance_name(), theEcorePackage.getEString(), "OS_EXT_SRV_ATTR_instance_name", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_SRV_ATTR_hypervisor_hostname(), theEcorePackage.getEString(), "OS_EXT_SRV_ATTR_hypervisor_hostname", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_SRV_USG_launched_at(), theEcorePackage.getEString(), "OS_SRV_USG_launched_at", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_SRV_USG_terminated_at(), theEcorePackage.getEString(), "OS_SRV_USG_terminated_at", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Image(), this.getReference(), null, "image", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Flavor(), this.getReference(), null, "flavor", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Addresses(), this.getAddresses(), null, "addresses", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Security_groups(), this.getSecurityGroup(), null, "security_groups", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Links(), this.getLink(), null, "links", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Fault(), this.getFault(), null, "fault", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(imageEClass, Image.class, "Image", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getImage_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Updated(), theEcorePackage.getEString(), "updated", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Created(), theEcorePackage.getEString(), "created", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Progress(), theEcorePackage.getELongObject(), "progress", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_MinDisk(), theEcorePackage.getELongObject(), "minDisk", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_MinRam(), theEcorePackage.getELongObject(), "minRam", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_OS_EXT_IMG_SIZE_size(), theEcorePackage.getELongObject(), "OS_EXT_IMG_SIZE_size", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImage_Server(), this.getReference(), null, "server", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImage_Links(), this.getLink(), null, "links", null, 0, -1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImage_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(flavorEClass, Flavor.class, "Flavor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFlavor_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Ram(), theEcorePackage.getEInt(), "ram", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Disk(), theEcorePackage.getEInt(), "disk", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Vcpus(), theEcorePackage.getEInt(), "vcpus", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Swap(), theEcorePackage.getEString(), "swap", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Rxtx_factor(), theEcorePackage.getEDouble(), "rxtx_factor", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_OS_FLV_EXT_DATA_ephemeral(), theEcorePackage.getEInt(), "OS_FLV_EXT_DATA_ephemeral", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_OS_FLV_DISABLED_disabled(), theEcorePackage.getEBoolean(), "OS_FLV_DISABLED_disabled", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Os_flavor_access_is_public(), theEcorePackage.getEBoolean(), "os_flavor_access_is_public", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFlavor_Links(), this.getLink(), null, "links", null, 0, -1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(addressesEClass, Addresses.class, "Addresses", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAddresses_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Addresses.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAddresses_Ips(), this.getAddress(), null, "ips", null, 0, -1, Addresses.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAddress_Version(), theEcorePackage.getEInt(), "version", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddress_Addr(), theEcorePackage.getEString(), "addr", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddress_OS_EXT_IPS_MAC_mac_addr(), theEcorePackage.getEString(), "OS_EXT_IPS_MAC_mac_addr", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddress_OS_EXT_IPS_type(), theEcorePackage.getEString(), "OS_EXT_IPS_type", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(linkEClass, Link.class, "Link", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLink_Rel(), theEcorePackage.getEString(), "rel", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLink_Href(), theEcorePackage.getEString(), "href", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLink_Type(), theEcorePackage.getEString(), "type", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metadataEClass, Metadata.class, "Metadata", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMetadata_Key(), theEcorePackage.getEString(), "key", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMetadata_Value(), theEcorePackage.getEString(), "value", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(faultEClass, Fault.class, "Fault", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFault_Message(), theEcorePackage.getEString(), "message", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFault_Created(), theEcorePackage.getEString(), "created", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFault_Code(), theEcorePackage.getEInt(), "code", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(personalityEClass, Personality.class, "Personality", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPersonality_Path(), theEcorePackage.getEString(), "path", null, 0, 1, Personality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPersonality_Contents(), theEcorePackage.getEString(), "contents", null, 0, 1, Personality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(referenceEClass, Reference.class, "Reference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getReference_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getReference_Links(), this.getLink(), null, "links", null, 0, -1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(volumeEClass, Volume.class, "Volume", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVolume_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Display_name(), theEcorePackage.getEString(), "display_name", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVolume_Attachments(), this.getVolumeAttachment(), null, "attachments", null, 0, -1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Availability_zone(), theEcorePackage.getEString(), "availability_zone", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Created_at(), theEcorePackage.getEString(), "created_at", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Volume_type(), theEcorePackage.getEString(), "volume_type", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVolume_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Size(), theEcorePackage.getEInt(), "size", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Snapshot_id(), theEcorePackage.getEString(), "snapshot_id", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Display_description(), theEcorePackage.getEString(), "display_description", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(volumeAttachmentEClass, VolumeAttachment.class, "VolumeAttachment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVolumeAttachment_Device(), theEcorePackage.getEString(), "device", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolumeAttachment_Server_id(), theEcorePackage.getEString(), "server_id", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolumeAttachment_Id(), theEcorePackage.getEString(), "id", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolumeAttachment_Volume_id(), theEcorePackage.getEString(), "volume_id", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(floatingIpEClass, FloatingIp.class, "FloatingIp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFloatingIp_Instance_id(), theEcorePackage.getEString(), "instance_id", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Ip(), theEcorePackage.getEString(), "ip", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Fixed_ip(), theEcorePackage.getEString(), "fixed_ip", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Id(), theEcorePackage.getEString(), "id", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Pool(), theEcorePackage.getEString(), "pool", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityGroupEClass, SecurityGroup.class, "SecurityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSecurityGroup_Rules(), this.getSecurityRule(), null, "rules", null, 0, -1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityGroup_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityGroup_Id(), theEcorePackage.getEString(), "id", null, 0, 1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityGroup_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityRuleEClass, SecurityRule.class, "SecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSecurityRule_From_port(), theEcorePackage.getEIntegerObject(), "from_port", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSecurityRule_Group(), this.getSecurityGroup(), null, "group", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Ip_protocol(), theEcorePackage.getEString(), "ip_protocol", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_To_port(), theEcorePackage.getEIntegerObject(), "to_port", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Parent_group_id(), theEcorePackage.getEString(), "parent_group_id", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSecurityRule_Ip_range(), this.getSecurityRange(), null, "ip_range", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Id(), theEcorePackage.getEString(), "id", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityRangeEClass, SecurityRange.class, "SecurityRange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSecurityRange_Cidr(), theEcorePackage.getEString(), "cidr", null, 0, 1, SecurityRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(keyPairEClass, KeyPair.class, "KeyPair", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getKeyPair_Public_key(), theEcorePackage.getEString(), "public_key", null, 0, 1, KeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getKeyPair_Name(), theEcorePackage.getEString(), "name", null, 0, 1, KeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getKeyPair_Fingerprint(), theEcorePackage.getEString(), "fingerprint", null, 0, 1, KeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //ComputePackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java new file mode 100644 index 0000000..3e3a4b4 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java @@ -0,0 +1,235 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.ComputeService; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction; +import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete; +import java.lang.reflect.InvocationTargetException; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Service'. + * + *
+ *
+ * + * @generated + */ +public abstract class ComputeServiceImpl extends MinimalEObjectImpl.Container implements ComputeService { + /** + * + * + * @generated + */ + protected ComputeServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.COMPUTE_SERVICE; + } + + /** + * + * + * @generated + */ + public void createServer(OpenstackRequestNewServer request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteServer(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createKeyPair(OpenstackRequestKeyPair request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void delete(OpenstackRequestDelete request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createFlavor(OpenstackRequestFlavor request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void createSecurityGroup(OpenstackRequestSecurityGroup request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void serverAction(OpenstackRequestServerAction request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deployVmType(String vmTypeName, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void undeployVmType(String vmTypeName, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deployUser(User user, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void undeployUser(User user, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList> arguments) throws InvocationTargetException { + switch (operationID) { + case ComputePackage.COMPUTE_SERVICE___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER: + createServer((OpenstackRequestNewServer)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___DELETE_SERVER__STRING_STRING: + deleteServer((String)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR: + createKeyPair((OpenstackRequestKeyPair)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___DELETE__OPENSTACKREQUESTDELETE: + delete((OpenstackRequestDelete)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR: + createFlavor((OpenstackRequestFlavor)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP: + createSecurityGroup((OpenstackRequestSecurityGroup)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION: + serverAction((OpenstackRequestServerAction)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___DEPLOY_VM_TYPE__STRING_STRING: + deployVmType((String)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___UNDEPLOY_VM_TYPE__STRING_STRING: + undeployVmType((String)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___DEPLOY_USER__USER_STRING: + deployUser((User)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___UNDEPLOY_USER__USER_STRING: + undeployUser((User)arguments.get(0), (String)arguments.get(1)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //ComputeServiceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java new file mode 100644 index 0000000..1946236 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Fault; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Fault'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public class OpenstackRequestPollImpl extends OpenStackRequestImpl implements OpenstackRequestPoll { + /** + * + * + * @generated + */ + protected OpenstackRequestPollImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_POLL; + } + +} //OpenstackRequestPollImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java new file mode 100644 index 0000000..4e0ba54 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java @@ -0,0 +1,199 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; + +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Openstack Request Security Group'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.openstack.compute.ComputePackage
+ * @generated
+ */
+public class ComputeAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static ComputePackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public ComputeAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = ComputePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected ComputeSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.ComputeService Service}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.ComputeService
+ * @generated
+ */
+ public Adapter createComputeServiceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer Openstack Request New Server}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer
+ * @generated
+ */
+ public Adapter createOpenstackRequestNewServerAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair Openstack Request Key Pair}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair
+ * @generated
+ */
+ public Adapter createOpenstackRequestKeyPairAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor Openstack Request Flavor}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor
+ * @generated
+ */
+ public Adapter createOpenstackRequestFlavorAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup Openstack Request Security Group}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup
+ * @generated
+ */
+ public Adapter createOpenstackRequestSecurityGroupAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction Openstack Request Server Action}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction
+ * @generated
+ */
+ public Adapter createOpenstackRequestServerActionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll Openstack Request Poll}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll
+ * @generated
+ */
+ public Adapter createOpenstackRequestPollAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Server Server}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Server
+ * @generated
+ */
+ public Adapter createServerAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Image Image}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Image
+ * @generated
+ */
+ public Adapter createImageAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Flavor Flavor}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Flavor
+ * @generated
+ */
+ public Adapter createFlavorAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Addresses Addresses}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Addresses
+ * @generated
+ */
+ public Adapter createAddressesAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Address Address}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Address
+ * @generated
+ */
+ public Adapter createAddressAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Link Link}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Link
+ * @generated
+ */
+ public Adapter createLinkAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Metadata Metadata}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Metadata
+ * @generated
+ */
+ public Adapter createMetadataAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Fault Fault}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Fault
+ * @generated
+ */
+ public Adapter createFaultAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Personality Personality}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Personality
+ * @generated
+ */
+ public Adapter createPersonalityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Reference Reference}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Reference
+ * @generated
+ */
+ public Adapter createReferenceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.Volume Volume}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.Volume
+ * @generated
+ */
+ public Adapter createVolumeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.VolumeAttachment Volume Attachment}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.VolumeAttachment
+ * @generated
+ */
+ public Adapter createVolumeAttachmentAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.FloatingIp Floating Ip}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.FloatingIp
+ * @generated
+ */
+ public Adapter createFloatingIpAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.SecurityGroup Security Group}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.SecurityGroup
+ * @generated
+ */
+ public Adapter createSecurityGroupAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.SecurityRule Security Rule}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.SecurityRule
+ * @generated
+ */
+ public Adapter createSecurityRuleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.SecurityRange Security Range}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.SecurityRange
+ * @generated
+ */
+ public Adapter createSecurityRangeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.KeyPair Key Pair}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.KeyPair
+ * @generated
+ */
+ public Adapter createKeyPairAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest Open Stack Request}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.core.OpenStackRequest
+ * @generated
+ */
+ public Adapter createOpenStackRequestAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //ComputeAdapterFactory
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeSwitch.java
new file mode 100644
index 0000000..4eba2cb
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/util/ComputeSwitch.java
@@ -0,0 +1,656 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.compute.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.openstack.compute.*;
+
+import org.openecomp.ncomp.openstack.core.OpenStackRequest;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.openstack.compute.ComputePackage
+ * @generated
+ */
+public class ComputeSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case ComputePackage.COMPUTE_SERVICE: {
+ ComputeService computeService = (ComputeService)theEObject;
+ T result = caseComputeService(computeService);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER: {
+ OpenstackRequestNewServer openstackRequestNewServer = (OpenstackRequestNewServer)theEObject;
+ T result = caseOpenstackRequestNewServer(openstackRequestNewServer);
+ if (result == null) result = caseOpenStackRequest(openstackRequestNewServer);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR: {
+ OpenstackRequestKeyPair openstackRequestKeyPair = (OpenstackRequestKeyPair)theEObject;
+ T result = caseOpenstackRequestKeyPair(openstackRequestKeyPair);
+ if (result == null) result = caseOpenStackRequest(openstackRequestKeyPair);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.OPENSTACK_REQUEST_FLAVOR: {
+ OpenstackRequestFlavor openstackRequestFlavor = (OpenstackRequestFlavor)theEObject;
+ T result = caseOpenstackRequestFlavor(openstackRequestFlavor);
+ if (result == null) result = caseOpenStackRequest(openstackRequestFlavor);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP: {
+ OpenstackRequestSecurityGroup openstackRequestSecurityGroup = (OpenstackRequestSecurityGroup)theEObject;
+ T result = caseOpenstackRequestSecurityGroup(openstackRequestSecurityGroup);
+ if (result == null) result = caseOpenStackRequest(openstackRequestSecurityGroup);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION: {
+ OpenstackRequestServerAction openstackRequestServerAction = (OpenstackRequestServerAction)theEObject;
+ T result = caseOpenstackRequestServerAction(openstackRequestServerAction);
+ if (result == null) result = caseOpenStackRequest(openstackRequestServerAction);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.OPENSTACK_REQUEST_POLL: {
+ OpenstackRequestPoll openstackRequestPoll = (OpenstackRequestPoll)theEObject;
+ T result = caseOpenstackRequestPoll(openstackRequestPoll);
+ if (result == null) result = caseOpenStackRequest(openstackRequestPoll);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.SERVER: {
+ Server server = (Server)theEObject;
+ T result = caseServer(server);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.IMAGE: {
+ Image image = (Image)theEObject;
+ T result = caseImage(image);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.FLAVOR: {
+ Flavor flavor = (Flavor)theEObject;
+ T result = caseFlavor(flavor);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.ADDRESSES: {
+ Addresses addresses = (Addresses)theEObject;
+ T result = caseAddresses(addresses);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.ADDRESS: {
+ Address address = (Address)theEObject;
+ T result = caseAddress(address);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.LINK: {
+ Link link = (Link)theEObject;
+ T result = caseLink(link);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.METADATA: {
+ Metadata metadata = (Metadata)theEObject;
+ T result = caseMetadata(metadata);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.FAULT: {
+ Fault fault = (Fault)theEObject;
+ T result = caseFault(fault);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.PERSONALITY: {
+ Personality personality = (Personality)theEObject;
+ T result = casePersonality(personality);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.REFERENCE: {
+ Reference reference = (Reference)theEObject;
+ T result = caseReference(reference);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.VOLUME: {
+ Volume volume = (Volume)theEObject;
+ T result = caseVolume(volume);
+ if (result == null) result = caseNamedEntity(volume);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.VOLUME_ATTACHMENT: {
+ VolumeAttachment volumeAttachment = (VolumeAttachment)theEObject;
+ T result = caseVolumeAttachment(volumeAttachment);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.FLOATING_IP: {
+ FloatingIp floatingIp = (FloatingIp)theEObject;
+ T result = caseFloatingIp(floatingIp);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.SECURITY_GROUP: {
+ SecurityGroup securityGroup = (SecurityGroup)theEObject;
+ T result = caseSecurityGroup(securityGroup);
+ if (result == null) result = caseNamedEntity(securityGroup);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.SECURITY_RULE: {
+ SecurityRule securityRule = (SecurityRule)theEObject;
+ T result = caseSecurityRule(securityRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.SECURITY_RANGE: {
+ SecurityRange securityRange = (SecurityRange)theEObject;
+ T result = caseSecurityRange(securityRange);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case ComputePackage.KEY_PAIR: {
+ KeyPair keyPair = (KeyPair)theEObject;
+ T result = caseKeyPair(keyPair);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Service'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Service'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseComputeService(ComputeService object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Openstack Request New Server'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Openstack Request New Server'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenstackRequestNewServer(OpenstackRequestNewServer object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Openstack Request Key Pair'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Openstack Request Key Pair'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenstackRequestKeyPair(OpenstackRequestKeyPair object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Openstack Request Flavor'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Openstack Request Flavor'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenstackRequestFlavor(OpenstackRequestFlavor object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Openstack Request Security Group'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Openstack Request Security Group'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenstackRequestSecurityGroup(OpenstackRequestSecurityGroup object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Openstack Request Server Action'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Openstack Request Server Action'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenstackRequestServerAction(OpenstackRequestServerAction object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Openstack Request Poll'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Openstack Request Poll'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenstackRequestPoll(OpenstackRequestPoll object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Server'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Server'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseServer(Server object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Image'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Image'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseImage(Image object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Flavor'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Flavor'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFlavor(Flavor object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Addresses'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Addresses'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAddresses(Addresses object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Address'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Address'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAddress(Address object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Link'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Link'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLink(Link object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Metadata'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Metadata'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMetadata(Metadata object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Fault'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Fault'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFault(Fault object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Personality'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Personality'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePersonality(Personality object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Reference'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Reference'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseReference(Reference object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Volume'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Volume'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseVolume(Volume object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Volume Attachment'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Volume Attachment'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseVolumeAttachment(VolumeAttachment object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Floating Ip'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Floating Ip'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFloatingIp(FloatingIp object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Security Group'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Security Group'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSecurityGroup(SecurityGroup object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Security Rule'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Security Rule'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSecurityRule(SecurityRule object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Security Range'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Security Range'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSecurityRange(SecurityRange object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Key Pair'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Key Pair'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseKeyPair(KeyPair object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Open Stack Request'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Open Stack Request'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenStackRequest(OpenStackRequest object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //ComputeSwitch
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CoreFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CoreFactory.java
new file mode 100644
index 0000000..6724e3c
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CoreFactory.java
@@ -0,0 +1,90 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.core;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ *
+ * The Factory for the model.
+ * It provides a create method for each non-abstract class of the model.
+ *
+ * @see org.openecomp.ncomp.openstack.core.CorePackage
+ * @generated
+ */
+public interface CoreFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ *
+ *
+ * @generated
+ */
+ CoreFactory eINSTANCE = org.openecomp.ncomp.openstack.core.impl.CoreFactoryImpl.init();
+
+ /**
+ * Returns a new object of class 'Openstack Request Delete'.
+ *
+ *
+ * @return a new object of class 'Openstack Request Delete'.
+ * @generated
+ */
+ OpenstackRequestDelete createOpenstackRequestDelete();
+
+ /**
+ * Returns a new object of class 'Openstack Request Poll'.
+ *
+ *
+ * @return a new object of class 'Openstack Request Poll'.
+ * @generated
+ */
+ OpenstackRequestPoll createOpenstackRequestPoll();
+
+ /**
+ * Returns a new object of class 'Virtual Machine Type'.
+ *
+ *
+ * @return a new object of class 'Virtual Machine Type'.
+ * @generated
+ */
+ VirtualMachineType createVirtualMachineType();
+
+ /**
+ * Returns a new object of class 'Security Rule'.
+ *
+ *
+ * @return a new object of class 'Security Rule'.
+ * @generated
+ */
+ SecurityRule createSecurityRule();
+
+ /**
+ * Returns the package supported by this factory.
+ *
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ CorePackage getCorePackage();
+
+} //CoreFactory
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CorePackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CorePackage.java
new file mode 100644
index 0000000..a67d8db
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/CorePackage.java
@@ -0,0 +1,999 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.core;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ *
+ * The Package for the model.
+ * It contains accessors for the meta objects to represent
+ * + * The following features are supported: + *
+ * If the meaning of the 'Project Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Project Name' attribute. + * @see #setProjectName(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenStackRequest_ProjectName() + * @model unique="false" + * @generated + */ + String getProjectName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest#getProjectName Project Name}' attribute. + * + * + * @param value the new value of the 'Project Name' attribute. + * @see #getProjectName() + * @generated + */ + void setProjectName(String value); + +} // OpenStackRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestDelete.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestDelete.java new file mode 100644 index 0000000..ec7b0ba --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestDelete.java @@ -0,0 +1,97 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + + +/** + * + * A representation of the model object 'Openstack Request Delete'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Object Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Object Type' attribute. + * @see #setObjectType(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenstackRequestDelete_ObjectType() + * @model unique="false" + * @generated + */ + String getObjectType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectType Object Type}' attribute. + * + * + * @param value the new value of the 'Object Type' attribute. + * @see #getObjectType() + * @generated + */ + void setObjectType(String value); + + /** + * Returns the value of the 'Object Name' attribute. + * + *+ * If the meaning of the 'Object Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Object Name' attribute. + * @see #setObjectName(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenstackRequestDelete_ObjectName() + * @model unique="false" + * @generated + */ + String getObjectName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete#getObjectName Object Name}' attribute. + * + * + * @param value the new value of the 'Object Name' attribute. + * @see #getObjectName() + * @generated + */ + void setObjectName(String value); + +} // OpenstackRequestDelete diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestPoll.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestPoll.java new file mode 100644 index 0000000..2b7db9a --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/OpenstackRequestPoll.java @@ -0,0 +1,38 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + + +/** + * + * A representation of the model object 'Openstack Request Poll'. + * + * + * + * @see org.openecomp.ncomp.openstack.core.CorePackage#getOpenstackRequestPoll() + * @model + * @generated + */ +public interface OpenstackRequestPoll extends OpenStackRequest { +} // OpenstackRequestPoll diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRule.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRule.java new file mode 100644 index 0000000..ed5b13c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRule.java @@ -0,0 +1,155 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Security Rule'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Port Range Start' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Port Range Start' attribute. + * @see #setPortRangeStart(Integer) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRule_PortRangeStart() + * @model unique="false" + * @generated + */ + Integer getPortRangeStart(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeStart Port Range Start}' attribute. + * + * + * @param value the new value of the 'Port Range Start' attribute. + * @see #getPortRangeStart() + * @generated + */ + void setPortRangeStart(Integer value); + + /** + * Returns the value of the 'Port Range End' attribute. + * + *+ * If the meaning of the 'Port Range End' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Port Range End' attribute. + * @see #setPortRangeEnd(Integer) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRule_PortRangeEnd() + * @model unique="false" + * @generated + */ + Integer getPortRangeEnd(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getPortRangeEnd Port Range End}' attribute. + * + * + * @param value the new value of the 'Port Range End' attribute. + * @see #getPortRangeEnd() + * @generated + */ + void setPortRangeEnd(Integer value); + + /** + * Returns the value of the 'Prefix' attribute. + * + *+ * If the meaning of the 'Prefix' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Prefix' attribute. + * @see #setPrefix(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRule_Prefix() + * @model unique="false" + * @generated + */ + String getPrefix(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getPrefix Prefix}' attribute. + * + * + * @param value the new value of the 'Prefix' attribute. + * @see #getPrefix() + * @generated + */ + void setPrefix(String value); + + /** + * Returns the value of the 'Ip Protocol' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.openstack.core.SecurityRuleProtocol}. + * + *+ * If the meaning of the 'Ip Protocol' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ip Protocol' attribute. + * @see org.openecomp.ncomp.openstack.core.SecurityRuleProtocol + * @see #setIpProtocol(SecurityRuleProtocol) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRule_IpProtocol() + * @model unique="false" + * @generated + */ + SecurityRuleProtocol getIpProtocol(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.SecurityRule#getIpProtocol Ip Protocol}' attribute. + * + * + * @param value the new value of the 'Ip Protocol' attribute. + * @see org.openecomp.ncomp.openstack.core.SecurityRuleProtocol + * @see #getIpProtocol() + * @generated + */ + void setIpProtocol(SecurityRuleProtocol value); + +} // SecurityRule diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRuleProtocol.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRuleProtocol.java new file mode 100644 index 0000000..1650fbb --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/SecurityRuleProtocol.java @@ -0,0 +1,283 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Security Rule Protocol', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.openstack.core.CorePackage#getSecurityRuleProtocol() + * @model + * @generated + */ +public enum SecurityRuleProtocol implements Enumerator { + /** + * The 'None' literal object. + * + * + * @see #NONE_VALUE + * @generated + * @ordered + */ + NONE(1000, "none", "none"), + + /** + * The 'Tcp' literal object. + * + * + * @see #TCP_VALUE + * @generated + * @ordered + */ + TCP(17, "tcp", "tcp"), + + /** + * The 'Udp' literal object. + * + * + * @see #UDP_VALUE + * @generated + * @ordered + */ + UDP(6, "udp", "udp"), + + /** + * The 'Imcp' literal object. + * + * + * @see #IMCP_VALUE + * @generated + * @ordered + */ + IMCP(0, "imcp", "imcp"); + + /** + * The 'None' literal value. + * + *+ * If the meaning of 'None' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #NONE + * @model name="none" + * @generated + * @ordered + */ + public static final int NONE_VALUE = 1000; + + /** + * The 'Tcp' literal value. + * + *+ * If the meaning of 'Tcp' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #TCP + * @model name="tcp" + * @generated + * @ordered + */ + public static final int TCP_VALUE = 17; + + /** + * The 'Udp' literal value. + * + *+ * If the meaning of 'Udp' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #UDP + * @model name="udp" + * @generated + * @ordered + */ + public static final int UDP_VALUE = 6; + + /** + * The 'Imcp' literal value. + * + *+ * If the meaning of 'Imcp' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #IMCP + * @model name="imcp" + * @generated + * @ordered + */ + public static final int IMCP_VALUE = 0; + + /** + * An array of all the 'Security Rule Protocol' enumerators. + * + * + * @generated + */ + private static final SecurityRuleProtocol[] VALUES_ARRAY = + new SecurityRuleProtocol[] { + NONE, + TCP, + UDP, + IMCP, + }; + + /** + * A public read-only list of all the 'Security Rule Protocol' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are supported: + *
+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Number Of Cores' attribute. + * + *+ * If the meaning of the 'Number Of Cores' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Number Of Cores' attribute. + * @see #setNumberOfCores(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_NumberOfCores() + * @model unique="false" + * @generated + */ + int getNumberOfCores(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getNumberOfCores Number Of Cores}' attribute. + * + * + * @param value the new value of the 'Number Of Cores' attribute. + * @see #getNumberOfCores() + * @generated + */ + void setNumberOfCores(int value); + + /** + * Returns the value of the 'Memory Size MB' attribute. + * + *+ * If the meaning of the 'Memory Size MB' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Memory Size MB' attribute. + * @see #setMemorySizeMB(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_MemorySizeMB() + * @model unique="false" + * @generated + */ + int getMemorySizeMB(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getMemorySizeMB Memory Size MB}' attribute. + * + * + * @param value the new value of the 'Memory Size MB' attribute. + * @see #getMemorySizeMB() + * @generated + */ + void setMemorySizeMB(int value); + + /** + * Returns the value of the 'Root Disk Size GB' attribute. + * + *+ * If the meaning of the 'Root Disk Size GB' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Root Disk Size GB' attribute. + * @see #setRootDiskSizeGB(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_RootDiskSizeGB() + * @model unique="false" + * @generated + */ + int getRootDiskSizeGB(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getRootDiskSizeGB Root Disk Size GB}' attribute. + * + * + * @param value the new value of the 'Root Disk Size GB' attribute. + * @see #getRootDiskSizeGB() + * @generated + */ + void setRootDiskSizeGB(int value); + + /** + * Returns the value of the 'Disk Size GB' attribute. + * + *+ * If the meaning of the 'Disk Size GB' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Disk Size GB' attribute. + * @see #setDiskSizeGB(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_DiskSizeGB() + * @model unique="false" + * @generated + */ + int getDiskSizeGB(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDiskSizeGB Disk Size GB}' attribute. + * + * + * @param value the new value of the 'Disk Size GB' attribute. + * @see #getDiskSizeGB() + * @generated + */ + void setDiskSizeGB(int value); + + /** + * Returns the value of the 'Volume Size GB' attribute. + * + *+ * If the meaning of the 'Volume Size GB' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Volume Size GB' attribute. + * @see #setVolumeSizeGB(int) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_VolumeSizeGB() + * @model unique="false" + * @generated + */ + int getVolumeSizeGB(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getVolumeSizeGB Volume Size GB}' attribute. + * + * + * @param value the new value of the 'Volume Size GB' attribute. + * @see #getVolumeSizeGB() + * @generated + */ + void setVolumeSizeGB(int value); + + /** + * Returns the value of the 'Image Name' attribute. + * + *+ * If the meaning of the 'Image Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Image Name' attribute. + * @see #setImageName(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_ImageName() + * @model unique="false" + * @generated + */ + String getImageName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getImageName Image Name}' attribute. + * + * + * @param value the new value of the 'Image Name' attribute. + * @see #getImageName() + * @generated + */ + void setImageName(String value); + + /** + * Returns the value of the 'Flavor Name' attribute. + * + *+ * If the meaning of the 'Flavor Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Flavor Name' attribute. + * @see #setFlavorName(String) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_FlavorName() + * @model unique="false" + * @generated + */ + String getFlavorName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getFlavorName Flavor Name}' attribute. + * + * + * @param value the new value of the 'Flavor Name' attribute. + * @see #getFlavorName() + * @generated + */ + void setFlavorName(String value); + + /** + * Returns the value of the 'Need Public Ip' attribute. + * + *+ * If the meaning of the 'Need Public Ip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Need Public Ip' attribute. + * @see #setNeedPublicIp(boolean) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_NeedPublicIp() + * @model unique="false" + * @generated + */ + boolean isNeedPublicIp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#isNeedPublicIp Need Public Ip}' attribute. + * + * + * @param value the new value of the 'Need Public Ip' attribute. + * @see #isNeedPublicIp() + * @generated + */ + void setNeedPublicIp(boolean value); + + /** + * Returns the value of the 'Deployment Status' attribute. + * The literals are from the enumeration {@link org.openecomp.ncomp.core.DeploymentStatus}. + * + *+ * If the meaning of the 'Deployment Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Deployment Status' attribute. + * @see org.openecomp.ncomp.core.DeploymentStatus + * @see #setDeploymentStatus(DeploymentStatus) + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_DeploymentStatus() + * @model unique="false" + * @generated + */ + DeploymentStatus getDeploymentStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType#getDeploymentStatus Deployment Status}' attribute. + * + * + * @param value the new value of the 'Deployment Status' attribute. + * @see org.openecomp.ncomp.core.DeploymentStatus + * @see #getDeploymentStatus() + * @generated + */ + void setDeploymentStatus(DeploymentStatus value); + + /** + * Returns the value of the 'Incoming Security Rules' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.core.SecurityRule}. + * + *+ * If the meaning of the 'Incoming Security Rules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Incoming Security Rules' containment reference list. + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_IncomingSecurityRules() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Outbound Security Rules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Outbound Security Rules' containment reference list. + * @see org.openecomp.ncomp.openstack.core.CorePackage#getVirtualMachineType_OutboundSecurityRules() + * @model containment="true" + * @generated + */ + EListNote: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.core.CorePackage#eNS_URI + * @see #init() + * @generated + */ + private CorePackageImpl() { + super(eNS_URI, CoreFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link CorePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static CorePackage init() { + if (isInited) return (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + + // Obtain or create and register package + CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new CorePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + org.openecomp.ncomp.core.CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theCorePackage.createPackageContents(); + + // Initialize created meta-data + theCorePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theCorePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(CorePackage.eNS_URI, theCorePackage); + return theCorePackage; + } + + /** + * + * + * @generated + */ + public EClass getOpenStackRequest() { + return openStackRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackRequest_ProjectName() { + return (EAttribute)openStackRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestDelete() { + return openstackRequestDeleteEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestDelete_ObjectType() { + return (EAttribute)openstackRequestDeleteEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenstackRequestDelete_ObjectName() { + return (EAttribute)openstackRequestDeleteEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getOpenstackRequestPoll() { + return openstackRequestPollEClass; + } + + /** + * + * + * @generated + */ + public EClass getVirtualMachineType() { + return virtualMachineTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_Description() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_NumberOfCores() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_MemorySizeMB() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_RootDiskSizeGB() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_DiskSizeGB() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_VolumeSizeGB() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_ImageName() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_FlavorName() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_NeedPublicIp() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getVirtualMachineType_DeploymentStatus() { + return (EAttribute)virtualMachineTypeEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineType_IncomingSecurityRules() { + return (EReference)virtualMachineTypeEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getVirtualMachineType_OutboundSecurityRules() { + return (EReference)virtualMachineTypeEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EClass getSecurityRule() { + return securityRuleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_PortRangeStart() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_PortRangeEnd() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_Prefix() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSecurityRule_IpProtocol() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EEnum getSecurityRuleProtocol() { + return securityRuleProtocolEEnum; + } + + /** + * + * + * @generated + */ + public CoreFactory getCoreFactory() { + return (CoreFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + openStackRequestEClass = createEClass(OPEN_STACK_REQUEST); + createEAttribute(openStackRequestEClass, OPEN_STACK_REQUEST__PROJECT_NAME); + + openstackRequestDeleteEClass = createEClass(OPENSTACK_REQUEST_DELETE); + createEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_TYPE); + createEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_NAME); + + openstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL); + + virtualMachineTypeEClass = createEClass(VIRTUAL_MACHINE_TYPE); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DESCRIPTION); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__IMAGE_NAME); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__FLAVOR_NAME); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP); + createEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS); + createEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES); + createEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES); + + securityRuleEClass = createEClass(SECURITY_RULE); + createEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_START); + createEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_END); + createEAttribute(securityRuleEClass, SECURITY_RULE__PREFIX); + createEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL); + + // Create enums + securityRuleProtocolEEnum = createEEnum(SECURITY_RULE_PROTOCOL); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + openstackRequestDeleteEClass.getESuperTypes().add(this.getOpenStackRequest()); + openstackRequestPollEClass.getESuperTypes().add(this.getOpenStackRequest()); + virtualMachineTypeEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + securityRuleEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(openStackRequestEClass, OpenStackRequest.class, "OpenStackRequest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenStackRequest_ProjectName(), theEcorePackage.getEString(), "projectName", null, 0, 1, OpenStackRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestDeleteEClass, OpenstackRequestDelete.class, "OpenstackRequestDelete", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenstackRequestDelete_ObjectType(), theEcorePackage.getEString(), "objectType", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestDelete_ObjectName(), theEcorePackage.getEString(), "objectName", null, 0, 1, OpenstackRequestDelete.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestPollEClass, OpenstackRequestPoll.class, "OpenstackRequestPoll", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(virtualMachineTypeEClass, VirtualMachineType.class, "VirtualMachineType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVirtualMachineType_Description(), theEcorePackage.getEString(), "description", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_NumberOfCores(), theEcorePackage.getEInt(), "numberOfCores", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_MemorySizeMB(), theEcorePackage.getEInt(), "memorySizeMB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_RootDiskSizeGB(), theEcorePackage.getEInt(), "rootDiskSizeGB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_DiskSizeGB(), theEcorePackage.getEInt(), "diskSizeGB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_VolumeSizeGB(), theEcorePackage.getEInt(), "volumeSizeGB", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_ImageName(), theEcorePackage.getEString(), "imageName", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_FlavorName(), theEcorePackage.getEString(), "flavorName", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_NeedPublicIp(), theEcorePackage.getEBoolean(), "needPublicIp", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVirtualMachineType_DeploymentStatus(), theCorePackage_1.getDeploymentStatus(), "deploymentStatus", null, 0, 1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineType_IncomingSecurityRules(), this.getSecurityRule(), null, "incomingSecurityRules", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVirtualMachineType_OutboundSecurityRules(), this.getSecurityRule(), null, "outboundSecurityRules", null, 0, -1, VirtualMachineType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityRuleEClass, SecurityRule.class, "SecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSecurityRule_PortRangeStart(), theEcorePackage.getEIntegerObject(), "portRangeStart", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_PortRangeEnd(), theEcorePackage.getEIntegerObject(), "portRangeEnd", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Prefix(), theEcorePackage.getEString(), "prefix", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_IpProtocol(), this.getSecurityRuleProtocol(), "ipProtocol", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(securityRuleProtocolEEnum, SecurityRuleProtocol.class, "SecurityRuleProtocol"); + addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.NONE); + addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.TCP); + addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.UDP); + addEEnumLiteral(securityRuleProtocolEEnum, SecurityRuleProtocol.IMCP); + + // Create resource + createResource(eNS_URI); + } + +} //CorePackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenStackRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenStackRequestImpl.java new file mode 100644 index 0000000..e83f9ec --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/OpenStackRequestImpl.java @@ -0,0 +1,184 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.impl; + +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.openecomp.ncomp.openstack.core.OpenStackRequest; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Open Stack Request'. + * + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public class OpenstackRequestPollImpl extends OpenStackRequestImpl implements OpenstackRequestPoll { + /** + * + * + * @generated + */ + protected OpenstackRequestPollImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return CorePackage.Literals.OPENSTACK_REQUEST_POLL; + } + +} //OpenstackRequestPollImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/SecurityRuleImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/SecurityRuleImpl.java new file mode 100644 index 0000000..4b85fff --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/impl/SecurityRuleImpl.java @@ -0,0 +1,348 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.core.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.openecomp.ncomp.openstack.core.SecurityRule; +import org.openecomp.ncomp.openstack.core.SecurityRuleProtocol; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * An implementation of the model object 'Security Rule'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.openstack.core.CorePackage
+ * @generated
+ */
+public class CoreAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static CorePackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public CoreAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = CorePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected CoreSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenStackRequest Open Stack Request}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.core.OpenStackRequest
+ * @generated
+ */
+ public Adapter createOpenStackRequestAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestDelete Openstack Request Delete}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.core.OpenstackRequestDelete
+ * @generated
+ */
+ public Adapter createOpenstackRequestDeleteAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.OpenstackRequestPoll Openstack Request Poll}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.core.OpenstackRequestPoll
+ * @generated
+ */
+ public Adapter createOpenstackRequestPollAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.VirtualMachineType Virtual Machine Type}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.core.VirtualMachineType
+ * @generated
+ */
+ public Adapter createVirtualMachineTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.core.SecurityRule Security Rule}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.core.SecurityRule
+ * @generated
+ */
+ public Adapter createSecurityRuleAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //CoreAdapterFactory
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreSwitch.java
new file mode 100644
index 0000000..2360076
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/core/util/CoreSwitch.java
@@ -0,0 +1,236 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.core.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.openstack.core.*;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.openstack.core.CorePackage
+ * @generated
+ */
+public class CoreSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case CorePackage.OPEN_STACK_REQUEST: {
+ OpenStackRequest openStackRequest = (OpenStackRequest)theEObject;
+ T result = caseOpenStackRequest(openStackRequest);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CorePackage.OPENSTACK_REQUEST_DELETE: {
+ OpenstackRequestDelete openstackRequestDelete = (OpenstackRequestDelete)theEObject;
+ T result = caseOpenstackRequestDelete(openstackRequestDelete);
+ if (result == null) result = caseOpenStackRequest(openstackRequestDelete);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CorePackage.OPENSTACK_REQUEST_POLL: {
+ OpenstackRequestPoll openstackRequestPoll = (OpenstackRequestPoll)theEObject;
+ T result = caseOpenstackRequestPoll(openstackRequestPoll);
+ if (result == null) result = caseOpenStackRequest(openstackRequestPoll);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CorePackage.VIRTUAL_MACHINE_TYPE: {
+ VirtualMachineType virtualMachineType = (VirtualMachineType)theEObject;
+ T result = caseVirtualMachineType(virtualMachineType);
+ if (result == null) result = caseNamedEntity(virtualMachineType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CorePackage.SECURITY_RULE: {
+ SecurityRule securityRule = (SecurityRule)theEObject;
+ T result = caseSecurityRule(securityRule);
+ if (result == null) result = caseNamedEntity(securityRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Open Stack Request'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Open Stack Request'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenStackRequest(OpenStackRequest object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Openstack Request Delete'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Openstack Request Delete'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenstackRequestDelete(OpenstackRequestDelete object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Openstack Request Poll'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Openstack Request Poll'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenstackRequestPoll(OpenstackRequestPoll object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Virtual Machine Type'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Virtual Machine Type'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseVirtualMachineType(VirtualMachineType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Security Rule'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Security Rule'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSecurityRule(SecurityRule object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //CoreSwitch
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenStackControllerImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenStackControllerImpl.java
new file mode 100644
index 0000000..b0fcb92
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/impl/OpenStackControllerImpl.java
@@ -0,0 +1,269 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.impl;
+
+import org.openecomp.ncomp.core.User;
+import org.openecomp.ncomp.openstack.OpenStackController;
+import org.openecomp.ncomp.openstack.OpenstackPackage;
+import org.openecomp.ncomp.openstack.core.VirtualMachineType;
+import org.openecomp.ncomp.openstack.location.OpenStackLocation;
+import java.lang.reflect.InvocationTargetException;
+import java.util.Collection;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+import org.json.JSONObject;
+
+/**
+ *
+ * An implementation of the model object 'Open Stack Controller'.
+ *
+ * + * The following features are implemented: + *
Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.OpenstackPackage#eNS_URI + * @see #init() + * @generated + */ + private OpenstackPackageImpl() { + super(eNS_URI, OpenstackFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link OpenstackPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static OpenstackPackage init() { + if (isInited) return (OpenstackPackage)EPackage.Registry.INSTANCE.getEPackage(OpenstackPackage.eNS_URI); + + // Obtain or create and register package + OpenstackPackageImpl theOpenstackPackage = (OpenstackPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OpenstackPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OpenstackPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + LocationPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theOpenstackPackage.createPackageContents(); + + // Initialize created meta-data + theOpenstackPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theOpenstackPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(OpenstackPackage.eNS_URI, theOpenstackPackage); + return theOpenstackPackage; + } + + /** + * + * + * @generated + */ + public EClass getOpenStackController() { + return openStackControllerEClass; + } + + /** + * + * + * @generated + */ + public EReference getOpenStackController_Locations() { + return (EReference)openStackControllerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackController_VmTypes() { + return (EReference)openStackControllerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackController_Users() { + return (EReference)openStackControllerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackController__UploadOpenstackConfiguration__JSONObject_OpenStackLocation() { + return openStackControllerEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public OpenstackFactory getOpenstackFactory() { + return (OpenstackFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + openStackControllerEClass = createEClass(OPEN_STACK_CONTROLLER); + createEReference(openStackControllerEClass, OPEN_STACK_CONTROLLER__LOCATIONS); + createEReference(openStackControllerEClass, OPEN_STACK_CONTROLLER__VM_TYPES); + createEReference(openStackControllerEClass, OPEN_STACK_CONTROLLER__USERS); + createEOperation(openStackControllerEClass, OPEN_STACK_CONTROLLER___UPLOAD_OPENSTACK_CONFIGURATION__JSONOBJECT_OPENSTACKLOCATION); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + LocationPackage theLocationPackage = (LocationPackage)EPackage.Registry.INSTANCE.getEPackage(LocationPackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes, features, and operations; add parameters + initEClass(openStackControllerEClass, OpenStackController.class, "OpenStackController", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenStackController_Locations(), theLocationPackage.getOpenStackLocation(), null, "locations", null, 0, -1, OpenStackController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackController_VmTypes(), theCorePackage.getVirtualMachineType(), null, "vmTypes", null, 0, -1, OpenStackController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackController_Users(), theCorePackage_1.getUser(), null, "users", null, 0, -1, OpenStackController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + EOperation op = initEOperation(getOpenStackController__UploadOpenstackConfiguration__JSONObject_OpenStackLocation(), null, "uploadOpenstackConfiguration", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage_1.getRemoteContext(), "cx", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theLocationPackage.getOpenStackLocation(), "loc", 0, 1, !IS_UNIQUE, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //OpenstackPackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/Hypervisor.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/Hypervisor.java new file mode 100644 index 0000000..154c46b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/Hypervisor.java @@ -0,0 +1,530 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * + * A representation of the model object 'Hypervisor'. + * + * + *
+ * The following features are supported: + *
+ * If the meaning of the 'Service' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Service' containment reference. + * @see #setService(HypervisorService) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Service() + * @model containment="true" + * @generated + */ + HypervisorService getService(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getService Service}' containment reference. + * + * + * @param value the new value of the 'Service' containment reference. + * @see #getService() + * @generated + */ + void setService(HypervisorService value); + + /** + * Returns the value of the 'Host ip' attribute. + * + *+ * If the meaning of the 'Host ip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Host ip' attribute. + * @see #setHost_ip(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Host_ip() + * @model unique="false" + * @generated + */ + String getHost_ip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHost_ip Host ip}' attribute. + * + * + * @param value the new value of the 'Host ip' attribute. + * @see #getHost_ip() + * @generated + */ + void setHost_ip(String value); + + /** + * Returns the value of the 'Vcpus used' attribute. + * + *+ * If the meaning of the 'Vcpus used' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Vcpus used' attribute. + * @see #setVcpus_used(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Vcpus_used() + * @model unique="false" + * @generated + */ + int getVcpus_used(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus_used Vcpus used}' attribute. + * + * + * @param value the new value of the 'Vcpus used' attribute. + * @see #getVcpus_used() + * @generated + */ + void setVcpus_used(int value); + + /** + * Returns the value of the 'Hypervisor type' attribute. + * + *+ * If the meaning of the 'Hypervisor type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Hypervisor type' attribute. + * @see #setHypervisor_type(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Hypervisor_type() + * @model unique="false" + * @generated + */ + String getHypervisor_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_type Hypervisor type}' attribute. + * + * + * @param value the new value of the 'Hypervisor type' attribute. + * @see #getHypervisor_type() + * @generated + */ + void setHypervisor_type(String value); + + /** + * Returns the value of the 'Local gb used' attribute. + * + *+ * If the meaning of the 'Local gb used' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Local gb used' attribute. + * @see #setLocal_gb_used(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Local_gb_used() + * @model unique="false" + * @generated + */ + int getLocal_gb_used(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb_used Local gb used}' attribute. + * + * + * @param value the new value of the 'Local gb used' attribute. + * @see #getLocal_gb_used() + * @generated + */ + void setLocal_gb_used(int value); + + /** + * Returns the value of the 'Hypervisor hostname' attribute. + * + *+ * If the meaning of the 'Hypervisor hostname' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Hypervisor hostname' attribute. + * @see #setHypervisor_hostname(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Hypervisor_hostname() + * @model unique="false" + * @generated + */ + String getHypervisor_hostname(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_hostname Hypervisor hostname}' attribute. + * + * + * @param value the new value of the 'Hypervisor hostname' attribute. + * @see #getHypervisor_hostname() + * @generated + */ + void setHypervisor_hostname(String value); + + /** + * Returns the value of the 'Memory mb used' attribute. + * + *+ * If the meaning of the 'Memory mb used' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Memory mb used' attribute. + * @see #setMemory_mb_used(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Memory_mb_used() + * @model unique="false" + * @generated + */ + int getMemory_mb_used(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb_used Memory mb used}' attribute. + * + * + * @param value the new value of the 'Memory mb used' attribute. + * @see #getMemory_mb_used() + * @generated + */ + void setMemory_mb_used(int value); + + /** + * Returns the value of the 'Memory mb' attribute. + * + *+ * If the meaning of the 'Memory mb' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Memory mb' attribute. + * @see #setMemory_mb(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Memory_mb() + * @model unique="false" + * @generated + */ + int getMemory_mb(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getMemory_mb Memory mb}' attribute. + * + * + * @param value the new value of the 'Memory mb' attribute. + * @see #getMemory_mb() + * @generated + */ + void setMemory_mb(int value); + + /** + * Returns the value of the 'Current workload' attribute. + * + *+ * If the meaning of the 'Current workload' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Current workload' attribute. + * @see #setCurrent_workload(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Current_workload() + * @model unique="false" + * @generated + */ + int getCurrent_workload(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getCurrent_workload Current workload}' attribute. + * + * + * @param value the new value of the 'Current workload' attribute. + * @see #getCurrent_workload() + * @generated + */ + void setCurrent_workload(int value); + + /** + * Returns the value of the 'Vcpus' attribute. + * + *+ * If the meaning of the 'Vcpus' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Vcpus' attribute. + * @see #setVcpus(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Vcpus() + * @model unique="false" + * @generated + */ + int getVcpus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getVcpus Vcpus}' attribute. + * + * + * @param value the new value of the 'Vcpus' attribute. + * @see #getVcpus() + * @generated + */ + void setVcpus(int value); + + /** + * Returns the value of the 'Cpu info' containment reference. + * + *+ * If the meaning of the 'Cpu info' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Cpu info' containment reference. + * @see #setCpu_info(HypervisorCpuInfo) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Cpu_info() + * @model containment="true" + * @generated + */ + HypervisorCpuInfo getCpu_info(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getCpu_info Cpu info}' containment reference. + * + * + * @param value the new value of the 'Cpu info' containment reference. + * @see #getCpu_info() + * @generated + */ + void setCpu_info(HypervisorCpuInfo value); + + /** + * Returns the value of the 'Running vms' attribute. + * + *+ * If the meaning of the 'Running vms' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Running vms' attribute. + * @see #setRunning_vms(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Running_vms() + * @model unique="false" + * @generated + */ + int getRunning_vms(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getRunning_vms Running vms}' attribute. + * + * + * @param value the new value of the 'Running vms' attribute. + * @see #getRunning_vms() + * @generated + */ + void setRunning_vms(int value); + + /** + * Returns the value of the 'Free disk gb' attribute. + * + *+ * If the meaning of the 'Free disk gb' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Free disk gb' attribute. + * @see #setFree_disk_gb(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Free_disk_gb() + * @model unique="false" + * @generated + */ + int getFree_disk_gb(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getFree_disk_gb Free disk gb}' attribute. + * + * + * @param value the new value of the 'Free disk gb' attribute. + * @see #getFree_disk_gb() + * @generated + */ + void setFree_disk_gb(int value); + + /** + * Returns the value of the 'Hypervisor version' attribute. + * + *+ * If the meaning of the 'Hypervisor version' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Hypervisor version' attribute. + * @see #setHypervisor_version(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Hypervisor_version() + * @model unique="false" + * @generated + */ + int getHypervisor_version(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getHypervisor_version Hypervisor version}' attribute. + * + * + * @param value the new value of the 'Hypervisor version' attribute. + * @see #getHypervisor_version() + * @generated + */ + void setHypervisor_version(int value); + + /** + * Returns the value of the 'Disk available least' attribute. + * + *+ * If the meaning of the 'Disk available least' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Disk available least' attribute. + * @see #setDisk_available_least(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Disk_available_least() + * @model unique="false" + * @generated + */ + int getDisk_available_least(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getDisk_available_least Disk available least}' attribute. + * + * + * @param value the new value of the 'Disk available least' attribute. + * @see #getDisk_available_least() + * @generated + */ + void setDisk_available_least(int value); + + /** + * Returns the value of the 'Local gb' attribute. + * + *+ * If the meaning of the 'Local gb' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Local gb' attribute. + * @see #setLocal_gb(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Local_gb() + * @model unique="false" + * @generated + */ + int getLocal_gb(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getLocal_gb Local gb}' attribute. + * + * + * @param value the new value of the 'Local gb' attribute. + * @see #getLocal_gb() + * @generated + */ + void setLocal_gb(int value); + + /** + * Returns the value of the 'Free ram mb' attribute. + * + *+ * If the meaning of the 'Free ram mb' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Free ram mb' attribute. + * @see #setFree_ram_mb(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Free_ram_mb() + * @model unique="false" + * @generated + */ + int getFree_ram_mb(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getFree_ram_mb Free ram mb}' attribute. + * + * + * @param value the new value of the 'Free ram mb' attribute. + * @see #getFree_ram_mb() + * @generated + */ + void setFree_ram_mb(int value); + + /** + * Returns the value of the 'Id' attribute. + * + *+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisor_Id() + * @model unique="false" + * @generated + */ + int getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.Hypervisor#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(int value); + +} // Hypervisor diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuInfo.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuInfo.java new file mode 100644 index 0000000..8cfcc52 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuInfo.java @@ -0,0 +1,171 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Hypervisor Cpu Info'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Vendor' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Vendor' attribute. + * @see #setVendor(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Vendor() + * @model unique="false" + * @generated + */ + String getVendor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getVendor Vendor}' attribute. + * + * + * @param value the new value of the 'Vendor' attribute. + * @see #getVendor() + * @generated + */ + void setVendor(String value); + + /** + * Returns the value of the 'Model' attribute. + * + *+ * If the meaning of the 'Model' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Model' attribute. + * @see #setModel(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Model() + * @model unique="false" + * @generated + */ + String getModel(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getModel Model}' attribute. + * + * + * @param value the new value of the 'Model' attribute. + * @see #getModel() + * @generated + */ + void setModel(String value); + + /** + * Returns the value of the 'Arch' attribute. + * + *+ * If the meaning of the 'Arch' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Arch' attribute. + * @see #setArch(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Arch() + * @model unique="false" + * @generated + */ + String getArch(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getArch Arch}' attribute. + * + * + * @param value the new value of the 'Arch' attribute. + * @see #getArch() + * @generated + */ + void setArch(String value); + + /** + * Returns the value of the 'Features' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Features' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Features' attribute list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Features() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Topology' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Topology' containment reference. + * @see #setTopology(HypervisorCpuTopology) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuInfo_Topology() + * @model containment="true" + * @generated + */ + HypervisorCpuTopology getTopology(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo#getTopology Topology}' containment reference. + * + * + * @param value the new value of the 'Topology' containment reference. + * @see #getTopology() + * @generated + */ + void setTopology(HypervisorCpuTopology value); + +} // HypervisorCpuInfo diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuTopology.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuTopology.java new file mode 100644 index 0000000..d54569f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorCpuTopology.java @@ -0,0 +1,125 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Hypervisor Cpu Topology'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Cores' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Cores' attribute. + * @see #setCores(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuTopology_Cores() + * @model unique="false" + * @generated + */ + int getCores(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getCores Cores}' attribute. + * + * + * @param value the new value of the 'Cores' attribute. + * @see #getCores() + * @generated + */ + void setCores(int value); + + /** + * Returns the value of the 'Threads' attribute. + * + *+ * If the meaning of the 'Threads' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Threads' attribute. + * @see #setThreads(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuTopology_Threads() + * @model unique="false" + * @generated + */ + int getThreads(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getThreads Threads}' attribute. + * + * + * @param value the new value of the 'Threads' attribute. + * @see #getThreads() + * @generated + */ + void setThreads(int value); + + /** + * Returns the value of the 'Sockets' attribute. + * + *+ * If the meaning of the 'Sockets' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Sockets' attribute. + * @see #setSockets(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorCpuTopology_Sockets() + * @model unique="false" + * @generated + */ + int getSockets(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology#getSockets Sockets}' attribute. + * + * + * @param value the new value of the 'Sockets' attribute. + * @see #getSockets() + * @generated + */ + void setSockets(int value); + +} // HypervisorCpuTopology diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorService.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorService.java new file mode 100644 index 0000000..5fd546b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/HypervisorService.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Hypervisor Service'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Host' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Host' attribute. + * @see #setHost(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorService_Host() + * @model unique="false" + * @generated + */ + String getHost(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorService#getHost Host}' attribute. + * + * + * @param value the new value of the 'Host' attribute. + * @see #getHost() + * @generated + */ + void setHost(String value); + + /** + * Returns the value of the 'Id' attribute. + * + *+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getHypervisorService_Id() + * @model unique="false" + * @generated + */ + int getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.HypervisorService#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(int value); + +} // HypervisorService diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationFactory.java new file mode 100644 index 0000000..a503ccc --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationFactory.java @@ -0,0 +1,117 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.openstack.location.LocationPackage + * @generated + */ +public interface LocationFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + LocationFactory eINSTANCE = org.openecomp.ncomp.openstack.location.impl.LocationFactoryImpl.init(); + + /** + * Returns a new object of class 'Open Stack Location'. + * + * + * @return a new object of class 'Open Stack Location'. + * @generated + */ + OpenStackLocation createOpenStackLocation(); + + /** + * Returns a new object of class 'Open Stack Project'. + * + * + * @return a new object of class 'Open Stack Project'. + * @generated + */ + OpenStackProject createOpenStackProject(); + + /** + * Returns a new object of class 'Open Stack User'. + * + * + * @return a new object of class 'Open Stack User'. + * @generated + */ + OpenStackUser createOpenStackUser(); + + /** + * Returns a new object of class 'Hypervisor Service'. + * + * + * @return a new object of class 'Hypervisor Service'. + * @generated + */ + HypervisorService createHypervisorService(); + + /** + * Returns a new object of class 'Hypervisor Cpu Topology'. + * + * + * @return a new object of class 'Hypervisor Cpu Topology'. + * @generated + */ + HypervisorCpuTopology createHypervisorCpuTopology(); + + /** + * Returns a new object of class 'Hypervisor Cpu Info'. + * + * + * @return a new object of class 'Hypervisor Cpu Info'. + * @generated + */ + HypervisorCpuInfo createHypervisorCpuInfo(); + + /** + * Returns a new object of class 'Hypervisor'. + * + * + * @return a new object of class 'Hypervisor'. + * @generated + */ + Hypervisor createHypervisor(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + LocationPackage getLocationPackage(); + +} //LocationFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationPackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationPackage.java new file mode 100644 index 0000000..ccbef80 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/LocationPackage.java @@ -0,0 +1,2747 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import org.openecomp.ncomp.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *+ * The following features are supported: + *
+ * If the meaning of the 'Version' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Version' attribute. + * @see org.openecomp.ncomp.openstack.location.OpenStackVersion + * @see #setVersion(OpenStackVersion) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Version() + * @model unique="false" + * @generated + */ + OpenStackVersion getVersion(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getVersion Version}' attribute. + * + * + * @param value the new value of the 'Version' attribute. + * @see org.openecomp.ncomp.openstack.location.OpenStackVersion + * @see #getVersion() + * @generated + */ + void setVersion(OpenStackVersion value); + + /** + * Returns the value of the 'Remote Location' attribute. + * The default value is"false"
.
+ *
+ * + * If the meaning of the 'Remote Location' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Remote Location' attribute. + * @see #setRemoteLocation(boolean) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_RemoteLocation() + * @model default="false" unique="false" + * @generated + */ + boolean isRemoteLocation(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isRemoteLocation Remote Location}' attribute. + * + * + * @param value the new value of the 'Remote Location' attribute. + * @see #isRemoteLocation() + * @generated + */ + void setRemoteLocation(boolean value); + + /** + * Returns the value of the 'Remote Location Name' attribute. + * + *+ * If the meaning of the 'Remote Location Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Remote Location Name' attribute. + * @see #setRemoteLocationName(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_RemoteLocationName() + * @model unique="false" + * @generated + */ + String getRemoteLocationName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getRemoteLocationName Remote Location Name}' attribute. + * + * + * @param value the new value of the 'Remote Location Name' attribute. + * @see #getRemoteLocationName() + * @generated + */ + void setRemoteLocationName(String value); + + /** + * Returns the value of the 'Allow Create Flavor' attribute. + * + *+ * If the meaning of the 'Allow Create Flavor' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Allow Create Flavor' attribute. + * @see #setAllowCreateFlavor(boolean) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_AllowCreateFlavor() + * @model unique="false" + * @generated + */ + boolean isAllowCreateFlavor(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isAllowCreateFlavor Allow Create Flavor}' attribute. + * + * + * @param value the new value of the 'Allow Create Flavor' attribute. + * @see #isAllowCreateFlavor() + * @generated + */ + void setAllowCreateFlavor(boolean value); + + /** + * Returns the value of the 'Keystone Url' attribute. + * + *+ * If the meaning of the 'Keystone Url' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Keystone Url' attribute. + * @see #setKeystoneUrl(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_KeystoneUrl() + * @model unique="false" + * @generated + */ + String getKeystoneUrl(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getKeystoneUrl Keystone Url}' attribute. + * + * + * @param value the new value of the 'Keystone Url' attribute. + * @see #getKeystoneUrl() + * @generated + */ + void setKeystoneUrl(String value); + + /** + * Returns the value of the 'Bypass Ip' attribute. + * + *+ * If the meaning of the 'Bypass Ip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Bypass Ip' attribute. + * @see #setBypassIp(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_BypassIp() + * @model unique="false" + * @generated + */ + String getBypassIp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getBypassIp Bypass Ip}' attribute. + * + * + * @param value the new value of the 'Bypass Ip' attribute. + * @see #getBypassIp() + * @generated + */ + void setBypassIp(String value); + + /** + * Returns the value of the 'Flavor Id' attribute. + * The default value is"20000"
.
+ *
+ * + * If the meaning of the 'Flavor Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Flavor Id' attribute. + * @see #setFlavorId(int) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_FlavorId() + * @model default="20000" unique="false" + * @generated + */ + int getFlavorId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#getFlavorId Flavor Id}' attribute. + * + * + * @param value the new value of the 'Flavor Id' attribute. + * @see #getFlavorId() + * @generated + */ + void setFlavorId(int value); + + /** + * Returns the value of the 'Supports Security Groups' attribute. + * The default value is"true"
.
+ *
+ * + * If the meaning of the 'Supports Security Groups' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Supports Security Groups' attribute. + * @see #setSupportsSecurityGroups(boolean) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_SupportsSecurityGroups() + * @model default="true" unique="false" + * @generated + */ + boolean isSupportsSecurityGroups(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsSecurityGroups Supports Security Groups}' attribute. + * + * + * @param value the new value of the 'Supports Security Groups' attribute. + * @see #isSupportsSecurityGroups() + * @generated + */ + void setSupportsSecurityGroups(boolean value); + + /** + * Returns the value of the 'Supports Floating Ips' attribute. + * The default value is"true"
.
+ *
+ * + * If the meaning of the 'Supports Floating Ips' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Supports Floating Ips' attribute. + * @see #setSupportsFloatingIps(boolean) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_SupportsFloatingIps() + * @model default="true" unique="false" + * @generated + */ + boolean isSupportsFloatingIps(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation#isSupportsFloatingIps Supports Floating Ips}' attribute. + * + * + * @param value the new value of the 'Supports Floating Ips' attribute. + * @see #isSupportsFloatingIps() + * @generated + */ + void setSupportsFloatingIps(boolean value); + + /** + * Returns the value of the 'Projects' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.location.OpenStackProject}. + * + *+ * If the meaning of the 'Projects' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Projects' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Projects() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Users' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Users' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Users() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Images' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Images' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Images() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Flavors' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Flavors' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Flavors() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Hypervisors' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Hypervisors' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackLocation_Hypervisors() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'ID' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'ID' attribute. + * @see #setID(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_ID() + * @model unique="false" + * @generated + */ + String getID(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getID ID}' attribute. + * + * + * @param value the new value of the 'ID' attribute. + * @see #getID() + * @generated + */ + void setID(String value); + + /** + * Returns the value of the 'Admin User' attribute. + * + *+ * If the meaning of the 'Admin User' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Admin User' attribute. + * @see #setAdminUser(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_AdminUser() + * @model unique="false" + * @generated + */ + String getAdminUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getAdminUser Admin User}' attribute. + * + * + * @param value the new value of the 'Admin User' attribute. + * @see #getAdminUser() + * @generated + */ + void setAdminUser(String value); + + /** + * Returns the value of the 'Tenant Id' attribute. + * + *+ * If the meaning of the 'Tenant Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant Id' attribute. + * @see #setTenantId(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_TenantId() + * @model unique="false" + * @generated + */ + String getTenantId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getTenantId Tenant Id}' attribute. + * + * + * @param value the new value of the 'Tenant Id' attribute. + * @see #getTenantId() + * @generated + */ + void setTenantId(String value); + + /** + * Returns the value of the 'Region' attribute. + * + *+ * If the meaning of the 'Region' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Region' attribute. + * @see #setRegion(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Region() + * @model unique="false" + * @generated + */ + String getRegion(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getRegion Region}' attribute. + * + * + * @param value the new value of the 'Region' attribute. + * @see #getRegion() + * @generated + */ + void setRegion(String value); + + /** + * Returns the value of the 'Private Network' attribute. + * + *+ * If the meaning of the 'Private Network' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Private Network' attribute. + * @see #setPrivateNetwork(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_PrivateNetwork() + * @model unique="false" + * @generated + */ + String getPrivateNetwork(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPrivateNetwork Private Network}' attribute. + * + * + * @param value the new value of the 'Private Network' attribute. + * @see #getPrivateNetwork() + * @generated + */ + void setPrivateNetwork(String value); + + /** + * Returns the value of the 'Public Network' attribute. + * + *+ * If the meaning of the 'Public Network' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Public Network' attribute. + * @see #setPublicNetwork(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_PublicNetwork() + * @model unique="false" + * @generated + */ + String getPublicNetwork(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getPublicNetwork Public Network}' attribute. + * + * + * @param value the new value of the 'Public Network' attribute. + * @see #getPublicNetwork() + * @generated + */ + void setPublicNetwork(String value); + + /** + * Returns the value of the 'Api Key' attribute. + * + *+ * If the meaning of the 'Api Key' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Api Key' attribute. + * @see #setApiKey(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_ApiKey() + * @model unique="false" + * @generated + */ + String getApiKey(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getApiKey Api Key}' attribute. + * + * + * @param value the new value of the 'Api Key' attribute. + * @see #getApiKey() + * @generated + */ + void setApiKey(String value); + + /** + * Returns the value of the 'Servers' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Server}. + * + *+ * If the meaning of the 'Servers' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Servers' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Servers() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Users' reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Users' reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Users() + * @model ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Controller User' reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Controller User' reference. + * @see #setControllerUser(OpenStackUser) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_ControllerUser() + * @model + * @generated + */ + OpenStackUser getControllerUser(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackProject#getControllerUser Controller User}' reference. + * + * + * @param value the new value of the 'Controller User' reference. + * @see #getControllerUser() + * @generated + */ + void setControllerUser(OpenStackUser value); + + /** + * Returns the value of the 'Volumes' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.compute.Volume}. + * + *+ * If the meaning of the 'Volumes' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Volumes' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Volumes() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Ips' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ips' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Ips() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Groups' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Groups' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Groups() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Keypairs' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Keypairs' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Keypairs() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Networks' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Networks' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Networks() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Subnets' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Subnets' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Subnets() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Routers' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Routers' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Routers() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Ports' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ports' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Ports() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Security groups' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Security groups' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Security_groups() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * If the meaning of the 'Floatingips' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Floatingips' containment reference list. + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackProject_Floatingips() + * @model containment="true" ordered="false" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Password' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Password' attribute. + * @see #setPassword(String) + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackUser_Password() + * @model unique="false" transient="true" + * annotation="http://openecomp.org/sirius/persistence propertyFile='bsa.properties'" + * @generated + */ + String getPassword(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.location.OpenStackUser#getPassword Password}' attribute. + * + * + * @param value the new value of the 'Password' attribute. + * @see #getPassword() + * @generated + */ + void setPassword(String value); + +} // OpenStackUser diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackVersion.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackVersion.java new file mode 100644 index 0000000..2a4184b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/OpenStackVersion.java @@ -0,0 +1,370 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Open Stack Version', + * and utility methods for working with them. + * + * @see org.openecomp.ncomp.openstack.location.LocationPackage#getOpenStackVersion() + * @model + * @generated + */ +public enum OpenStackVersion implements Enumerator { + /** + * The 'Folsom' literal object. + * + * + * @see #FOLSOM_VALUE + * @generated + * @ordered + */ + FOLSOM(0, "Folsom", "Folsom"), /** + * The 'Grizzly' literal object. + * + * + * @see #GRIZZLY_VALUE + * @generated + * @ordered + */ + GRIZZLY(0, "Grizzly", "Grizzly"), /** + * The 'Havana' literal object. + * + * + * @see #HAVANA_VALUE + * @generated + * @ordered + */ + HAVANA(0, "Havana", "Havana"), /** + * The 'Icehouse' literal object. + * + * + * @see #ICEHOUSE_VALUE + * @generated + * @ordered + */ + ICEHOUSE(0, "Icehouse", "Icehouse"), /** + * The 'Juno' literal object. + * + * + * @see #JUNO_VALUE + * @generated + * @ordered + */ + JUNO(0, "Juno", "Juno"), /** + * The 'Kilo' literal object. + * + * + * @see #KILO_VALUE + * @generated + * @ordered + */ + KILO(0, "Kilo", "Kilo"), /** + * The 'Liberty' literal object. + * + * + * @see #LIBERTY_VALUE + * @generated + * @ordered + */ + LIBERTY(0, "Liberty", "Liberty"), /** + * The 'Mitaka' literal object. + * + * + * @see #MITAKA_VALUE + * @generated + * @ordered + */ + MITAKA(0, "Mitaka", "Mitaka"); + + /** + * The 'Folsom' literal value. + * + *+ * If the meaning of 'Folsom' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #FOLSOM + * @model name="Folsom" + * @generated + * @ordered + */ + public static final int FOLSOM_VALUE = 0; + + /** + * The 'Grizzly' literal value. + * + *+ * If the meaning of 'Grizzly' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #GRIZZLY + * @model name="Grizzly" + * @generated + * @ordered + */ + public static final int GRIZZLY_VALUE = 0; + + /** + * The 'Havana' literal value. + * + *+ * If the meaning of 'Havana' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #HAVANA + * @model name="Havana" + * @generated + * @ordered + */ + public static final int HAVANA_VALUE = 0; + + /** + * The 'Icehouse' literal value. + * + *+ * If the meaning of 'Icehouse' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #ICEHOUSE + * @model name="Icehouse" + * @generated + * @ordered + */ + public static final int ICEHOUSE_VALUE = 0; + + /** + * The 'Juno' literal value. + * + *+ * If the meaning of 'Juno' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #JUNO + * @model name="Juno" + * @generated + * @ordered + */ + public static final int JUNO_VALUE = 0; + + /** + * The 'Kilo' literal value. + * + *+ * If the meaning of 'Kilo' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #KILO + * @model name="Kilo" + * @generated + * @ordered + */ + public static final int KILO_VALUE = 0; + + /** + * The 'Liberty' literal value. + * + *+ * If the meaning of 'Liberty' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #LIBERTY + * @model name="Liberty" + * @generated + * @ordered + */ + public static final int LIBERTY_VALUE = 0; + + /** + * The 'Mitaka' literal value. + * + *+ * If the meaning of 'Mitaka' literal object isn't clear, + * there really should be more of a description here... + *
+ * + * @see #MITAKA + * @model name="Mitaka" + * @generated + * @ordered + */ + public static final int MITAKA_VALUE = 0; + + /** + * An array of all the 'Open Stack Version' enumerators. + * + * + * @generated + */ + private static final OpenStackVersion[] VALUES_ARRAY = + new OpenStackVersion[] { + FOLSOM, + GRIZZLY, + HAVANA, + ICEHOUSE, + JUNO, + KILO, + LIBERTY, + MITAKA, + }; + + /** + * A public read-only list of all the 'Open Stack Version' enumerators. + * + * + * @generated + */ + public static final List+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.location.LocationPackage#eNS_URI + * @see #init() + * @generated + */ + private LocationPackageImpl() { + super(eNS_URI, LocationFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link LocationPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static LocationPackage init() { + if (isInited) return (LocationPackage)EPackage.Registry.INSTANCE.getEPackage(LocationPackage.eNS_URI); + + // Obtain or create and register package + LocationPackageImpl theLocationPackage = (LocationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof LocationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new LocationPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + NeutronPackage.eINSTANCE.eClass(); + CeilometerPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theLocationPackage.createPackageContents(); + + // Initialize created meta-data + theLocationPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theLocationPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(LocationPackage.eNS_URI, theLocationPackage); + return theLocationPackage; + } + + /** + * + * + * @generated + */ + public EClass getOpenStackLocation() { + return openStackLocationEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_Version() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_RemoteLocation() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_RemoteLocationName() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_AllowCreateFlavor() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_KeystoneUrl() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_BypassIp() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_FlavorId() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_SupportsSecurityGroups() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackLocation_SupportsFloatingIps() { + return (EAttribute)openStackLocationEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Projects() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Users() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Images() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Flavors() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackLocation_Hypervisors() { + return (EReference)openStackLocationEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackLocation__Poll() { + return openStackLocationEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackLocation__MergeLocation__OpenStackLocation() { + return openStackLocationEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EClass getOpenStackProject() { + return openStackProjectEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_ID() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_AdminUser() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_TenantId() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_Region() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_PrivateNetwork() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_PublicNetwork() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackProject_ApiKey() { + return (EAttribute)openStackProjectEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Servers() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Users() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_ControllerUser() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Volumes() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Ips() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Groups() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Keypairs() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Networks() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Subnets() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Routers() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Ports() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Security_groups() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(18); + } + + /** + * + * + * @generated + */ + public EReference getOpenStackProject_Floatingips() { + return (EReference)openStackProjectEClass.getEStructuralFeatures().get(19); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackProject__UpdateNovaState() { + return openStackProjectEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getOpenStackProject__CreateNetwork__CreateNetworkRequest() { + return openStackProjectEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EClass getOpenStackUser() { + return openStackUserEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getOpenStackUser_Password() { + return (EAttribute)openStackUserEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHypervisorService() { + return hypervisorServiceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorService_Host() { + return (EAttribute)hypervisorServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorService_Id() { + return (EAttribute)hypervisorServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getHypervisorCpuTopology() { + return hypervisorCpuTopologyEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuTopology_Cores() { + return (EAttribute)hypervisorCpuTopologyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuTopology_Threads() { + return (EAttribute)hypervisorCpuTopologyEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuTopology_Sockets() { + return (EAttribute)hypervisorCpuTopologyEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getHypervisorCpuInfo() { + return hypervisorCpuInfoEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuInfo_Vendor() { + return (EAttribute)hypervisorCpuInfoEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuInfo_Model() { + return (EAttribute)hypervisorCpuInfoEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuInfo_Arch() { + return (EAttribute)hypervisorCpuInfoEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisorCpuInfo_Features() { + return (EAttribute)hypervisorCpuInfoEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getHypervisorCpuInfo_Topology() { + return (EReference)hypervisorCpuInfoEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getHypervisor() { + return hypervisorEClass; + } + + /** + * + * + * @generated + */ + public EReference getHypervisor_Service() { + return (EReference)hypervisorEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Host_ip() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Vcpus_used() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Hypervisor_type() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Local_gb_used() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Hypervisor_hostname() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Memory_mb_used() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Memory_mb() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Current_workload() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Vcpus() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getHypervisor_Cpu_info() { + return (EReference)hypervisorEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Running_vms() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Free_disk_gb() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Hypervisor_version() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Disk_available_least() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Local_gb() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Free_ram_mb() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EAttribute getHypervisor_Id() { + return (EAttribute)hypervisorEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EEnum getOpenStackVersion() { + return openStackVersionEEnum; + } + + /** + * + * + * @generated + */ + public LocationFactory getLocationFactory() { + return (LocationFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + openStackLocationEClass = createEClass(OPEN_STACK_LOCATION); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__VERSION); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__REMOTE_LOCATION); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__REMOTE_LOCATION_NAME); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__ALLOW_CREATE_FLAVOR); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__KEYSTONE_URL); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__BYPASS_IP); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__FLAVOR_ID); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__SUPPORTS_SECURITY_GROUPS); + createEAttribute(openStackLocationEClass, OPEN_STACK_LOCATION__SUPPORTS_FLOATING_IPS); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__PROJECTS); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__USERS); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__IMAGES); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__FLAVORS); + createEReference(openStackLocationEClass, OPEN_STACK_LOCATION__HYPERVISORS); + createEOperation(openStackLocationEClass, OPEN_STACK_LOCATION___POLL); + createEOperation(openStackLocationEClass, OPEN_STACK_LOCATION___MERGE_LOCATION__OPENSTACKLOCATION); + + openStackProjectEClass = createEClass(OPEN_STACK_PROJECT); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__ID); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__ADMIN_USER); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__TENANT_ID); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__REGION); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__PRIVATE_NETWORK); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__PUBLIC_NETWORK); + createEAttribute(openStackProjectEClass, OPEN_STACK_PROJECT__API_KEY); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__SERVERS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__USERS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__CONTROLLER_USER); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__VOLUMES); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__IPS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__GROUPS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__KEYPAIRS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__NETWORKS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__SUBNETS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__ROUTERS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__PORTS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__SECURITY_GROUPS); + createEReference(openStackProjectEClass, OPEN_STACK_PROJECT__FLOATINGIPS); + createEOperation(openStackProjectEClass, OPEN_STACK_PROJECT___UPDATE_NOVA_STATE); + createEOperation(openStackProjectEClass, OPEN_STACK_PROJECT___CREATE_NETWORK__CREATENETWORKREQUEST); + + openStackUserEClass = createEClass(OPEN_STACK_USER); + createEAttribute(openStackUserEClass, OPEN_STACK_USER__PASSWORD); + + hypervisorServiceEClass = createEClass(HYPERVISOR_SERVICE); + createEAttribute(hypervisorServiceEClass, HYPERVISOR_SERVICE__HOST); + createEAttribute(hypervisorServiceEClass, HYPERVISOR_SERVICE__ID); + + hypervisorCpuTopologyEClass = createEClass(HYPERVISOR_CPU_TOPOLOGY); + createEAttribute(hypervisorCpuTopologyEClass, HYPERVISOR_CPU_TOPOLOGY__CORES); + createEAttribute(hypervisorCpuTopologyEClass, HYPERVISOR_CPU_TOPOLOGY__THREADS); + createEAttribute(hypervisorCpuTopologyEClass, HYPERVISOR_CPU_TOPOLOGY__SOCKETS); + + hypervisorCpuInfoEClass = createEClass(HYPERVISOR_CPU_INFO); + createEAttribute(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__VENDOR); + createEAttribute(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__MODEL); + createEAttribute(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__ARCH); + createEAttribute(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__FEATURES); + createEReference(hypervisorCpuInfoEClass, HYPERVISOR_CPU_INFO__TOPOLOGY); + + hypervisorEClass = createEClass(HYPERVISOR); + createEReference(hypervisorEClass, HYPERVISOR__SERVICE); + createEAttribute(hypervisorEClass, HYPERVISOR__HOST_IP); + createEAttribute(hypervisorEClass, HYPERVISOR__VCPUS_USED); + createEAttribute(hypervisorEClass, HYPERVISOR__HYPERVISOR_TYPE); + createEAttribute(hypervisorEClass, HYPERVISOR__LOCAL_GB_USED); + createEAttribute(hypervisorEClass, HYPERVISOR__HYPERVISOR_HOSTNAME); + createEAttribute(hypervisorEClass, HYPERVISOR__MEMORY_MB_USED); + createEAttribute(hypervisorEClass, HYPERVISOR__MEMORY_MB); + createEAttribute(hypervisorEClass, HYPERVISOR__CURRENT_WORKLOAD); + createEAttribute(hypervisorEClass, HYPERVISOR__VCPUS); + createEReference(hypervisorEClass, HYPERVISOR__CPU_INFO); + createEAttribute(hypervisorEClass, HYPERVISOR__RUNNING_VMS); + createEAttribute(hypervisorEClass, HYPERVISOR__FREE_DISK_GB); + createEAttribute(hypervisorEClass, HYPERVISOR__HYPERVISOR_VERSION); + createEAttribute(hypervisorEClass, HYPERVISOR__DISK_AVAILABLE_LEAST); + createEAttribute(hypervisorEClass, HYPERVISOR__LOCAL_GB); + createEAttribute(hypervisorEClass, HYPERVISOR__FREE_RAM_MB); + createEAttribute(hypervisorEClass, HYPERVISOR__ID); + + // Create enums + openStackVersionEEnum = createEEnum(OPEN_STACK_VERSION); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + NeutronPackage theNeutronPackage = (NeutronPackage)EPackage.Registry.INSTANCE.getEPackage(NeutronPackage.eNS_URI); + ComputePackage theComputePackage = (ComputePackage)EPackage.Registry.INSTANCE.getEPackage(ComputePackage.eNS_URI); + CeilometerPackage theCeilometerPackage = (CeilometerPackage)EPackage.Registry.INSTANCE.getEPackage(CeilometerPackage.eNS_URI); + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + openStackLocationEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + openStackLocationEClass.getESuperTypes().add(theNeutronPackage.getNeutronService()); + openStackLocationEClass.getESuperTypes().add(theComputePackage.getComputeService()); + openStackLocationEClass.getESuperTypes().add(theCeilometerPackage.getCeilometerService()); + openStackProjectEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + openStackProjectEClass.getESuperTypes().add(theCeilometerPackage.getCeilometerProject()); + openStackUserEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + hypervisorEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(openStackLocationEClass, OpenStackLocation.class, "OpenStackLocation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenStackLocation_Version(), this.getOpenStackVersion(), "version", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_RemoteLocation(), theEcorePackage.getEBoolean(), "remoteLocation", "false", 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_RemoteLocationName(), theEcorePackage.getEString(), "remoteLocationName", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_AllowCreateFlavor(), theEcorePackage.getEBoolean(), "allowCreateFlavor", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_KeystoneUrl(), theEcorePackage.getEString(), "keystoneUrl", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_BypassIp(), theEcorePackage.getEString(), "bypassIp", null, 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_FlavorId(), theEcorePackage.getEInt(), "flavorId", "20000", 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_SupportsSecurityGroups(), theEcorePackage.getEBoolean(), "supportsSecurityGroups", "true", 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackLocation_SupportsFloatingIps(), theEcorePackage.getEBoolean(), "supportsFloatingIps", "true", 0, 1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackLocation_Projects(), this.getOpenStackProject(), null, "projects", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackLocation_Users(), this.getOpenStackUser(), null, "users", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackLocation_Images(), theComputePackage.getImage(), null, "images", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackLocation_Flavors(), theComputePackage.getFlavor(), null, "flavors", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackLocation_Hypervisors(), this.getHypervisor(), null, "hypervisors", null, 0, -1, OpenStackLocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEOperation(getOpenStackLocation__Poll(), null, "poll", 0, 1, !IS_UNIQUE, IS_ORDERED); + + EOperation op = initEOperation(getOpenStackLocation__MergeLocation__OpenStackLocation(), null, "mergeLocation", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenStackLocation(), "loc", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(openStackProjectEClass, OpenStackProject.class, "OpenStackProject", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenStackProject_ID(), theEcorePackage.getEString(), "ID", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_AdminUser(), theEcorePackage.getEString(), "adminUser", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_TenantId(), theEcorePackage.getEString(), "tenantId", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_Region(), theEcorePackage.getEString(), "region", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_PrivateNetwork(), theEcorePackage.getEString(), "privateNetwork", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_PublicNetwork(), theEcorePackage.getEString(), "publicNetwork", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenStackProject_ApiKey(), theEcorePackage.getEString(), "apiKey", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackProject_Servers(), theComputePackage.getServer(), null, "servers", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Users(), this.getOpenStackUser(), null, "users", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_ControllerUser(), this.getOpenStackUser(), null, "controllerUser", null, 0, 1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenStackProject_Volumes(), theComputePackage.getVolume(), null, "volumes", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Ips(), theComputePackage.getFloatingIp(), null, "ips", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Groups(), theComputePackage.getSecurityGroup(), null, "groups", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Keypairs(), theComputePackage.getKeyPair(), null, "keypairs", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Networks(), theNeutronPackage.getNetwork(), null, "networks", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Subnets(), theNeutronPackage.getSubnet(), null, "subnets", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Routers(), theNeutronPackage.getRouter(), null, "routers", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Ports(), theNeutronPackage.getPort(), null, "ports", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Security_groups(), theNeutronPackage.getNeutronSecurityGroup(), null, "security_groups", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getOpenStackProject_Floatingips(), theNeutronPackage.getNeutronFloatingIp(), null, "floatingips", null, 0, -1, OpenStackProject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEOperation(getOpenStackProject__UpdateNovaState(), null, "updateNovaState", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getOpenStackProject__CreateNetwork__CreateNetworkRequest(), theNeutronPackage.getNetwork(), "createNetwork", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theNeutronPackage.getCreateNetworkRequest(), "r", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(openStackUserEClass, OpenStackUser.class, "OpenStackUser", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenStackUser_Password(), theEcorePackage.getEString(), "password", null, 0, 1, OpenStackUser.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hypervisorServiceEClass, HypervisorService.class, "HypervisorService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHypervisorService_Host(), theEcorePackage.getEString(), "host", null, 0, 1, HypervisorService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorService_Id(), theEcorePackage.getEInt(), "id", null, 0, 1, HypervisorService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hypervisorCpuTopologyEClass, HypervisorCpuTopology.class, "HypervisorCpuTopology", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHypervisorCpuTopology_Cores(), theEcorePackage.getEInt(), "cores", null, 0, 1, HypervisorCpuTopology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuTopology_Threads(), theEcorePackage.getEInt(), "threads", null, 0, 1, HypervisorCpuTopology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuTopology_Sockets(), theEcorePackage.getEInt(), "sockets", null, 0, 1, HypervisorCpuTopology.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hypervisorCpuInfoEClass, HypervisorCpuInfo.class, "HypervisorCpuInfo", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHypervisorCpuInfo_Vendor(), theEcorePackage.getEString(), "vendor", null, 0, 1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuInfo_Model(), theEcorePackage.getEString(), "model", null, 0, 1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuInfo_Arch(), theEcorePackage.getEString(), "arch", null, 0, 1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisorCpuInfo_Features(), theEcorePackage.getEString(), "features", null, 0, -1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getHypervisorCpuInfo_Topology(), this.getHypervisorCpuTopology(), null, "topology", null, 0, 1, HypervisorCpuInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hypervisorEClass, Hypervisor.class, "Hypervisor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHypervisor_Service(), this.getHypervisorService(), null, "service", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Host_ip(), theEcorePackage.getEString(), "host_ip", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Vcpus_used(), theEcorePackage.getEInt(), "vcpus_used", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Hypervisor_type(), theEcorePackage.getEString(), "hypervisor_type", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Local_gb_used(), theEcorePackage.getEInt(), "local_gb_used", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Hypervisor_hostname(), theEcorePackage.getEString(), "hypervisor_hostname", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Memory_mb_used(), theEcorePackage.getEInt(), "memory_mb_used", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Memory_mb(), theEcorePackage.getEInt(), "memory_mb", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Current_workload(), theEcorePackage.getEInt(), "current_workload", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Vcpus(), theEcorePackage.getEInt(), "vcpus", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getHypervisor_Cpu_info(), this.getHypervisorCpuInfo(), null, "cpu_info", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Running_vms(), theEcorePackage.getEInt(), "running_vms", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Free_disk_gb(), theEcorePackage.getEInt(), "free_disk_gb", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Hypervisor_version(), theEcorePackage.getEInt(), "hypervisor_version", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Disk_available_least(), theEcorePackage.getEInt(), "disk_available_least", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Local_gb(), theEcorePackage.getEInt(), "local_gb", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Free_ram_mb(), theEcorePackage.getEInt(), "free_ram_mb", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getHypervisor_Id(), theEcorePackage.getEInt(), "id", null, 0, 1, Hypervisor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(openStackVersionEEnum, OpenStackVersion.class, "OpenStackVersion"); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.FOLSOM); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.GRIZZLY); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.HAVANA); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.ICEHOUSE); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.JUNO); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.KILO); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.LIBERTY); + addEEnumLiteral(openStackVersionEEnum, OpenStackVersion.MITAKA); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org/sirius/persistence + createPersistenceAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "persistence", "http://openecomp.org/sirius/persistence" + }); + } + + /** + * Initializes the annotations for http://openecomp.org/sirius/persistence. + * + * + * @generated + */ + protected void createPersistenceAnnotations() { + String source = "http://openecomp.org/sirius/persistence"; + addAnnotation + (getOpenStackUser_Password(), + source, + new String[] { + "propertyFile", "bsa.properties" + }); + } + +} //LocationPackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackLocationImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackLocationImpl.java new file mode 100644 index 0000000..1b9ed42 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/impl/OpenStackLocationImpl.java @@ -0,0 +1,1375 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.location.impl; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.core.impl.NamedEntityImpl; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerPackage; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerSample; +import org.openecomp.ncomp.openstack.ceilometer.CeilometerService; +import org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest; +import org.openecomp.ncomp.openstack.ceilometer.SampleRequest; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.ComputeService; +import org.openecomp.ncomp.openstack.compute.Flavor; +import org.openecomp.ncomp.openstack.compute.Image; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction; +import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete; +import org.openecomp.ncomp.openstack.location.Hypervisor; +import org.openecomp.ncomp.openstack.location.LocationPackage; +import org.openecomp.ncomp.openstack.location.OpenStackLocation; +import org.openecomp.ncomp.openstack.location.OpenStackProject; +import org.openecomp.ncomp.openstack.location.OpenStackUser; +import org.openecomp.ncomp.openstack.location.OpenStackVersion; +import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest; +import org.openecomp.ncomp.openstack.neutron.CreatePortRequest; +import org.openecomp.ncomp.openstack.neutron.CreateRouterRequest; +import org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest; +import org.openecomp.ncomp.openstack.neutron.Network; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronService; +import org.openecomp.ncomp.openstack.neutron.Port; +import org.openecomp.ncomp.openstack.neutron.Router; +import org.openecomp.ncomp.openstack.neutron.Subnet; +import java.lang.reflect.InvocationTargetException; +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Open Stack Location'. + * + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.openecomp.ncomp.openstack.location.LocationPackage
+ * @generated
+ */
+public class LocationAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static LocationPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public LocationAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = LocationPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected LocationSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.OpenStackLocation Open Stack Location}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.location.OpenStackLocation
+ * @generated
+ */
+ public Adapter createOpenStackLocationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.OpenStackProject Open Stack Project}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.location.OpenStackProject
+ * @generated
+ */
+ public Adapter createOpenStackProjectAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.OpenStackUser Open Stack User}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.location.OpenStackUser
+ * @generated
+ */
+ public Adapter createOpenStackUserAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.HypervisorService Hypervisor Service}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.location.HypervisorService
+ * @generated
+ */
+ public Adapter createHypervisorServiceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuTopology Hypervisor Cpu Topology}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.location.HypervisorCpuTopology
+ * @generated
+ */
+ public Adapter createHypervisorCpuTopologyAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.HypervisorCpuInfo Hypervisor Cpu Info}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.location.HypervisorCpuInfo
+ * @generated
+ */
+ public Adapter createHypervisorCpuInfoAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.location.Hypervisor Hypervisor}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.location.Hypervisor
+ * @generated
+ */
+ public Adapter createHypervisorAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity Named Entity}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.core.NamedEntity
+ * @generated
+ */
+ public Adapter createNamedEntityAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.neutron.NeutronService Service}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.neutron.NeutronService
+ * @generated
+ */
+ public Adapter createNeutronServiceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.compute.ComputeService Service}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.compute.ComputeService
+ * @generated
+ */
+ public Adapter createComputeServiceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerService Service}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerService
+ * @generated
+ */
+ public Adapter createCeilometerServiceAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.openstack.ceilometer.CeilometerProject Project}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.openecomp.ncomp.openstack.ceilometer.CeilometerProject
+ * @generated
+ */
+ public Adapter createCeilometerProjectAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //LocationAdapterFactory
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationSwitch.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationSwitch.java
new file mode 100644
index 0000000..d60e0c6
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/location/util/LocationSwitch.java
@@ -0,0 +1,348 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.location.util;
+
+import org.openecomp.ncomp.core.NamedEntity;
+
+import org.openecomp.ncomp.openstack.ceilometer.CeilometerProject;
+import org.openecomp.ncomp.openstack.ceilometer.CeilometerService;
+import org.openecomp.ncomp.openstack.compute.ComputeService;
+
+import org.openecomp.ncomp.openstack.location.*;
+
+import org.openecomp.ncomp.openstack.neutron.NeutronService;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.openecomp.ncomp.openstack.location.LocationPackage
+ * @generated
+ */
+public class LocationSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case LocationPackage.OPEN_STACK_LOCATION: {
+ OpenStackLocation openStackLocation = (OpenStackLocation)theEObject;
+ T result = caseOpenStackLocation(openStackLocation);
+ if (result == null) result = caseNamedEntity(openStackLocation);
+ if (result == null) result = caseNeutronService(openStackLocation);
+ if (result == null) result = caseComputeService(openStackLocation);
+ if (result == null) result = caseCeilometerService(openStackLocation);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LocationPackage.OPEN_STACK_PROJECT: {
+ OpenStackProject openStackProject = (OpenStackProject)theEObject;
+ T result = caseOpenStackProject(openStackProject);
+ if (result == null) result = caseNamedEntity(openStackProject);
+ if (result == null) result = caseCeilometerProject(openStackProject);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LocationPackage.OPEN_STACK_USER: {
+ OpenStackUser openStackUser = (OpenStackUser)theEObject;
+ T result = caseOpenStackUser(openStackUser);
+ if (result == null) result = caseNamedEntity(openStackUser);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LocationPackage.HYPERVISOR_SERVICE: {
+ HypervisorService hypervisorService = (HypervisorService)theEObject;
+ T result = caseHypervisorService(hypervisorService);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LocationPackage.HYPERVISOR_CPU_TOPOLOGY: {
+ HypervisorCpuTopology hypervisorCpuTopology = (HypervisorCpuTopology)theEObject;
+ T result = caseHypervisorCpuTopology(hypervisorCpuTopology);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LocationPackage.HYPERVISOR_CPU_INFO: {
+ HypervisorCpuInfo hypervisorCpuInfo = (HypervisorCpuInfo)theEObject;
+ T result = caseHypervisorCpuInfo(hypervisorCpuInfo);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case LocationPackage.HYPERVISOR: {
+ Hypervisor hypervisor = (Hypervisor)theEObject;
+ T result = caseHypervisor(hypervisor);
+ if (result == null) result = caseNamedEntity(hypervisor);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Open Stack Location'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Open Stack Location'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenStackLocation(OpenStackLocation object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Open Stack Project'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Open Stack Project'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenStackProject(OpenStackProject object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Open Stack User'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Open Stack User'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOpenStackUser(OpenStackUser object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Hypervisor Service'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Hypervisor Service'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHypervisorService(HypervisorService object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Hypervisor Cpu Topology'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Hypervisor Cpu Topology'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHypervisorCpuTopology(HypervisorCpuTopology object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Hypervisor Cpu Info'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Hypervisor Cpu Info'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHypervisorCpuInfo(HypervisorCpuInfo object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Hypervisor'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Hypervisor'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHypervisor(Hypervisor object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Named Entity'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Named Entity'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNamedEntity(NamedEntity object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Service'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Service'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNeutronService(NeutronService object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Service'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Service'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseComputeService(ComputeService object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Service'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Service'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerService(CeilometerService object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Project'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Project'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCeilometerProject(CeilometerProject object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //LocationSwitch
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/AllocationPool.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/AllocationPool.java
new file mode 100644
index 0000000..63b5710
--- /dev/null
+++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/AllocationPool.java
@@ -0,0 +1,98 @@
+
+/*-
+ * ============LICENSE_START==========================================
+ * OPENECOMP - DCAE
+ * ===================================================================
+ * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END============================================
+ */
+
+/**
+ */
+package org.openecomp.ncomp.openstack.neutron;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * A representation of the model object 'Allocation Pool'.
+ *
+ *
+ * + * The following features are supported: + *
+ * If the meaning of the 'Start' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Start' attribute. + * @see #setStart(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getAllocationPool_Start() + * @model unique="false" + * @generated + */ + String getStart(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getStart Start}' attribute. + * + * + * @param value the new value of the 'Start' attribute. + * @see #getStart() + * @generated + */ + void setStart(String value); + + /** + * Returns the value of the 'End' attribute. + * + *+ * If the meaning of the 'End' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'End' attribute. + * @see #setEnd(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getAllocationPool_End() + * @model unique="false" + * @generated + */ + String getEnd(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.AllocationPool#getEnd End}' attribute. + * + * + * @param value the new value of the 'End' attribute. + * @see #getEnd() + * @generated + */ + void setEnd(String value); + +} // AllocationPool diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingProfile.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingProfile.java new file mode 100644 index 0000000..6f64073 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingProfile.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Binding Profile'. + * + * + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getBindingProfile() + * @model + * @generated + */ +public interface BindingProfile extends EObject { +} // BindingProfile diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingVifDetail.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingVifDetail.java new file mode 100644 index 0000000..a44f6ef --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/BindingVifDetail.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Binding Vif Detail'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Ovs hybrid plug' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ovs hybrid plug' attribute. + * @see #setOvs_hybrid_plug(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getBindingVifDetail_Ovs_hybrid_plug() + * @model unique="false" + * @generated + */ + Boolean getOvs_hybrid_plug(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getOvs_hybrid_plug Ovs hybrid plug}' attribute. + * + * + * @param value the new value of the 'Ovs hybrid plug' attribute. + * @see #getOvs_hybrid_plug() + * @generated + */ + void setOvs_hybrid_plug(Boolean value); + + /** + * Returns the value of the 'Port filter' attribute. + * + *+ * If the meaning of the 'Port filter' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Port filter' attribute. + * @see #setPort_filter(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getBindingVifDetail_Port_filter() + * @model unique="false" + * @generated + */ + Boolean getPort_filter(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.BindingVifDetail#getPort_filter Port filter}' attribute. + * + * + * @param value the new value of the 'Port filter' attribute. + * @see #getPort_filter() + * @generated + */ + void setPort_filter(Boolean value); + +} // BindingVifDetail diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateNetworkRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateNetworkRequest.java new file mode 100644 index 0000000..88674e9 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateNetworkRequest.java @@ -0,0 +1,208 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + + +/** + * + * A representation of the model object 'Create Network Request'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Provider Network Type' attribute. + * + *+ * If the meaning of the 'Provider Network Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Provider Network Type' attribute. + * @see #setProviderNetworkType(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_ProviderNetworkType() + * @model unique="false" + * annotation="http://openecomp.org/sirius/openstack name='provider:network_type'" + * @generated + */ + String getProviderNetworkType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderNetworkType Provider Network Type}' attribute. + * + * + * @param value the new value of the 'Provider Network Type' attribute. + * @see #getProviderNetworkType() + * @generated + */ + void setProviderNetworkType(String value); + + /** + * Returns the value of the 'Provider Physical Network' attribute. + * + *+ * If the meaning of the 'Provider Physical Network' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Provider Physical Network' attribute. + * @see #setProviderPhysicalNetwork(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_ProviderPhysicalNetwork() + * @model unique="false" + * annotation="http://openecomp.org/sirius/openstack name='provider:physical_network'" + * @generated + */ + String getProviderPhysicalNetwork(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderPhysicalNetwork Provider Physical Network}' attribute. + * + * + * @param value the new value of the 'Provider Physical Network' attribute. + * @see #getProviderPhysicalNetwork() + * @generated + */ + void setProviderPhysicalNetwork(String value); + + /** + * Returns the value of the 'Provider Segmentation Id' attribute. + * + *+ * If the meaning of the 'Provider Segmentation Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Provider Segmentation Id' attribute. + * @see #setProviderSegmentationId(int) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_ProviderSegmentationId() + * @model unique="false" + * annotation="http://openecomp.org/sirius/openstack name='provider:segmentation_id'" + * @generated + */ + int getProviderSegmentationId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getProviderSegmentationId Provider Segmentation Id}' attribute. + * + * + * @param value the new value of the 'Provider Segmentation Id' attribute. + * @see #getProviderSegmentationId() + * @generated + */ + void setProviderSegmentationId(int value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Shared' attribute. + * + *+ * If the meaning of the 'Shared' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Shared' attribute. + * @see #setShared(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateNetworkRequest_Shared() + * @model unique="false" + * @generated + */ + Boolean getShared(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest#getShared Shared}' attribute. + * + * + * @param value the new value of the 'Shared' attribute. + * @see #getShared() + * @generated + */ + void setShared(Boolean value); + +} // CreateNetworkRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreatePortRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreatePortRequest.java new file mode 100644 index 0000000..ed9ed96 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreatePortRequest.java @@ -0,0 +1,226 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + + +/** + * + * A representation of the model object 'Create Port Request'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Binding Vnic Type' attribute. + * + *+ * If the meaning of the 'Binding Vnic Type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Binding Vnic Type' attribute. + * @see #setBindingVnicType(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_BindingVnicType() + * @model unique="false" + * annotation="http://openecomp.org/sirius/openstack name='binding:vnic_type'" + * @generated + */ + String getBindingVnicType(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getBindingVnicType Binding Vnic Type}' attribute. + * + * + * @param value the new value of the 'Binding Vnic Type' attribute. + * @see #getBindingVnicType() + * @generated + */ + void setBindingVnicType(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Fixed ips' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.FixedIp}. + * + *+ * If the meaning of the 'Fixed ips' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Fixed ips' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Fixed_ips() + * @model containment="true" + * annotation="http://openecomp.org/sirius/openstack removeEmptyList='true'" + * @generated + */ + EList+ * If the meaning of the 'Mac address' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Mac address' attribute. + * @see #setMac_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Mac_address() + * @model unique="false" + * @generated + */ + String getMac_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getMac_address Mac address}' attribute. + * + * + * @param value the new value of the 'Mac address' attribute. + * @see #getMac_address() + * @generated + */ + void setMac_address(String value); + + /** + * Returns the value of the 'Network id' attribute. + * + *+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreatePortRequest_Network_id() + * @model unique="false" required="true" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreatePortRequest#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + +} // CreatePortRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateRouterRequest.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateRouterRequest.java new file mode 100644 index 0000000..38d3165 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/CreateRouterRequest.java @@ -0,0 +1,187 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + + +/** + * + * A representation of the model object 'Create Router Request'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Shared' attribute. + * + *+ * If the meaning of the 'Shared' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Shared' attribute. + * @see #setShared(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Shared() + * @model unique="false" + * @generated + */ + Boolean getShared(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getShared Shared}' attribute. + * + * + * @param value the new value of the 'Shared' attribute. + * @see #getShared() + * @generated + */ + void setShared(Boolean value); + + /** + * Returns the value of the 'External Network' attribute. + * + *+ * If the meaning of the 'External Network' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'External Network' attribute. + * @see #setExternalNetwork(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_ExternalNetwork() + * @model unique="false" + * @generated + */ + String getExternalNetwork(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateRouterRequest#getExternalNetwork External Network}' attribute. + * + * + * @param value the new value of the 'External Network' attribute. + * @see #getExternalNetwork() + * @generated + */ + void setExternalNetwork(String value); + + /** + * Returns the value of the 'Ports' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Ports' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ports' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Ports() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Subnets' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Subnets' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateRouterRequest_Subnets() + * @model unique="false" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Network id' attribute. + * + *+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Network_id() + * @model unique="false" required="true" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + + /** + * Returns the value of the 'Ip version' attribute. + * + *+ * If the meaning of the 'Ip version' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ip version' attribute. + * @see #setIp_version(int) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Ip_version() + * @model unique="false" + * @generated + */ + int getIp_version(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getIp_version Ip version}' attribute. + * + * + * @param value the new value of the 'Ip version' attribute. + * @see #getIp_version() + * @generated + */ + void setIp_version(int value); + + /** + * Returns the value of the 'Cidr' attribute. + * + *+ * If the meaning of the 'Cidr' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Cidr' attribute. + * @see #setCidr(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Cidr() + * @model unique="false" + * @generated + */ + String getCidr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getCidr Cidr}' attribute. + * + * + * @param value the new value of the 'Cidr' attribute. + * @see #getCidr() + * @generated + */ + void setCidr(String value); + + /** + * Returns the value of the 'Allocation pools' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.AllocationPool}. + * + *+ * If the meaning of the 'Allocation pools' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Allocation pools' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Allocation_pools() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Dns nameservers' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Dns nameservers' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Dns_nameservers() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Enable dhcp' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Enable dhcp' attribute. + * @see #setEnable_dhcp(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Enable_dhcp() + * @model unique="false" + * @generated + */ + Boolean getEnable_dhcp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getEnable_dhcp Enable dhcp}' attribute. + * + * + * @param value the new value of the 'Enable dhcp' attribute. + * @see #getEnable_dhcp() + * @generated + */ + void setEnable_dhcp(Boolean value); + + /** + * Returns the value of the 'Gateway ip' attribute. + * + *+ * If the meaning of the 'Gateway ip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Gateway ip' attribute. + * @see #setGateway_ip(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getCreateSubnetRequest_Gateway_ip() + * @model unique="false" + * @generated + */ + String getGateway_ip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest#getGateway_ip Gateway ip}' attribute. + * + * + * @param value the new value of the 'Gateway ip' attribute. + * @see #getGateway_ip() + * @generated + */ + void setGateway_ip(String value); + +} // CreateSubnetRequest diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/ExternalGateway.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/ExternalGateway.java new file mode 100644 index 0000000..2c9293e --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/ExternalGateway.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'External Gateway'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Enable snat' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Enable snat' attribute. + * @see #setEnable_snat(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getExternalGateway_Enable_snat() + * @model unique="false" + * @generated + */ + Boolean getEnable_snat(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getEnable_snat Enable snat}' attribute. + * + * + * @param value the new value of the 'Enable snat' attribute. + * @see #getEnable_snat() + * @generated + */ + void setEnable_snat(Boolean value); + + /** + * Returns the value of the 'Network id' attribute. + * + *+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getExternalGateway_Network_id() + * @model unique="false" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.ExternalGateway#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + +} // ExternalGateway diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/FixedIp.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/FixedIp.java new file mode 100644 index 0000000..b671513 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/FixedIp.java @@ -0,0 +1,98 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Fixed Ip'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Ip address' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ip address' attribute. + * @see #setIp_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getFixedIp_Ip_address() + * @model unique="false" + * @generated + */ + String getIp_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.FixedIp#getIp_address Ip address}' attribute. + * + * + * @param value the new value of the 'Ip address' attribute. + * @see #getIp_address() + * @generated + */ + void setIp_address(String value); + + /** + * Returns the value of the 'Subnet id' attribute. + * + *+ * If the meaning of the 'Subnet id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Subnet id' attribute. + * @see #setSubnet_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getFixedIp_Subnet_id() + * @model unique="false" + * @generated + */ + String getSubnet_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.FixedIp#getSubnet_id Subnet id}' attribute. + * + * + * @param value the new value of the 'Subnet id' attribute. + * @see #getSubnet_id() + * @generated + */ + void setSubnet_id(String value); + +} // FixedIp diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Network.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Network.java new file mode 100644 index 0000000..ccc92b6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Network.java @@ -0,0 +1,331 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Network'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Provider network type' attribute. + * + *+ * If the meaning of the 'Provider network type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Provider network type' attribute. + * @see #setProvider_network_type(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Provider_network_type() + * @model unique="false" + * @generated + */ + String getProvider_network_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_network_type Provider network type}' attribute. + * + * + * @param value the new value of the 'Provider network type' attribute. + * @see #getProvider_network_type() + * @generated + */ + void setProvider_network_type(String value); + + /** + * Returns the value of the 'Provider physical network' attribute. + * + *+ * If the meaning of the 'Provider physical network' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Provider physical network' attribute. + * @see #setProvider_physical_network(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Provider_physical_network() + * @model unique="false" + * @generated + */ + String getProvider_physical_network(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_physical_network Provider physical network}' attribute. + * + * + * @param value the new value of the 'Provider physical network' attribute. + * @see #getProvider_physical_network() + * @generated + */ + void setProvider_physical_network(String value); + + /** + * Returns the value of the 'Provider segmentation id' attribute. + * + *+ * If the meaning of the 'Provider segmentation id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Provider segmentation id' attribute. + * @see #setProvider_segmentation_id(Integer) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Provider_segmentation_id() + * @model unique="false" + * @generated + */ + Integer getProvider_segmentation_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getProvider_segmentation_id Provider segmentation id}' attribute. + * + * + * @param value the new value of the 'Provider segmentation id' attribute. + * @see #getProvider_segmentation_id() + * @generated + */ + void setProvider_segmentation_id(Integer value); + + /** + * Returns the value of the 'Router external' attribute. + * + *+ * If the meaning of the 'Router external' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Router external' attribute. + * @see #setRouter_external(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Router_external() + * @model unique="false" + * @generated + */ + Boolean getRouter_external(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getRouter_external Router external}' attribute. + * + * + * @param value the new value of the 'Router external' attribute. + * @see #getRouter_external() + * @generated + */ + void setRouter_external(Boolean value); + + /** + * Returns the value of the 'Shared' attribute. + * + *+ * If the meaning of the 'Shared' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Shared' attribute. + * @see #setShared(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Shared() + * @model unique="false" + * @generated + */ + Boolean getShared(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getShared Shared}' attribute. + * + * + * @param value the new value of the 'Shared' attribute. + * @see #getShared() + * @generated + */ + void setShared(Boolean value); + + /** + * Returns the value of the 'Status' attribute. + * + *+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Subnets' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Subnets' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Subnets' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Subnets() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNetwork_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Network#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // Network diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFactory.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFactory.java new file mode 100644 index 0000000..0262c5c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFactory.java @@ -0,0 +1,198 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage + * @generated + */ +public interface NeutronFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + NeutronFactory eINSTANCE = org.openecomp.ncomp.openstack.neutron.impl.NeutronFactoryImpl.init(); + + /** + * Returns a new object of class 'Network'. + * + * + * @return a new object of class 'Network'. + * @generated + */ + Network createNetwork(); + + /** + * Returns a new object of class 'Subnet'. + * + * + * @return a new object of class 'Subnet'. + * @generated + */ + Subnet createSubnet(); + + /** + * Returns a new object of class 'Allocation Pool'. + * + * + * @return a new object of class 'Allocation Pool'. + * @generated + */ + AllocationPool createAllocationPool(); + + /** + * Returns a new object of class 'Router'. + * + * + * @return a new object of class 'Router'. + * @generated + */ + Router createRouter(); + + /** + * Returns a new object of class 'Port'. + * + * + * @return a new object of class 'Port'. + * @generated + */ + Port createPort(); + + /** + * Returns a new object of class 'Security Group'. + * + * + * @return a new object of class 'Security Group'. + * @generated + */ + NeutronSecurityGroup createNeutronSecurityGroup(); + + /** + * Returns a new object of class 'Security Rule'. + * + * + * @return a new object of class 'Security Rule'. + * @generated + */ + NeutronSecurityRule createNeutronSecurityRule(); + + /** + * Returns a new object of class 'Floating Ip'. + * + * + * @return a new object of class 'Floating Ip'. + * @generated + */ + NeutronFloatingIp createNeutronFloatingIp(); + + /** + * Returns a new object of class 'Binding Profile'. + * + * + * @return a new object of class 'Binding Profile'. + * @generated + */ + BindingProfile createBindingProfile(); + + /** + * Returns a new object of class 'Binding Vif Detail'. + * + * + * @return a new object of class 'Binding Vif Detail'. + * @generated + */ + BindingVifDetail createBindingVifDetail(); + + /** + * Returns a new object of class 'Fixed Ip'. + * + * + * @return a new object of class 'Fixed Ip'. + * @generated + */ + FixedIp createFixedIp(); + + /** + * Returns a new object of class 'External Gateway'. + * + * + * @return a new object of class 'External Gateway'. + * @generated + */ + ExternalGateway createExternalGateway(); + + /** + * Returns a new object of class 'Create Network Request'. + * + * + * @return a new object of class 'Create Network Request'. + * @generated + */ + CreateNetworkRequest createCreateNetworkRequest(); + + /** + * Returns a new object of class 'Create Subnet Request'. + * + * + * @return a new object of class 'Create Subnet Request'. + * @generated + */ + CreateSubnetRequest createCreateSubnetRequest(); + + /** + * Returns a new object of class 'Create Router Request'. + * + * + * @return a new object of class 'Create Router Request'. + * @generated + */ + CreateRouterRequest createCreateRouterRequest(); + + /** + * Returns a new object of class 'Create Port Request'. + * + * + * @return a new object of class 'Create Port Request'. + * @generated + */ + CreatePortRequest createCreatePortRequest(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + NeutronPackage getNeutronPackage(); + +} //NeutronFactory diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFloatingIp.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFloatingIp.java new file mode 100644 index 0000000..4ae2622 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronFloatingIp.java @@ -0,0 +1,286 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + + +/** + * + * A representation of the model object 'Floating Ip'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Floating network id' attribute. + * + *+ * If the meaning of the 'Floating network id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Floating network id' attribute. + * @see #setFloating_network_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Floating_network_id() + * @model unique="false" + * @generated + */ + String getFloating_network_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_network_id Floating network id}' attribute. + * + * + * @param value the new value of the 'Floating network id' attribute. + * @see #getFloating_network_id() + * @generated + */ + void setFloating_network_id(String value); + + /** + * Returns the value of the 'Router id' attribute. + * + *+ * If the meaning of the 'Router id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Router id' attribute. + * @see #setRouter_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Router_id() + * @model unique="false" + * @generated + */ + String getRouter_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getRouter_id Router id}' attribute. + * + * + * @param value the new value of the 'Router id' attribute. + * @see #getRouter_id() + * @generated + */ + void setRouter_id(String value); + + /** + * Returns the value of the 'Fixed ip address' attribute. + * + *+ * If the meaning of the 'Fixed ip address' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Fixed ip address' attribute. + * @see #setFixed_ip_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Fixed_ip_address() + * @model unique="false" + * @generated + */ + String getFixed_ip_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFixed_ip_address Fixed ip address}' attribute. + * + * + * @param value the new value of the 'Fixed ip address' attribute. + * @see #getFixed_ip_address() + * @generated + */ + void setFixed_ip_address(String value); + + /** + * Returns the value of the 'Floating ip address' attribute. + * + *+ * If the meaning of the 'Floating ip address' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Floating ip address' attribute. + * @see #setFloating_ip_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Floating_ip_address() + * @model unique="false" + * @generated + */ + String getFloating_ip_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getFloating_ip_address Floating ip address}' attribute. + * + * + * @param value the new value of the 'Floating ip address' attribute. + * @see #getFloating_ip_address() + * @generated + */ + void setFloating_ip_address(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'Port id' attribute. + * + *+ * If the meaning of the 'Port id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Port id' attribute. + * @see #setPort_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronFloatingIp_Port_id() + * @model unique="false" + * @generated + */ + String getPort_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp#getPort_id Port id}' attribute. + * + * + * @param value the new value of the 'Port id' attribute. + * @see #getPort_id() + * @generated + */ + void setPort_id(String value); + +} // NeutronFloatingIp diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronObject.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronObject.java new file mode 100644 index 0000000..0018968 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronObject.java @@ -0,0 +1,39 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Object'. + * + * + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronObject() + * @model abstract="true" + * @generated + */ +public interface NeutronObject extends EObject { +} // NeutronObject diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronPackage.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronPackage.java new file mode 100644 index 0000000..33eb6b0 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronPackage.java @@ -0,0 +1,4335 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.openecomp.ncomp.openstack.core.CorePackage; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Description' attribute. + * + *+ * If the meaning of the 'Description' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Description' attribute. + * @see #setDescription(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Description() + * @model unique="false" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getDescription Description}' attribute. + * + * + * @param value the new value of the 'Description' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the 'Security group rules' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule}. + * + *+ * If the meaning of the 'Security group rules' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Security group rules' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Security_group_rules() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityGroup_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // NeutronSecurityGroup diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityRule.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityRule.java new file mode 100644 index 0000000..94fa065 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronSecurityRule.java @@ -0,0 +1,313 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + + +/** + * + * A representation of the model object 'Security Rule'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Direction' attribute. + * + *+ * If the meaning of the 'Direction' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Direction' attribute. + * @see #setDirection(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Direction() + * @model unique="false" + * @generated + */ + String getDirection(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getDirection Direction}' attribute. + * + * + * @param value the new value of the 'Direction' attribute. + * @see #getDirection() + * @generated + */ + void setDirection(String value); + + /** + * Returns the value of the 'Ethertype' attribute. + * + *+ * If the meaning of the 'Ethertype' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ethertype' attribute. + * @see #setEthertype(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Ethertype() + * @model unique="false" + * @generated + */ + String getEthertype(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getEthertype Ethertype}' attribute. + * + * + * @param value the new value of the 'Ethertype' attribute. + * @see #getEthertype() + * @generated + */ + void setEthertype(String value); + + /** + * Returns the value of the 'Port range min' attribute. + * + *+ * If the meaning of the 'Port range min' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Port range min' attribute. + * @see #setPort_range_min(Integer) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Port_range_min() + * @model unique="false" + * @generated + */ + Integer getPort_range_min(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_min Port range min}' attribute. + * + * + * @param value the new value of the 'Port range min' attribute. + * @see #getPort_range_min() + * @generated + */ + void setPort_range_min(Integer value); + + /** + * Returns the value of the 'Port range max' attribute. + * + *+ * If the meaning of the 'Port range max' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Port range max' attribute. + * @see #setPort_range_max(Integer) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Port_range_max() + * @model unique="false" + * @generated + */ + Integer getPort_range_max(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getPort_range_max Port range max}' attribute. + * + * + * @param value the new value of the 'Port range max' attribute. + * @see #getPort_range_max() + * @generated + */ + void setPort_range_max(Integer value); + + /** + * Returns the value of the 'Protocol' attribute. + * + *+ * If the meaning of the 'Protocol' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Protocol' attribute. + * @see #setProtocol(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Protocol() + * @model unique="false" + * @generated + */ + String getProtocol(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getProtocol Protocol}' attribute. + * + * + * @param value the new value of the 'Protocol' attribute. + * @see #getProtocol() + * @generated + */ + void setProtocol(String value); + + /** + * Returns the value of the 'Remote group id' attribute. + * + *+ * If the meaning of the 'Remote group id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Remote group id' attribute. + * @see #setRemote_group_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Remote_group_id() + * @model unique="false" + * @generated + */ + String getRemote_group_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_group_id Remote group id}' attribute. + * + * + * @param value the new value of the 'Remote group id' attribute. + * @see #getRemote_group_id() + * @generated + */ + void setRemote_group_id(String value); + + /** + * Returns the value of the 'Remote ip prefix' attribute. + * + *+ * If the meaning of the 'Remote ip prefix' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Remote ip prefix' attribute. + * @see #setRemote_ip_prefix(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Remote_ip_prefix() + * @model unique="false" + * @generated + */ + String getRemote_ip_prefix(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getRemote_ip_prefix Remote ip prefix}' attribute. + * + * + * @param value the new value of the 'Remote ip prefix' attribute. + * @see #getRemote_ip_prefix() + * @generated + */ + void setRemote_ip_prefix(String value); + + /** + * Returns the value of the 'Security group id' attribute. + * + *+ * If the meaning of the 'Security group id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Security group id' attribute. + * @see #setSecurity_group_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Security_group_id() + * @model unique="false" + * @generated + */ + String getSecurity_group_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getSecurity_group_id Security group id}' attribute. + * + * + * @param value the new value of the 'Security group id' attribute. + * @see #getSecurity_group_id() + * @generated + */ + void setSecurity_group_id(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronSecurityRule_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // NeutronSecurityRule diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronService.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronService.java new file mode 100644 index 0000000..128c596 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/NeutronService.java @@ -0,0 +1,111 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Service'. + * + * + * + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getNeutronService() + * @model abstract="true" + * @generated + */ +public interface NeutronService extends EObject { + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + Network createNetwork(CreateNetworkRequest request); + + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + Subnet createSubnet(CreateSubnetRequest request); + + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + Port createPort(CreatePortRequest request); + + /** + * + * + * @model unique="false" requestUnique="false" + * @generated + */ + Router createRouter(CreateRouterRequest request); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteNetwork(String projectName, String name); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteSubnet(String projectName, String name); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deletePort(String projectName, String name); + + /** + * + * + * @model projectNameUnique="false" nameUnique="false" + * @generated + */ + void deleteRouter(String projectName, String name); + + /** + * + * + * @model projectNameUnique="false" ipIdUnique="false" portIdUnique="false" + * @generated + */ + void associateFloatingIp(String projectName, String ipId, String portId); + +} // NeutronService diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Port.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Port.java new file mode 100644 index 0000000..ca409f1 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Port.java @@ -0,0 +1,517 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Port'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'External gateway info' containment reference. + * + *+ * If the meaning of the 'External gateway info' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'External gateway info' containment reference. + * @see #setExternal_gateway_info(ExternalGateway) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_External_gateway_info() + * @model containment="true" + * @generated + */ + ExternalGateway getExternal_gateway_info(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getExternal_gateway_info External gateway info}' containment reference. + * + * + * @param value the new value of the 'External gateway info' containment reference. + * @see #getExternal_gateway_info() + * @generated + */ + void setExternal_gateway_info(ExternalGateway value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + + /** + * Returns the value of the 'Allowed address pairs' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Allowed address pairs' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Allowed address pairs' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Allowed_address_pairs() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Binding host id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Binding host id' attribute. + * @see #setBinding_host_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_host_id() + * @model unique="false" + * @generated + */ + String getBinding_host_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_host_id Binding host id}' attribute. + * + * + * @param value the new value of the 'Binding host id' attribute. + * @see #getBinding_host_id() + * @generated + */ + void setBinding_host_id(String value); + + /** + * Returns the value of the 'Binding profile' containment reference. + * + *+ * If the meaning of the 'Binding profile' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Binding profile' containment reference. + * @see #setBinding_profile(BindingProfile) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_profile() + * @model containment="true" + * @generated + */ + BindingProfile getBinding_profile(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_profile Binding profile}' containment reference. + * + * + * @param value the new value of the 'Binding profile' containment reference. + * @see #getBinding_profile() + * @generated + */ + void setBinding_profile(BindingProfile value); + + /** + * Returns the value of the 'Binding vif details' containment reference. + * + *+ * If the meaning of the 'Binding vif details' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Binding vif details' containment reference. + * @see #setBinding_vif_details(BindingVifDetail) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_vif_details() + * @model containment="true" + * @generated + */ + BindingVifDetail getBinding_vif_details(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_details Binding vif details}' containment reference. + * + * + * @param value the new value of the 'Binding vif details' containment reference. + * @see #getBinding_vif_details() + * @generated + */ + void setBinding_vif_details(BindingVifDetail value); + + /** + * Returns the value of the 'Binding vif type' attribute. + * + *+ * If the meaning of the 'Binding vif type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Binding vif type' attribute. + * @see #setBinding_vif_type(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_vif_type() + * @model unique="false" + * @generated + */ + String getBinding_vif_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vif_type Binding vif type}' attribute. + * + * + * @param value the new value of the 'Binding vif type' attribute. + * @see #getBinding_vif_type() + * @generated + */ + void setBinding_vif_type(String value); + + /** + * Returns the value of the 'Binding vnic type' attribute. + * + *+ * If the meaning of the 'Binding vnic type' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Binding vnic type' attribute. + * @see #setBinding_vnic_type(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Binding_vnic_type() + * @model unique="false" + * @generated + */ + String getBinding_vnic_type(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getBinding_vnic_type Binding vnic type}' attribute. + * + * + * @param value the new value of the 'Binding vnic type' attribute. + * @see #getBinding_vnic_type() + * @generated + */ + void setBinding_vnic_type(String value); + + /** + * Returns the value of the 'Device id' attribute. + * + *+ * If the meaning of the 'Device id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Device id' attribute. + * @see #setDevice_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Device_id() + * @model unique="false" + * @generated + */ + String getDevice_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_id Device id}' attribute. + * + * + * @param value the new value of the 'Device id' attribute. + * @see #getDevice_id() + * @generated + */ + void setDevice_id(String value); + + /** + * Returns the value of the 'Device owner' attribute. + * + *+ * If the meaning of the 'Device owner' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Device owner' attribute. + * @see #setDevice_owner(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Device_owner() + * @model unique="false" + * @generated + */ + String getDevice_owner(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getDevice_owner Device owner}' attribute. + * + * + * @param value the new value of the 'Device owner' attribute. + * @see #getDevice_owner() + * @generated + */ + void setDevice_owner(String value); + + /** + * Returns the value of the 'Extra dhcp opts' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Extra dhcp opts' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Extra dhcp opts' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Extra_dhcp_opts() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Fixed ips' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Fixed ips' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Fixed_ips() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Mac address' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Mac address' attribute. + * @see #setMac_address(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Mac_address() + * @model unique="false" + * @generated + */ + String getMac_address(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getMac_address Mac address}' attribute. + * + * + * @param value the new value of the 'Mac address' attribute. + * @see #getMac_address() + * @generated + */ + void setMac_address(String value); + + /** + * Returns the value of the 'Network id' attribute. + * + *+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Network_id() + * @model unique="false" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Port#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + + /** + * Returns the value of the 'Security groups' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Security groups' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Security groups' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getPort_Security_groups() + * @model unique="false" + * @generated + */ + EList+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'External gateway info' containment reference. + * + *+ * If the meaning of the 'External gateway info' containment reference isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'External gateway info' containment reference. + * @see #setExternal_gateway_info(ExternalGateway) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_External_gateway_info() + * @model containment="true" + * @generated + */ + ExternalGateway getExternal_gateway_info(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getExternal_gateway_info External gateway info}' containment reference. + * + * + * @param value the new value of the 'External gateway info' containment reference. + * @see #getExternal_gateway_info() + * @generated + */ + void setExternal_gateway_info(ExternalGateway value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getRouter_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Router#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // Router diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Subnet.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Subnet.java new file mode 100644 index 0000000..01f824b --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/Subnet.java @@ -0,0 +1,365 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Subnet'. + * + * + *+ * The following features are supported: + *
+ * If the meaning of the 'Id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Id' attribute. + * @see #setId(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Id() + * @model unique="false" + * @generated + */ + String getId(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getId Id}' attribute. + * + * + * @param value the new value of the 'Id' attribute. + * @see #getId() + * @generated + */ + void setId(String value); + + /** + * Returns the value of the 'Name' attribute. + * + *+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Name() + * @model unique="false" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *+ * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Status' attribute. + * @see #setStatus(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getStatus Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Admin state up' attribute. + * + *+ * If the meaning of the 'Admin state up' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Admin state up' attribute. + * @see #setAdmin_state_up(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Admin_state_up() + * @model unique="false" + * @generated + */ + Boolean getAdmin_state_up(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getAdmin_state_up Admin state up}' attribute. + * + * + * @param value the new value of the 'Admin state up' attribute. + * @see #getAdmin_state_up() + * @generated + */ + void setAdmin_state_up(Boolean value); + + /** + * Returns the value of the 'Cidr' attribute. + * + *+ * If the meaning of the 'Cidr' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Cidr' attribute. + * @see #setCidr(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Cidr() + * @model unique="false" + * @generated + */ + String getCidr(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getCidr Cidr}' attribute. + * + * + * @param value the new value of the 'Cidr' attribute. + * @see #getCidr() + * @generated + */ + void setCidr(String value); + + /** + * Returns the value of the 'Allocation pools' containment reference list. + * The list contents are of type {@link org.openecomp.ncomp.openstack.neutron.AllocationPool}. + * + *+ * If the meaning of the 'Allocation pools' containment reference list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Allocation pools' containment reference list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Allocation_pools() + * @model containment="true" + * @generated + */ + EList+ * If the meaning of the 'Dns nameservers' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Dns nameservers' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Dns_nameservers() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Enable dhcp' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Enable dhcp' attribute. + * @see #setEnable_dhcp(Boolean) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Enable_dhcp() + * @model unique="false" + * @generated + */ + Boolean getEnable_dhcp(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getEnable_dhcp Enable dhcp}' attribute. + * + * + * @param value the new value of the 'Enable dhcp' attribute. + * @see #getEnable_dhcp() + * @generated + */ + void setEnable_dhcp(Boolean value); + + /** + * Returns the value of the 'Gateway ip' attribute. + * + *+ * If the meaning of the 'Gateway ip' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Gateway ip' attribute. + * @see #setGateway_ip(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Gateway_ip() + * @model unique="false" + * @generated + */ + String getGateway_ip(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getGateway_ip Gateway ip}' attribute. + * + * + * @param value the new value of the 'Gateway ip' attribute. + * @see #getGateway_ip() + * @generated + */ + void setGateway_ip(String value); + + /** + * Returns the value of the 'Host routes' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *+ * If the meaning of the 'Host routes' attribute list isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Host routes' attribute list. + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Host_routes() + * @model unique="false" + * @generated + */ + EList+ * If the meaning of the 'Ip version' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Ip version' attribute. + * @see #setIp_version(Integer) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Ip_version() + * @model unique="false" + * @generated + */ + Integer getIp_version(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getIp_version Ip version}' attribute. + * + * + * @param value the new value of the 'Ip version' attribute. + * @see #getIp_version() + * @generated + */ + void setIp_version(Integer value); + + /** + * Returns the value of the 'Network id' attribute. + * + *+ * If the meaning of the 'Network id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Network id' attribute. + * @see #setNetwork_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Network_id() + * @model unique="false" + * @generated + */ + String getNetwork_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getNetwork_id Network id}' attribute. + * + * + * @param value the new value of the 'Network id' attribute. + * @see #getNetwork_id() + * @generated + */ + void setNetwork_id(String value); + + /** + * Returns the value of the 'Tenant id' attribute. + * + *+ * If the meaning of the 'Tenant id' attribute isn't clear, + * there really should be more of a description here... + *
+ * + * @return the value of the 'Tenant id' attribute. + * @see #setTenant_id(String) + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#getSubnet_Tenant_id() + * @model unique="false" + * @generated + */ + String getTenant_id(); + + /** + * Sets the value of the '{@link org.openecomp.ncomp.openstack.neutron.Subnet#getTenant_id Tenant id}' attribute. + * + * + * @param value the new value of the 'Tenant id' attribute. + * @see #getTenant_id() + * @generated + */ + void setTenant_id(String value); + +} // Subnet diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java new file mode 100644 index 0000000..2bb19b7 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/AllocationPoolImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.AllocationPool; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Allocation Pool'. + * + *+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public class BindingProfileImpl extends MinimalEObjectImpl.Container implements BindingProfile { + /** + * + * + * @generated + */ + protected BindingProfileImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.BINDING_PROFILE; + } + +} //BindingProfileImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java new file mode 100644 index 0000000..32770b5 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/BindingVifDetailImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.BindingVifDetail; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * + * An implementation of the model object 'Binding Vif Detail'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public abstract class NeutronObjectImpl extends MinimalEObjectImpl.Container implements NeutronObject { + /** + * + * + * @generated + */ + protected NeutronObjectImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_OBJECT; + } + +} //NeutronObjectImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java new file mode 100644 index 0000000..d105474 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronPackageImpl.java @@ -0,0 +1,1962 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.core.CorePackage; + +import org.openecomp.ncomp.openstack.neutron.AllocationPool; +import org.openecomp.ncomp.openstack.neutron.BindingProfile; +import org.openecomp.ncomp.openstack.neutron.BindingVifDetail; +import org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest; +import org.openecomp.ncomp.openstack.neutron.CreatePortRequest; +import org.openecomp.ncomp.openstack.neutron.CreateRouterRequest; +import org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest; +import org.openecomp.ncomp.openstack.neutron.ExternalGateway; +import org.openecomp.ncomp.openstack.neutron.FixedIp; +import org.openecomp.ncomp.openstack.neutron.Network; +import org.openecomp.ncomp.openstack.neutron.NeutronFactory; +import org.openecomp.ncomp.openstack.neutron.NeutronFloatingIp; +import org.openecomp.ncomp.openstack.neutron.NeutronObject; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronRequest; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule; +import org.openecomp.ncomp.openstack.neutron.NeutronService; +import org.openecomp.ncomp.openstack.neutron.Port; +import org.openecomp.ncomp.openstack.neutron.Router; +import org.openecomp.ncomp.openstack.neutron.Subnet; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class NeutronPackageImpl extends EPackageImpl implements NeutronPackage { + /** + * + * + * @generated + */ + private EClass neutronServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronObjectEClass = null; + + /** + * + * + * @generated + */ + private EClass networkEClass = null; + + /** + * + * + * @generated + */ + private EClass subnetEClass = null; + + /** + * + * + * @generated + */ + private EClass allocationPoolEClass = null; + + /** + * + * + * @generated + */ + private EClass routerEClass = null; + + /** + * + * + * @generated + */ + private EClass portEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronSecurityGroupEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronSecurityRuleEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronFloatingIpEClass = null; + + /** + * + * + * @generated + */ + private EClass bindingProfileEClass = null; + + /** + * + * + * @generated + */ + private EClass bindingVifDetailEClass = null; + + /** + * + * + * @generated + */ + private EClass fixedIpEClass = null; + + /** + * + * + * @generated + */ + private EClass externalGatewayEClass = null; + + /** + * + * + * @generated + */ + private EClass neutronRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass createNetworkRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass createSubnetRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass createRouterRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass createPortRequestEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.neutron.NeutronPackage#eNS_URI + * @see #init() + * @generated + */ + private NeutronPackageImpl() { + super(eNS_URI, NeutronFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link NeutronPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static NeutronPackage init() { + if (isInited) return (NeutronPackage)EPackage.Registry.INSTANCE.getEPackage(NeutronPackage.eNS_URI); + + // Obtain or create and register package + NeutronPackageImpl theNeutronPackage = (NeutronPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof NeutronPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new NeutronPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theNeutronPackage.createPackageContents(); + + // Initialize created meta-data + theNeutronPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theNeutronPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(NeutronPackage.eNS_URI, theNeutronPackage); + return theNeutronPackage; + } + + /** + * + * + * @generated + */ + public EClass getNeutronService() { + return neutronServiceEClass; + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__CreateNetwork__CreateNetworkRequest() { + return neutronServiceEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__CreateSubnet__CreateSubnetRequest() { + return neutronServiceEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__CreatePort__CreatePortRequest() { + return neutronServiceEClass.getEOperations().get(2); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__CreateRouter__CreateRouterRequest() { + return neutronServiceEClass.getEOperations().get(3); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__DeleteNetwork__String_String() { + return neutronServiceEClass.getEOperations().get(4); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__DeleteSubnet__String_String() { + return neutronServiceEClass.getEOperations().get(5); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__DeletePort__String_String() { + return neutronServiceEClass.getEOperations().get(6); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__DeleteRouter__String_String() { + return neutronServiceEClass.getEOperations().get(7); + } + + /** + * + * + * @generated + */ + public EOperation getNeutronService__AssociateFloatingIp__String_String_String() { + return neutronServiceEClass.getEOperations().get(8); + } + + /** + * + * + * @generated + */ + public EClass getNeutronObject() { + return neutronObjectEClass; + } + + /** + * + * + * @generated + */ + public EClass getNetwork() { + return networkEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Id() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Name() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Admin_state_up() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Provider_network_type() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Provider_physical_network() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Provider_segmentation_id() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Router_external() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Shared() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Status() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Subnets() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getNetwork_Tenant_id() { + return (EAttribute)networkEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EClass getSubnet() { + return subnetEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Id() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Name() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Status() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Admin_state_up() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Cidr() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getSubnet_Allocation_pools() { + return (EReference)subnetEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Dns_nameservers() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Enable_dhcp() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Gateway_ip() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Host_routes() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Ip_version() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Network_id() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getSubnet_Tenant_id() { + return (EAttribute)subnetEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EClass getAllocationPool() { + return allocationPoolEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getAllocationPool_Start() { + return (EAttribute)allocationPoolEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getAllocationPool_End() { + return (EAttribute)allocationPoolEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getRouter() { + return routerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Id() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Name() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Status() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Admin_state_up() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getRouter_External_gateway_info() { + return (EReference)routerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getRouter_Tenant_id() { + return (EAttribute)routerEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getPort() { + return portEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Name() { + return (EAttribute)portEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Status() { + return (EAttribute)portEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Admin_state_up() { + return (EAttribute)portEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getPort_External_gateway_info() { + return (EReference)portEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Tenant_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Allowed_address_pairs() { + return (EAttribute)portEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Binding_host_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EReference getPort_Binding_profile() { + return (EReference)portEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EReference getPort_Binding_vif_details() { + return (EReference)portEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Binding_vif_type() { + return (EAttribute)portEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Binding_vnic_type() { + return (EAttribute)portEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Device_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Device_owner() { + return (EAttribute)portEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Extra_dhcp_opts() { + return (EAttribute)portEClass.getEStructuralFeatures().get(14); + } + + /** + * + * + * @generated + */ + public EReference getPort_Fixed_ips() { + return (EReference)portEClass.getEStructuralFeatures().get(15); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Mac_address() { + return (EAttribute)portEClass.getEStructuralFeatures().get(16); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Network_id() { + return (EAttribute)portEClass.getEStructuralFeatures().get(17); + } + + /** + * + * + * @generated + */ + public EAttribute getPort_Security_groups() { + return (EAttribute)portEClass.getEStructuralFeatures().get(18); + } + + /** + * + * + * @generated + */ + public EClass getNeutronSecurityGroup() { + return neutronSecurityGroupEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityGroup_Id() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityGroup_Name() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityGroup_Description() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EReference getNeutronSecurityGroup_Security_group_rules() { + return (EReference)neutronSecurityGroupEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityGroup_Tenant_id() { + return (EAttribute)neutronSecurityGroupEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EClass getNeutronSecurityRule() { + return neutronSecurityRuleEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Direction() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Ethertype() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Port_range_min() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Port_range_max() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Protocol() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Remote_group_id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Remote_ip_prefix() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Security_group_id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronSecurityRule_Tenant_id() { + return (EAttribute)neutronSecurityRuleEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EClass getNeutronFloatingIp() { + return neutronFloatingIpEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Name() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Status() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Floating_network_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Router_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Fixed_ip_address() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Floating_ip_address() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Tenant_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getNeutronFloatingIp_Port_id() { + return (EAttribute)neutronFloatingIpEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EClass getBindingProfile() { + return bindingProfileEClass; + } + + /** + * + * + * @generated + */ + public EClass getBindingVifDetail() { + return bindingVifDetailEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getBindingVifDetail_Ovs_hybrid_plug() { + return (EAttribute)bindingVifDetailEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getBindingVifDetail_Port_filter() { + return (EAttribute)bindingVifDetailEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getFixedIp() { + return fixedIpEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFixedIp_Ip_address() { + return (EAttribute)fixedIpEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFixedIp_Subnet_id() { + return (EAttribute)fixedIpEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getExternalGateway() { + return externalGatewayEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getExternalGateway_Enable_snat() { + return (EAttribute)externalGatewayEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getExternalGateway_Network_id() { + return (EAttribute)externalGatewayEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getNeutronRequest() { + return neutronRequestEClass; + } + + /** + * + * + * @generated + */ + public EClass getCreateNetworkRequest() { + return createNetworkRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_Name() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_ProviderNetworkType() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_ProviderPhysicalNetwork() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_ProviderSegmentationId() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_Admin_state_up() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateNetworkRequest_Shared() { + return (EAttribute)createNetworkRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getCreateSubnetRequest() { + return createSubnetRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Name() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Network_id() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Ip_version() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Cidr() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getCreateSubnetRequest_Allocation_pools() { + return (EReference)createSubnetRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Dns_nameservers() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Enable_dhcp() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateSubnetRequest_Gateway_ip() { + return (EAttribute)createSubnetRequestEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getCreateRouterRequest() { + return createRouterRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Name() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Admin_state_up() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Shared() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_ExternalNetwork() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Ports() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCreateRouterRequest_Subnets() { + return (EAttribute)createRouterRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getCreatePortRequest() { + return createPortRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Name() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_BindingVnicType() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Status() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Admin_state_up() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getCreatePortRequest_Fixed_ips() { + return (EReference)createPortRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Mac_address() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getCreatePortRequest_Network_id() { + return (EAttribute)createPortRequestEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public NeutronFactory getNeutronFactory() { + return (NeutronFactory)getEFactoryInstance(); + } + + /** + * + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + neutronServiceEClass = createEClass(NEUTRON_SERVICE); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_PORT__STRING_STRING); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING); + createEOperation(neutronServiceEClass, NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING); + + neutronObjectEClass = createEClass(NEUTRON_OBJECT); + + networkEClass = createEClass(NETWORK); + createEAttribute(networkEClass, NETWORK__ID); + createEAttribute(networkEClass, NETWORK__NAME); + createEAttribute(networkEClass, NETWORK__ADMIN_STATE_UP); + createEAttribute(networkEClass, NETWORK__PROVIDER_NETWORK_TYPE); + createEAttribute(networkEClass, NETWORK__PROVIDER_PHYSICAL_NETWORK); + createEAttribute(networkEClass, NETWORK__PROVIDER_SEGMENTATION_ID); + createEAttribute(networkEClass, NETWORK__ROUTER_EXTERNAL); + createEAttribute(networkEClass, NETWORK__SHARED); + createEAttribute(networkEClass, NETWORK__STATUS); + createEAttribute(networkEClass, NETWORK__SUBNETS); + createEAttribute(networkEClass, NETWORK__TENANT_ID); + + subnetEClass = createEClass(SUBNET); + createEAttribute(subnetEClass, SUBNET__ID); + createEAttribute(subnetEClass, SUBNET__NAME); + createEAttribute(subnetEClass, SUBNET__STATUS); + createEAttribute(subnetEClass, SUBNET__ADMIN_STATE_UP); + createEAttribute(subnetEClass, SUBNET__CIDR); + createEReference(subnetEClass, SUBNET__ALLOCATION_POOLS); + createEAttribute(subnetEClass, SUBNET__DNS_NAMESERVERS); + createEAttribute(subnetEClass, SUBNET__ENABLE_DHCP); + createEAttribute(subnetEClass, SUBNET__GATEWAY_IP); + createEAttribute(subnetEClass, SUBNET__HOST_ROUTES); + createEAttribute(subnetEClass, SUBNET__IP_VERSION); + createEAttribute(subnetEClass, SUBNET__NETWORK_ID); + createEAttribute(subnetEClass, SUBNET__TENANT_ID); + + allocationPoolEClass = createEClass(ALLOCATION_POOL); + createEAttribute(allocationPoolEClass, ALLOCATION_POOL__START); + createEAttribute(allocationPoolEClass, ALLOCATION_POOL__END); + + routerEClass = createEClass(ROUTER); + createEAttribute(routerEClass, ROUTER__ID); + createEAttribute(routerEClass, ROUTER__NAME); + createEAttribute(routerEClass, ROUTER__STATUS); + createEAttribute(routerEClass, ROUTER__ADMIN_STATE_UP); + createEReference(routerEClass, ROUTER__EXTERNAL_GATEWAY_INFO); + createEAttribute(routerEClass, ROUTER__TENANT_ID); + + portEClass = createEClass(PORT); + createEAttribute(portEClass, PORT__ID); + createEAttribute(portEClass, PORT__NAME); + createEAttribute(portEClass, PORT__STATUS); + createEAttribute(portEClass, PORT__ADMIN_STATE_UP); + createEReference(portEClass, PORT__EXTERNAL_GATEWAY_INFO); + createEAttribute(portEClass, PORT__TENANT_ID); + createEAttribute(portEClass, PORT__ALLOWED_ADDRESS_PAIRS); + createEAttribute(portEClass, PORT__BINDING_HOST_ID); + createEReference(portEClass, PORT__BINDING_PROFILE); + createEReference(portEClass, PORT__BINDING_VIF_DETAILS); + createEAttribute(portEClass, PORT__BINDING_VIF_TYPE); + createEAttribute(portEClass, PORT__BINDING_VNIC_TYPE); + createEAttribute(portEClass, PORT__DEVICE_ID); + createEAttribute(portEClass, PORT__DEVICE_OWNER); + createEAttribute(portEClass, PORT__EXTRA_DHCP_OPTS); + createEReference(portEClass, PORT__FIXED_IPS); + createEAttribute(portEClass, PORT__MAC_ADDRESS); + createEAttribute(portEClass, PORT__NETWORK_ID); + createEAttribute(portEClass, PORT__SECURITY_GROUPS); + + neutronSecurityGroupEClass = createEClass(NEUTRON_SECURITY_GROUP); + createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__ID); + createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__NAME); + createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__DESCRIPTION); + createEReference(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__SECURITY_GROUP_RULES); + createEAttribute(neutronSecurityGroupEClass, NEUTRON_SECURITY_GROUP__TENANT_ID); + + neutronSecurityRuleEClass = createEClass(NEUTRON_SECURITY_RULE); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__ID); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__DIRECTION); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__ETHERTYPE); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__PORT_RANGE_MIN); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__PORT_RANGE_MAX); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__PROTOCOL); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__REMOTE_GROUP_ID); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__REMOTE_IP_PREFIX); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__SECURITY_GROUP_ID); + createEAttribute(neutronSecurityRuleEClass, NEUTRON_SECURITY_RULE__TENANT_ID); + + neutronFloatingIpEClass = createEClass(NEUTRON_FLOATING_IP); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__ID); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__NAME); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__STATUS); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__FLOATING_NETWORK_ID); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__ROUTER_ID); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__FIXED_IP_ADDRESS); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__FLOATING_IP_ADDRESS); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__TENANT_ID); + createEAttribute(neutronFloatingIpEClass, NEUTRON_FLOATING_IP__PORT_ID); + + bindingProfileEClass = createEClass(BINDING_PROFILE); + + bindingVifDetailEClass = createEClass(BINDING_VIF_DETAIL); + createEAttribute(bindingVifDetailEClass, BINDING_VIF_DETAIL__OVS_HYBRID_PLUG); + createEAttribute(bindingVifDetailEClass, BINDING_VIF_DETAIL__PORT_FILTER); + + fixedIpEClass = createEClass(FIXED_IP); + createEAttribute(fixedIpEClass, FIXED_IP__IP_ADDRESS); + createEAttribute(fixedIpEClass, FIXED_IP__SUBNET_ID); + + externalGatewayEClass = createEClass(EXTERNAL_GATEWAY); + createEAttribute(externalGatewayEClass, EXTERNAL_GATEWAY__ENABLE_SNAT); + createEAttribute(externalGatewayEClass, EXTERNAL_GATEWAY__NETWORK_ID); + + neutronRequestEClass = createEClass(NEUTRON_REQUEST); + + createNetworkRequestEClass = createEClass(CREATE_NETWORK_REQUEST); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__NAME); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__PROVIDER_NETWORK_TYPE); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__PROVIDER_PHYSICAL_NETWORK); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__PROVIDER_SEGMENTATION_ID); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__ADMIN_STATE_UP); + createEAttribute(createNetworkRequestEClass, CREATE_NETWORK_REQUEST__SHARED); + + createSubnetRequestEClass = createEClass(CREATE_SUBNET_REQUEST); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__NAME); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__NETWORK_ID); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__IP_VERSION); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__CIDR); + createEReference(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__ALLOCATION_POOLS); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__DNS_NAMESERVERS); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__ENABLE_DHCP); + createEAttribute(createSubnetRequestEClass, CREATE_SUBNET_REQUEST__GATEWAY_IP); + + createRouterRequestEClass = createEClass(CREATE_ROUTER_REQUEST); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__NAME); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__ADMIN_STATE_UP); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__SHARED); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__EXTERNAL_NETWORK); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__PORTS); + createEAttribute(createRouterRequestEClass, CREATE_ROUTER_REQUEST__SUBNETS); + + createPortRequestEClass = createEClass(CREATE_PORT_REQUEST); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__NAME); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__BINDING_VNIC_TYPE); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__STATUS); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__ADMIN_STATE_UP); + createEReference(createPortRequestEClass, CREATE_PORT_REQUEST__FIXED_IPS); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__MAC_ADDRESS); + createEAttribute(createPortRequestEClass, CREATE_PORT_REQUEST__NETWORK_ID); + } + + /** + * + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + networkEClass.getESuperTypes().add(this.getNeutronObject()); + subnetEClass.getESuperTypes().add(this.getNeutronObject()); + routerEClass.getESuperTypes().add(this.getNeutronObject()); + portEClass.getESuperTypes().add(this.getNeutronObject()); + neutronSecurityGroupEClass.getESuperTypes().add(this.getNeutronObject()); + neutronSecurityRuleEClass.getESuperTypes().add(this.getNeutronObject()); + neutronFloatingIpEClass.getESuperTypes().add(this.getNeutronObject()); + neutronRequestEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + createNetworkRequestEClass.getESuperTypes().add(this.getNeutronRequest()); + createSubnetRequestEClass.getESuperTypes().add(this.getNeutronRequest()); + createRouterRequestEClass.getESuperTypes().add(this.getNeutronRequest()); + createPortRequestEClass.getESuperTypes().add(this.getNeutronRequest()); + + // Initialize classes, features, and operations; add parameters + initEClass(neutronServiceEClass, NeutronService.class, "NeutronService", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + EOperation op = initEOperation(getNeutronService__CreateNetwork__CreateNetworkRequest(), this.getNetwork(), "createNetwork", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreateNetworkRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__CreateSubnet__CreateSubnetRequest(), this.getSubnet(), "createSubnet", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreateSubnetRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__CreatePort__CreatePortRequest(), this.getPort(), "createPort", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreatePortRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__CreateRouter__CreateRouterRequest(), this.getRouter(), "createRouter", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getCreateRouterRequest(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__DeleteNetwork__String_String(), null, "deleteNetwork", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__DeleteSubnet__String_String(), null, "deleteSubnet", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__DeletePort__String_String(), null, "deletePort", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__DeleteRouter__String_String(), null, "deleteRouter", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getNeutronService__AssociateFloatingIp__String_String_String(), null, "associateFloatingIp", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "ipId", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "portId", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(neutronObjectEClass, NeutronObject.class, "NeutronObject", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(networkEClass, Network.class, "Network", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNetwork_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Provider_network_type(), theEcorePackage.getEString(), "provider_network_type", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Provider_physical_network(), theEcorePackage.getEString(), "provider_physical_network", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Provider_segmentation_id(), theEcorePackage.getEIntegerObject(), "provider_segmentation_id", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Router_external(), theEcorePackage.getEBooleanObject(), "router_external", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Shared(), theEcorePackage.getEBooleanObject(), "shared", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Subnets(), theEcorePackage.getEString(), "subnets", null, 0, -1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNetwork_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(subnetEClass, Subnet.class, "Subnet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSubnet_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Cidr(), theEcorePackage.getEString(), "cidr", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSubnet_Allocation_pools(), this.getAllocationPool(), null, "allocation_pools", null, 0, -1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Dns_nameservers(), theEcorePackage.getEString(), "dns_nameservers", null, 0, -1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Enable_dhcp(), theEcorePackage.getEBooleanObject(), "enable_dhcp", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Gateway_ip(), theEcorePackage.getEString(), "gateway_ip", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Host_routes(), theEcorePackage.getEString(), "host_routes", null, 0, -1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Ip_version(), theEcorePackage.getEIntegerObject(), "ip_version", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Network_id(), theEcorePackage.getEString(), "network_id", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSubnet_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Subnet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(allocationPoolEClass, AllocationPool.class, "AllocationPool", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAllocationPool_Start(), theEcorePackage.getEString(), "start", null, 0, 1, AllocationPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAllocationPool_End(), theEcorePackage.getEString(), "end", null, 0, 1, AllocationPool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(routerEClass, Router.class, "Router", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getRouter_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRouter_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRouter_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRouter_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getRouter_External_gateway_info(), this.getExternalGateway(), null, "external_gateway_info", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getRouter_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(portEClass, Port.class, "Port", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPort_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPort_External_gateway_info(), this.getExternalGateway(), null, "external_gateway_info", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Allowed_address_pairs(), theEcorePackage.getEString(), "allowed_address_pairs", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Binding_host_id(), theEcorePackage.getEString(), "binding_host_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPort_Binding_profile(), this.getBindingProfile(), null, "binding_profile", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPort_Binding_vif_details(), this.getBindingVifDetail(), null, "binding_vif_details", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Binding_vif_type(), theEcorePackage.getEString(), "binding_vif_type", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Binding_vnic_type(), theEcorePackage.getEString(), "binding_vnic_type", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Device_id(), theEcorePackage.getEString(), "device_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Device_owner(), theEcorePackage.getEString(), "device_owner", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Extra_dhcp_opts(), theEcorePackage.getEString(), "extra_dhcp_opts", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPort_Fixed_ips(), this.getFixedIp(), null, "fixed_ips", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Mac_address(), theEcorePackage.getEString(), "mac_address", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Network_id(), theEcorePackage.getEString(), "network_id", null, 0, 1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPort_Security_groups(), theEcorePackage.getEString(), "security_groups", null, 0, -1, Port.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(neutronSecurityGroupEClass, NeutronSecurityGroup.class, "NeutronSecurityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNeutronSecurityGroup_Id(), theEcorePackage.getEString(), "id", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityGroup_Name(), theEcorePackage.getEString(), "name", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityGroup_Description(), theEcorePackage.getEString(), "description", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getNeutronSecurityGroup_Security_group_rules(), this.getNeutronSecurityRule(), null, "security_group_rules", null, 0, -1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityGroup_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, NeutronSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(neutronSecurityRuleEClass, NeutronSecurityRule.class, "NeutronSecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNeutronSecurityRule_Id(), theEcorePackage.getEString(), "id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Direction(), theEcorePackage.getEString(), "direction", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Ethertype(), theEcorePackage.getEString(), "ethertype", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Port_range_min(), theEcorePackage.getEIntegerObject(), "port_range_min", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Port_range_max(), theEcorePackage.getEIntegerObject(), "port_range_max", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Protocol(), theEcorePackage.getEString(), "protocol", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Remote_group_id(), theEcorePackage.getEString(), "remote_group_id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Remote_ip_prefix(), theEcorePackage.getEString(), "remote_ip_prefix", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Security_group_id(), theEcorePackage.getEString(), "security_group_id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronSecurityRule_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, NeutronSecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(neutronFloatingIpEClass, NeutronFloatingIp.class, "NeutronFloatingIp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNeutronFloatingIp_Id(), theEcorePackage.getEString(), "id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Name(), theEcorePackage.getEString(), "name", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Status(), theEcorePackage.getEString(), "status", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Floating_network_id(), theEcorePackage.getEString(), "floating_network_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Router_id(), theEcorePackage.getEString(), "router_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Fixed_ip_address(), theEcorePackage.getEString(), "fixed_ip_address", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Floating_ip_address(), theEcorePackage.getEString(), "floating_ip_address", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNeutronFloatingIp_Port_id(), theEcorePackage.getEString(), "port_id", null, 0, 1, NeutronFloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(bindingProfileEClass, BindingProfile.class, "BindingProfile", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(bindingVifDetailEClass, BindingVifDetail.class, "BindingVifDetail", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBindingVifDetail_Ovs_hybrid_plug(), theEcorePackage.getEBooleanObject(), "ovs_hybrid_plug", null, 0, 1, BindingVifDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getBindingVifDetail_Port_filter(), theEcorePackage.getEBooleanObject(), "port_filter", null, 0, 1, BindingVifDetail.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fixedIpEClass, FixedIp.class, "FixedIp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFixedIp_Ip_address(), theEcorePackage.getEString(), "ip_address", null, 0, 1, FixedIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFixedIp_Subnet_id(), theEcorePackage.getEString(), "subnet_id", null, 0, 1, FixedIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(externalGatewayEClass, ExternalGateway.class, "ExternalGateway", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getExternalGateway_Enable_snat(), theEcorePackage.getEBooleanObject(), "enable_snat", null, 0, 1, ExternalGateway.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getExternalGateway_Network_id(), theEcorePackage.getEString(), "network_id", null, 0, 1, ExternalGateway.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(neutronRequestEClass, NeutronRequest.class, "NeutronRequest", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(createNetworkRequestEClass, CreateNetworkRequest.class, "CreateNetworkRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCreateNetworkRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_ProviderNetworkType(), theEcorePackage.getEString(), "providerNetworkType", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_ProviderPhysicalNetwork(), theEcorePackage.getEString(), "providerPhysicalNetwork", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_ProviderSegmentationId(), theEcorePackage.getEInt(), "providerSegmentationId", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateNetworkRequest_Shared(), theEcorePackage.getEBooleanObject(), "shared", null, 0, 1, CreateNetworkRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(createSubnetRequestEClass, CreateSubnetRequest.class, "CreateSubnetRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCreateSubnetRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Network_id(), theEcorePackage.getEString(), "network_id", null, 1, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Ip_version(), theEcorePackage.getEInt(), "ip_version", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Cidr(), theEcorePackage.getEString(), "cidr", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCreateSubnetRequest_Allocation_pools(), this.getAllocationPool(), null, "allocation_pools", null, 0, -1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Dns_nameservers(), theEcorePackage.getEString(), "dns_nameservers", null, 0, -1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Enable_dhcp(), theEcorePackage.getEBooleanObject(), "enable_dhcp", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateSubnetRequest_Gateway_ip(), theEcorePackage.getEString(), "gateway_ip", null, 0, 1, CreateSubnetRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(createRouterRequestEClass, CreateRouterRequest.class, "CreateRouterRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCreateRouterRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_Shared(), theEcorePackage.getEBooleanObject(), "shared", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_ExternalNetwork(), theEcorePackage.getEString(), "externalNetwork", null, 0, 1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_Ports(), theEcorePackage.getEString(), "ports", null, 0, -1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreateRouterRequest_Subnets(), theEcorePackage.getEString(), "subnets", null, 0, -1, CreateRouterRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(createPortRequestEClass, CreatePortRequest.class, "CreatePortRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getCreatePortRequest_Name(), theEcorePackage.getEString(), "name", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_BindingVnicType(), theEcorePackage.getEString(), "bindingVnicType", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_Status(), theEcorePackage.getEString(), "status", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_Admin_state_up(), theEcorePackage.getEBooleanObject(), "admin_state_up", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCreatePortRequest_Fixed_ips(), this.getFixedIp(), null, "fixed_ips", null, 0, -1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_Mac_address(), theEcorePackage.getEString(), "mac_address", null, 0, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCreatePortRequest_Network_id(), theEcorePackage.getEString(), "network_id", null, 1, 1, CreatePortRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/2011/Xcore + createXcoreAnnotations(); + // http://openecomp.org/sirius/openstack + createOpenstackAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2011/Xcore. + * + * + * @generated + */ + protected void createXcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2011/Xcore"; + addAnnotation + (this, + source, + new String[] { + "openstack", "http://openecomp.org/sirius/openstack" + }); + } + + /** + * Initializes the annotations for http://openecomp.org/sirius/openstack. + * + * + * @generated + */ + protected void createOpenstackAnnotations() { + String source = "http://openecomp.org/sirius/openstack"; + addAnnotation + (getCreateNetworkRequest_ProviderNetworkType(), + source, + new String[] { + "name", "provider:network_type" + }); + addAnnotation + (getCreateNetworkRequest_ProviderPhysicalNetwork(), + source, + new String[] { + "name", "provider:physical_network" + }); + addAnnotation + (getCreateNetworkRequest_ProviderSegmentationId(), + source, + new String[] { + "name", "provider:segmentation_id" + }); + addAnnotation + (getCreatePortRequest_BindingVnicType(), + source, + new String[] { + "name", "binding:vnic_type" + }); + addAnnotation + (getCreatePortRequest_Fixed_ips(), + source, + new String[] { + "removeEmptyList", "true" + }); + } + +} //NeutronPackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java new file mode 100644 index 0000000..d2c350d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronRequestImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronRequest; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * An implementation of the model object 'Request'. + * + *
+ *
+ * + * @generated + */ +public abstract class NeutronRequestImpl extends OpenStackRequestImpl implements NeutronRequest { + /** + * + * + * @generated + */ + protected NeutronRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_REQUEST; + } + +} //NeutronRequestImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java new file mode 100644 index 0000000..70d84c1 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/NeutronSecurityGroupImpl.java @@ -0,0 +1,404 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityGroup; +import org.openecomp.ncomp.openstack.neutron.NeutronSecurityRule; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Security Group'. + * + *+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public abstract class NeutronServiceImpl extends MinimalEObjectImpl.Container implements NeutronService { + /** + * + * + * @generated + */ + protected NeutronServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return NeutronPackage.Literals.NEUTRON_SERVICE; + } + + /** + * + * + * @generated + */ + public Network createNetwork(CreateNetworkRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Subnet createSubnet(CreateSubnetRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Port createPort(CreatePortRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public Router createRouter(CreateRouterRequest request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteNetwork(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteSubnet(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deletePort(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteRouter(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void associateFloatingIp(String projectName, String ipId, String portId) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList> arguments) throws InvocationTargetException { + switch (operationID) { + case NeutronPackage.NEUTRON_SERVICE___CREATE_NETWORK__CREATENETWORKREQUEST: + return createNetwork((CreateNetworkRequest)arguments.get(0)); + case NeutronPackage.NEUTRON_SERVICE___CREATE_SUBNET__CREATESUBNETREQUEST: + return createSubnet((CreateSubnetRequest)arguments.get(0)); + case NeutronPackage.NEUTRON_SERVICE___CREATE_PORT__CREATEPORTREQUEST: + return createPort((CreatePortRequest)arguments.get(0)); + case NeutronPackage.NEUTRON_SERVICE___CREATE_ROUTER__CREATEROUTERREQUEST: + return createRouter((CreateRouterRequest)arguments.get(0)); + case NeutronPackage.NEUTRON_SERVICE___DELETE_NETWORK__STRING_STRING: + deleteNetwork((String)arguments.get(0), (String)arguments.get(1)); + return null; + case NeutronPackage.NEUTRON_SERVICE___DELETE_SUBNET__STRING_STRING: + deleteSubnet((String)arguments.get(0), (String)arguments.get(1)); + return null; + case NeutronPackage.NEUTRON_SERVICE___DELETE_PORT__STRING_STRING: + deletePort((String)arguments.get(0), (String)arguments.get(1)); + return null; + case NeutronPackage.NEUTRON_SERVICE___DELETE_ROUTER__STRING_STRING: + deleteRouter((String)arguments.get(0), (String)arguments.get(1)); + return null; + case NeutronPackage.NEUTRON_SERVICE___ASSOCIATE_FLOATING_IP__STRING_STRING_STRING: + associateFloatingIp((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //NeutronServiceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java new file mode 100644 index 0000000..2af9613 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/neutron/impl/PortImpl.java @@ -0,0 +1,1146 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +/** + */ +package org.openecomp.ncomp.openstack.neutron.impl; + +import org.openecomp.ncomp.openstack.neutron.BindingProfile; +import org.openecomp.ncomp.openstack.neutron.BindingVifDetail; +import org.openecomp.ncomp.openstack.neutron.ExternalGateway; +import org.openecomp.ncomp.openstack.neutron.FixedIp; +import org.openecomp.ncomp.openstack.neutron.NeutronPackage; +import org.openecomp.ncomp.openstack.neutron.Port; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * + * An implementation of the model object 'Port'. + * + *+ * The following features are implemented: + *