package com.woorea.openstack.heat;

import com.woorea.openstack.base.client.HttpMethod;
import com.woorea.openstack.base.client.OpenStackClient;
import com.woorea.openstack.base.client.OpenStackRequest;
import com.woorea.openstack.heat.model.Resources;


/**
 * v1/​{tenant_id}​/stacks/​{stack_name}​/resources
 */
public class ResourcesResource {
    private final OpenStackClient client;

    public ResourcesResource(OpenStackClient client) {
        this.client = client;
    }

    public ListResources listResources(String name) {
        return new ListResources(name);
    }

    public List list(String name) {
        return new List(name);
    }

    /**
     * v1/​{tenant_id}​/stacks/​{stack_name}​/resources
     */
    public class ListResources extends OpenStackRequest<Resources> {
        public ListResources(String name) {
            super(client, HttpMethod.GET, "/stacks/" + name + "/resources", null, Resources.class);
        }
    }

    /**
     * v1/​{tenant_id}​/stacks/​{stack_name}​/​{stack_id}​/resources
     */
    public class List extends OpenStackRequest<String> {
        public List(String name) {
            super(client, HttpMethod.GET, "", null, String.class);
        }
    }

}

@@ -581,82 +581,8 @@
  %7D%0A%0A
-    public List list(String name) %7B%0A        return new List(name);%0A    %7D%0A%0A
     
@@ -882,268 +882,6 @@
   %7D%0A
-%0A    /**%0A     * v1/%E2%80%8B%7Btenant_id%7D%E2%80%8B/stacks/%E2%80%8B%7Bstack_name%7D%E2%80%8B/%E2%80%8B%7Bstack_id%7D%E2%80%8B/resources%0A     */%0A    public class List extends OpenStackRequest%3CString%3E %7B%0A        public List(String name) %7B%0A            super(client, HttpMethod.GET, %22%22, null, String.class);%0A        %7D%0A    %7D%0A%0A
 %7D%0A

Remove obsolete list resources functions