{"action":"opened","issue":{"url":"https://api.github.com/repos/openshift/openshift-restclient-java/issues/314","repository_url":"https://api.github.com/repos/openshift/openshift-restclient-java","labels_url":"https://api.github.com/repos/openshift/openshift-restclient-java/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/openshift/openshift-restclient-java/issues/314/comments","events_url":"https://api.github.com/repos/openshift/openshift-restclient-java/issues/314/events","html_url":"https://github.com/openshift/openshift-restclient-java/issues/314","id":301771178,"number":314,"title":"Add \"Namespace\" as a ResourceKind and create INamespace interface","user":{"login":"Obirah","id":1674082,"avatar_url":"https://avatars2.githubusercontent.com/u/1674082?v=4","gravatar_id":"","url":"https://api.github.com/users/Obirah","html_url":"https://github.com/Obirah","followers_url":"https://api.github.com/users/Obirah/followers","following_url":"https://api.github.com/users/Obirah/following{/other_user}","gists_url":"https://api.github.com/users/Obirah/gists{/gist_id}","starred_url":"https://api.github.com/users/Obirah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Obirah/subscriptions","organizations_url":"https://api.github.com/users/Obirah/orgs","repos_url":"https://api.github.com/users/Obirah/repos","events_url":"https://api.github.com/users/Obirah/events{/privacy}","received_events_url":"https://api.github.com/users/Obirah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-02T13:47:48Z","updated_at":"2018-03-02T13:47:48Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI'm using the openshift-restclient in an application that needs to update labels on Namespaces/Projects. \r\nOpenShift only allows to change the labels on resources of the type \"Namespace\" - when you try to update them on a resource of the type \"Project\" you'll receive a 422 HTTP error code with a message stating that the field is immutable.\r\n\r\nTherefore, it would be nice to have a \"ResourceKind.NAMESPACE\" constant and an \"INamespace\" interface in order to deal with this resource type directly.\r\n\r\nMy workaround for now is to use the \"IResource\" interface in all calls with generics (create, update, delete in my case) and to define an own constant for the \"Namespace\" type so that I can use it in \"client.getResourceFactory.stub(RESOURCE_KIND_NAMESPACE, name)\"."}}
{"actor":{"display_login":"Obirah"}}