> getHeaders() {
65 | return headers;
66 | }
67 |
68 | public T getData() {
69 | return data;
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/src/test/java/io/swagger/client/api/SitetositeApiTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * NiFi Rest Api
3 | * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: dev@nifi.apache.org
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | * Do not edit the class manually.
11 | *
12 | * Licensed under the Apache License, Version 2.0 (the "License");
13 | * you may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at
15 | *
16 | * http://www.apache.org/licenses/LICENSE-2.0
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | */
24 |
25 |
26 | package io.swagger.client.api;
27 |
28 | import io.swagger.client.ApiException;
29 | import io.swagger.client.model.PeersEntity;
30 | import io.swagger.client.model.ControllerEntity;
31 | import org.junit.Test;
32 |
33 | import java.util.ArrayList;
34 | import java.util.HashMap;
35 | import java.util.List;
36 | import java.util.Map;
37 |
38 | /**
39 | * API tests for SitetositeApi
40 | */
41 | public class SitetositeApiTest {
42 |
43 | private final SitetositeApi api = new SitetositeApi();
44 |
45 |
46 | /**
47 | * Returns the available Peers and its status of this NiFi
48 | *
49 | *
50 | *
51 | * @throws ApiException
52 | * if the Api call fails
53 | */
54 | @Test
55 | public void getPeersTest() throws ApiException {
56 | // PeersEntity response = api.getPeers();
57 |
58 | // TODO: test validations
59 | }
60 |
61 | /**
62 | * Returns the details about this NiFi necessary to communicate via site to site
63 | *
64 | *
65 | *
66 | * @throws ApiException
67 | * if the Api call fails
68 | */
69 | @Test
70 | public void getSiteToSiteDetailsTest() throws ApiException {
71 | // ControllerEntity response = api.getSiteToSiteDetails();
72 |
73 | // TODO: test validations
74 | }
75 |
76 | }
77 |
--------------------------------------------------------------------------------
/docs/ConnectionEntity.md:
--------------------------------------------------------------------------------
1 |
2 | # ConnectionEntity
3 |
4 | ## Properties
5 | Name | Type | Description | Notes
6 | ------------ | ------------- | ------------- | -------------
7 | **revision** | [**RevisionDTO**](RevisionDTO.md) | The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses. | [optional]
8 | **id** | **String** | The id of the component. | [optional]
9 | **uri** | **String** | The URI for futures requests to the component. | [optional]
10 | **position** | [**PositionDTO**](PositionDTO.md) | The position of this component in the UI if applicable. | [optional]
11 | **permissions** | [**PermissionsDTO**](PermissionsDTO.md) | The permissions for this component. | [optional]
12 | **bulletins** | [**List<BulletinEntity>**](BulletinEntity.md) | The bulletins for this component. | [optional]
13 | **component** | [**ConnectionDTO**](ConnectionDTO.md) | | [optional]
14 | **status** | [**ConnectionStatusDTO**](ConnectionStatusDTO.md) | The status of the connection. | [optional]
15 | **bends** | [**List<PositionDTO>**](PositionDTO.md) | The bend points on the connection. | [optional]
16 | **labelIndex** | **Integer** | The index of the bend point where to place the connection label. | [optional]
17 | **getzIndex** | **Long** | The z index of the connection. | [optional]
18 | **sourceId** | **String** | The identifier of the source of this connection. | [optional]
19 | **sourceGroupId** | **String** | The identifier of the group of the source of this connection. | [optional]
20 | **sourceType** | [**SourceTypeEnum**](#SourceTypeEnum) | The type of component the source connectable is. |
21 | **destinationId** | **String** | The identifier of the destination of this connection. | [optional]
22 | **destinationGroupId** | **String** | The identifier of the group of the destination of this connection. | [optional]
23 | **destinationType** | [**DestinationTypeEnum**](#DestinationTypeEnum) | The type of component the destination connectable is. |
24 |
25 |
26 |
27 | ## Enum: SourceTypeEnum
28 | Name | Value
29 | ---- | -----
30 | PROCESSOR | "PROCESSOR"
31 | REMOTE_INPUT_PORT | "REMOTE_INPUT_PORT"
32 | REMOTE_OUTPUT_PORT | "REMOTE_OUTPUT_PORT"
33 | INPUT_PORT | "INPUT_PORT"
34 | OUTPUT_PORT | "OUTPUT_PORT"
35 | FUNNEL | "FUNNEL"
36 |
37 |
38 |
39 | ## Enum: DestinationTypeEnum
40 | Name | Value
41 | ---- | -----
42 | PROCESSOR | "PROCESSOR"
43 | REMOTE_INPUT_PORT | "REMOTE_INPUT_PORT"
44 | REMOTE_OUTPUT_PORT | "REMOTE_OUTPUT_PORT"
45 | INPUT_PORT | "INPUT_PORT"
46 | OUTPUT_PORT | "OUTPUT_PORT"
47 | FUNNEL | "FUNNEL"
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/src/main/java/io/swagger/client/StringUtil.java:
--------------------------------------------------------------------------------
1 | /*
2 | * NiFi Rest Api
3 | * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: dev@nifi.apache.org
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | * Do not edit the class manually.
11 | *
12 | * Licensed under the Apache License, Version 2.0 (the "License");
13 | * you may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at
15 | *
16 | * http://www.apache.org/licenses/LICENSE-2.0
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | */
24 |
25 |
26 | package io.swagger.client;
27 |
28 | @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-10-14T11:52:34.905+11:00")
29 | public class StringUtil {
30 | /**
31 | * Check if the given array contains the given value (with case-insensitive comparison).
32 | *
33 | * @param array The array
34 | * @param value The value to search
35 | * @return true if the array contains the value
36 | */
37 | public static boolean containsIgnoreCase(String[] array, String value) {
38 | for (String str : array) {
39 | if (value == null && str == null) return true;
40 | if (value != null && value.equalsIgnoreCase(str)) return true;
41 | }
42 | return false;
43 | }
44 |
45 | /**
46 | * Join an array of strings with the given separator.
47 | *
48 | * Note: This might be replaced by utility method from commons-lang or guava someday
49 | * if one of those libraries is added as dependency.
50 | *
51 | *
52 | * @param array The array of strings
53 | * @param separator The separator
54 | * @return the resulting string
55 | */
56 | public static String join(String[] array, String separator) {
57 | int len = array.length;
58 | if (len == 0) return "";
59 |
60 | StringBuilder out = new StringBuilder();
61 | out.append(array[0]);
62 | for (int i = 1; i < len; i++) {
63 | out.append(separator).append(array[i]);
64 | }
65 | return out.toString();
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/src/test/java/io/swagger/client/api/CountersApiTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * NiFi Rest Api
3 | * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: dev@nifi.apache.org
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | * Do not edit the class manually.
11 | *
12 | * Licensed under the Apache License, Version 2.0 (the "License");
13 | * you may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at
15 | *
16 | * http://www.apache.org/licenses/LICENSE-2.0
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | */
24 |
25 |
26 | package io.swagger.client.api;
27 |
28 | import io.swagger.client.ApiException;
29 | import io.swagger.client.model.CountersEntity;
30 | import io.swagger.client.model.CounterEntity;
31 | import org.junit.Test;
32 |
33 | import java.util.ArrayList;
34 | import java.util.HashMap;
35 | import java.util.List;
36 | import java.util.Map;
37 |
38 | /**
39 | * API tests for CountersApi
40 | */
41 | public class CountersApiTest {
42 |
43 | private final CountersApi api = new CountersApi();
44 |
45 |
46 | /**
47 | * Gets the current counters for this NiFi
48 | *
49 | * Note: This endpoint is subject to change as NiFi and it's REST API evolve.
50 | *
51 | * @throws ApiException
52 | * if the Api call fails
53 | */
54 | @Test
55 | public void getCountersTest() throws ApiException {
56 | Boolean nodewise = null;
57 | String clusterNodeId = null;
58 | // CountersEntity response = api.getCounters(nodewise, clusterNodeId);
59 |
60 | // TODO: test validations
61 | }
62 |
63 | /**
64 | * Updates the specified counter. This will reset the counter value to 0
65 | *
66 | * Note: This endpoint is subject to change as NiFi and it's REST API evolve.
67 | *
68 | * @throws ApiException
69 | * if the Api call fails
70 | */
71 | @Test
72 | public void updateCounterTest() throws ApiException {
73 | String id = null;
74 | // CounterEntity response = api.updateCounter(id);
75 |
76 | // TODO: test validations
77 | }
78 |
79 | }
80 |
--------------------------------------------------------------------------------
/src/main/java/io/swagger/client/auth/ApiKeyAuth.java:
--------------------------------------------------------------------------------
1 | /*
2 | * NiFi Rest Api
3 | * The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
4 | *
5 | * OpenAPI spec version: 1.0.0
6 | * Contact: dev@nifi.apache.org
7 | *
8 | * NOTE: This class is auto generated by the swagger code generator program.
9 | * https://github.com/swagger-api/swagger-codegen.git
10 | * Do not edit the class manually.
11 | *
12 | * Licensed under the Apache License, Version 2.0 (the "License");
13 | * you may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at
15 | *
16 | * http://www.apache.org/licenses/LICENSE-2.0
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | */
24 |
25 |
26 | package io.swagger.client.auth;
27 |
28 | import io.swagger.client.Pair;
29 |
30 | import java.util.Map;
31 | import java.util.List;
32 |
33 | @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-10-14T11:52:34.905+11:00")
34 | public class ApiKeyAuth implements Authentication {
35 | private final String location;
36 | private final String paramName;
37 |
38 | private String apiKey;
39 | private String apiKeyPrefix;
40 |
41 | public ApiKeyAuth(String location, String paramName) {
42 | this.location = location;
43 | this.paramName = paramName;
44 | }
45 |
46 | public String getLocation() {
47 | return location;
48 | }
49 |
50 | public String getParamName() {
51 | return paramName;
52 | }
53 |
54 | public String getApiKey() {
55 | return apiKey;
56 | }
57 |
58 | public void setApiKey(String apiKey) {
59 | this.apiKey = apiKey;
60 | }
61 |
62 | public String getApiKeyPrefix() {
63 | return apiKeyPrefix;
64 | }
65 |
66 | public void setApiKeyPrefix(String apiKeyPrefix) {
67 | this.apiKeyPrefix = apiKeyPrefix;
68 | }
69 |
70 | @Override
71 | public void applyToParams(List queryParams, Map headerParams) {
72 | if (apiKey == null) {
73 | return;
74 | }
75 | String value;
76 | if (apiKeyPrefix != null) {
77 | value = apiKeyPrefix + " " + apiKey;
78 | } else {
79 | value = apiKey;
80 | }
81 | if ("query".equals(location)) {
82 | queryParams.add(new Pair(paramName, value));
83 | } else if ("header".equals(location)) {
84 | headerParams.put(paramName, value);
85 | }
86 | }
87 | }
88 |
--------------------------------------------------------------------------------