aboutsummaryrefslogtreecommitdiffstats
path: root/ncomp-openstack-controller/src/main/sirius-gen/org/openecomp/ncomp/servers/openstack/loc/OsOpenStackLocationConsole.java
blob: db83255a3790e6728ef0d85a231e154a7e2c735b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
/*-
 * ============LICENSE_START==========================================
 * OPENECOMP - DCAE
 * ===================================================================
 * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
 * ===================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0 
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END============================================
 */
	
// Autogenerated
// Do not edit but extend this class as needed
package org.openecomp.ncomp.servers.openstack.loc;


import org.apache.log4j.Logger;
import org.eclipse.emf.common.util.EList;

import org.openecomp.ncomp.sirius.manager.console.Console;
import org.openecomp.ncomp.sirius.manager.AbstractClient;
import org.openecomp.ncomp.sirius.manager.ManagementServerError;




public class OsOpenStackLocationConsole extends Console {
	public static final Logger logger = Logger.getLogger(OsOpenStackLocationConsole.class);
    protected OsOpenStackLocationClient controller;
    



    public OsOpenStackLocationConsole(String filename, String name) {
            super(filename, name);
            controller = new OsOpenStackLocationClient(filename,name);
            client = controller.client;

    }
    
	public OsOpenStackLocationConsole(AbstractClient c) {
        controller = new OsOpenStackLocationClient(c);
        client = controller.client;
    }


	public void poll() {
		
		try {
			 controller.poll();
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void mergeLocation(org.openecomp.ncomp.openstack.location.OpenStackLocation loc) {
		
		try {
			 controller.mergeLocation(loc);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public org.openecomp.ncomp.openstack.neutron.Network createNetwork(org.openecomp.ncomp.openstack.neutron.CreateNetworkRequest request) {
		org.openecomp.ncomp.openstack.neutron.Network res = null;
		try {
			res =  controller.createNetwork(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		return res;
	}

	public org.openecomp.ncomp.openstack.neutron.Subnet createSubnet(org.openecomp.ncomp.openstack.neutron.CreateSubnetRequest request) {
		org.openecomp.ncomp.openstack.neutron.Subnet res = null;
		try {
			res =  controller.createSubnet(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		return res;
	}

	public org.openecomp.ncomp.openstack.neutron.Port createPort(org.openecomp.ncomp.openstack.neutron.CreatePortRequest request) {
		org.openecomp.ncomp.openstack.neutron.Port res = null;
		try {
			res =  controller.createPort(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		return res;
	}

	public org.openecomp.ncomp.openstack.neutron.Router createRouter(org.openecomp.ncomp.openstack.neutron.CreateRouterRequest request) {
		org.openecomp.ncomp.openstack.neutron.Router res = null;
		try {
			res =  controller.createRouter(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		return res;
	}

	public void deleteNetwork(java.lang.String projectName, java.lang.String name) {
		
		try {
			 controller.deleteNetwork(projectName,name);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void deleteSubnet(java.lang.String projectName, java.lang.String name) {
		
		try {
			 controller.deleteSubnet(projectName,name);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void deletePort(java.lang.String projectName, java.lang.String name) {
		
		try {
			 controller.deletePort(projectName,name);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void deleteRouter(java.lang.String projectName, java.lang.String name) {
		
		try {
			 controller.deleteRouter(projectName,name);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void associateFloatingIp(java.lang.String projectName, java.lang.String ipId, java.lang.String portId) {
		
		try {
			 controller.associateFloatingIp(projectName,ipId,portId);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void createServer(org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer request) {
		
		try {
			 controller.createServer(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void deleteServer(java.lang.String projectName, java.lang.String name) {
		
		try {
			 controller.deleteServer(projectName,name);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void createKeyPair(org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair request) {
		
		try {
			 controller.createKeyPair(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void delete(org.openecomp.ncomp.openstack.core.OpenstackRequestDelete request) {
		
		try {
			 controller.delete(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void createFlavor(org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor request) {
		
		try {
			 controller.createFlavor(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void createSecurityGroup(org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup request) {
		
		try {
			 controller.createSecurityGroup(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void serverAction(org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction request) {
		
		try {
			 controller.serverAction(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void deployVmType(java.lang.String vmTypeName, java.lang.String projectName) {
		
		try {
			 controller.deployVmType(vmTypeName,projectName);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void undeployVmType(java.lang.String vmTypeName, java.lang.String projectName) {
		
		try {
			 controller.undeployVmType(vmTypeName,projectName);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void deployUser(org.openecomp.ncomp.core.User user, java.lang.String projectName) {
		
		try {
			 controller.deployUser(user,projectName);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public void undeployUser(org.openecomp.ncomp.core.User user, java.lang.String projectName) {
		
		try {
			 controller.undeployUser(user,projectName);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm createAlarm(org.openecomp.ncomp.openstack.ceilometer.CreateAlarmRequest request) {
		org.openecomp.ncomp.openstack.ceilometer.CeilometerAlarm res = null;
		try {
			res =  controller.createAlarm(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		return res;
	}

	public void deleteAlarm(java.lang.String projectName, java.lang.String name) {
		
		try {
			 controller.deleteAlarm(projectName,name);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		
	}

	public EList<org.openecomp.ncomp.openstack.ceilometer.CeilometerSample> createAlarm(org.openecomp.ncomp.openstack.ceilometer.SampleRequest request) {
		EList<org.openecomp.ncomp.openstack.ceilometer.CeilometerSample> res = null;
		try {
			res =  controller.createAlarm(request);
		}
		catch (ManagementServerError e) {
			System.err.println("ERROR: " + e.getJson().toString(2));
		}
		return res;
	}

}