Replaced all tabs with spaces in java and pom.xml
[so.git] / cloudify-client / src / main / java / org / onap / so / cloudify / v3 / client / Cloudify.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.cloudify.v3.client;
22
23 import org.onap.so.cloudify.base.client.CloudifyClient;
24 import org.onap.so.cloudify.base.client.CloudifyClientConnector;
25
26 /**
27  * Reference: http://docs.getcloudify.org/api/v3/
28  */
29 public class Cloudify extends CloudifyClient {
30
31     private final DeploymentsResource deployments;
32     private final BlueprintsResource blueprints;
33     private final TokensResource tokens;
34     private final NodeInstancesResource nodeInstances;
35     private final ExecutionsResource executions;
36
37     /*
38      * Not supporting dynamic connectors public Cloudify(String endpoint, CloudifyClientConnector connector) {
39      * super(endpoint, connector); deployments = new DeploymentsResource(this); blueprints = new
40      * BlueprintsResource(this); nodeInstances = new NodeInstancesResource(this); tokens = new TokensResource(this); }
41      */
42     public Cloudify(String endpoint, String tenant) {
43         super(endpoint, tenant);
44         deployments = new DeploymentsResource(this);
45         blueprints = new BlueprintsResource(this);
46         nodeInstances = new NodeInstancesResource(this);
47         executions = new ExecutionsResource(this);
48         tokens = new TokensResource(this);
49     }
50
51     public Cloudify(String endpoint) {
52         super(endpoint);
53         deployments = new DeploymentsResource(this);
54         blueprints = new BlueprintsResource(this);
55         nodeInstances = new NodeInstancesResource(this);
56         executions = new ExecutionsResource(this);
57         tokens = new TokensResource(this);
58     }
59
60     public DeploymentsResource deployments() {
61         return this.deployments;
62     }
63
64     public BlueprintsResource blueprints() {
65         return this.blueprints;
66     }
67
68     public NodeInstancesResource nodeInstances() {
69         return this.nodeInstances;
70     }
71
72     public ExecutionsResource executions() {
73         return this.executions;
74     }
75
76     public TokensResource tokens() {
77         return this.tokens;
78     }
79 }