takraj commented on code in PR #6504: URL: https://github.com/apache/nifi/pull/6504#discussion_r1030394878
########## nifi-nar-bundles/nifi-asana-bundle/nifi-asana-services-api/src/main/java/org/apache/nifi/controller/asana/AsanaClient.java: ########## @@ -0,0 +1,195 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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. + */ +package org.apache.nifi.controller.asana; + +import com.asana.models.Attachment; +import com.asana.models.Project; +import com.asana.models.ProjectMembership; +import com.asana.models.ProjectStatus; +import com.asana.models.Section; +import com.asana.models.Story; +import com.asana.models.Tag; +import com.asana.models.Task; +import com.asana.models.Team; +import com.asana.models.User; + +import java.util.Map; + +/** + * This interface represents a client to Asana REST server, with some basic filtering options built in. + */ +public interface AsanaClient { + /** + * Find & retrieve an Asana project by its name. If multiple projects match, returns the first. + * If there is no match, then {@link RuntimeException} is thrown. Note that constant ordering Review Comment: Done in 20cd9e9 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
