{"action":"created","comment":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/comments/90695619","pull_request_review_id":11215680,"id":90695619,"diff_hunk":"@@ -0,0 +1,377 @@\n+# Copyright 2016 VMware, Inc. All Rights Reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#    http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+\"\"\"\n+Copyright 2016 VMware, Inc.  All rights reserved. \n+Licensed under the Apache License, Version 2.0 \n+http://www.apache.org/licenses/LICENSE-2.0\n+\"\"\"\n+\n+from VmodlDecorators import ManagedType, EnumType, Method, \\\n+   Return, RegisterVmodlTypes, F_OPTIONAL, Param, DataType, Attribute\n+from pyVmomi import Vmodl\n+from pyVmomi.VmomiSupport import newestVersions\n+\n+try:\n+   from asyncVmodlEmitterLib import JavaDocs, Internal\n+except ImportError:\n+   pass\n+   def JavaDocs(parent, docs):\n+      def Decorate(f):\n+         return f\n+      return Decorate\n+   def Internal(parent):\n+      def Decorate(f):\n+         return f\n+      return Decorate\n+\n+\n+# _VERSION = newestVersions.Get(\"vim\")\n+_VERSION = 'vim.version.version10'\n+\n+class VsphereContainerService:\n+   _name = \"vim.vcs.VsphereContainerService\"\n+\n+   @JavaDocs(parent=_name, docs =\n+   \"\"\"\n+   This is the bootstrapping class for vSphere Container Service (VCS).\n+   VCS enables customers to run stateful containerized applications on top\n+   of VMware vSphere platform. This service addresses persistent storage\n+   requirements for Docker containers in vSphere environments, and enables\n+   multitenancy, security and access control from a single location.\n+   \"\"\"\n+   )\n+   @Internal(parent=_name)\n+   @ManagedType(name=_name, version=_VERSION)\n+   def __init__(self):\n+       pass\n+\n+   @JavaDocs(parent=_name, docs=\n+   \"\"\"\n+   Get the TenantManager instance.\n+   @return TenantManager instance.\n+   \"\"\"\n+   )\n+   @Method(parent=_name, wsdlName=\"GetTenantManager\")\n+   @Return(typ=\"vim.vcs.TenantManager\")\n+   def GetTenantManager(self):\n+       pass\n+\n+class TenantManager:\n+       _name = \"vim.vcs.TenantManager\"\n+\n+   @JavaDocs(parent=_name, docs =\n+   \"\"\"\n+   This class manages the lifecycle of tenants for vSphere Container Service.\n+   \"\"\"\n+   )\n+   @Internal(parent=_name)\n+   @ManagedType(name=_name, version=_VERSION)\n+   def __init__(self):\n+       pass\n+\n+   @JavaDocs(parent=_name, docs=\n+   \"\"\"\n+   Create a Tenant instance.\n+   \"\"\"\n+   )\n+   @Method(parent=_name, wsdlName=\"CreateTenant\")\n+   @Param(name=\"name\", typ=\"string\")\n+   @Param(name=\"description\", typ=\"string\", flags=F_OPTIONAL)\n+   @Return(typ=\"vim.vcs.Tenant\")\n+   def CreateTenant(self, name, description=None):\n+       pass\n+\n+   @JavaDocs(parent=_name, docs=\n+   \"\"\"\n+   Remove a Tenant instance. Remove all volumes created by this tenant\n+   if remove_volumes flag is set to True.\n+   \"\"\"\n+   )\n+   @Method(parent=_name, wsdlName=\"RemoveTenant\")\n+   @Param(name=\"name\", typ=\"string\")\n+   @Param(name=\"remove_volumes\", typ=\"boolean\")","path":"esx_service/vmodl/VsphereContainerService.py","position":null,"original_position":104,"commit_id":"37a13d33b235266d942c42415b0b3729dbba7dbc","original_commit_id":"dc4871e849b1d8348878ba2cb609c388a1bfe877","user":{"login":"shaominchen","id":23061118,"avatar_url":"https://avatars.githubusercontent.com/u/23061118?v=3","gravatar_id":"","url":"https://api.github.com/users/shaominchen","html_url":"https://github.com/shaominchen","followers_url":"https://api.github.com/users/shaominchen/followers","following_url":"https://api.github.com/users/shaominchen/following{/other_user}","gists_url":"https://api.github.com/users/shaominchen/gists{/gist_id}","starred_url":"https://api.github.com/users/shaominchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaominchen/subscriptions","organizations_url":"https://api.github.com/users/shaominchen/orgs","repos_url":"https://api.github.com/users/shaominchen/repos","events_url":"https://api.github.com/users/shaominchen/events{/privacy}","received_events_url":"https://api.github.com/users/shaominchen/received_events","type":"User","site_admin":false},"body":"Will address this.","created_at":"2016-12-02T18:38:13Z","updated_at":"2016-12-02T18:38:13Z","html_url":"https://github.com/vmware/docker-volume-vsphere/pull/754#discussion_r90695619","pull_request_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/754","_links":{"self":{"href":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/comments/90695619"},"html":{"href":"https://github.com/vmware/docker-volume-vsphere/pull/754#discussion_r90695619"},"pull_request":{"href":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/754"}}},"pull_request":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/754","id":94464332,"html_url":"https://github.com/vmware/docker-volume-vsphere/pull/754","diff_url":"https://github.com/vmware/docker-volume-vsphere/pull/754.diff","patch_url":"https://github.com/vmware/docker-volume-vsphere/pull/754.patch","issue_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/754","number":754,"state":"open","locked":false,"title":"VMODL API for multi-tenancy support [DRAFT]","user":{"login":"shaominchen","id":23061118,"avatar_url":"https://avatars.githubusercontent.com/u/23061118?v=3","gravatar_id":"","url":"https://api.github.com/users/shaominchen","html_url":"https://github.com/shaominchen","followers_url":"https://api.github.com/users/shaominchen/followers","following_url":"https://api.github.com/users/shaominchen/following{/other_user}","gists_url":"https://api.github.com/users/shaominchen/gists{/gist_id}","starred_url":"https://api.github.com/users/shaominchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaominchen/subscriptions","organizations_url":"https://api.github.com/users/shaominchen/orgs","repos_url":"https://api.github.com/users/shaominchen/repos","events_url":"https://api.github.com/users/shaominchen/events{/privacy}","received_events_url":"https://api.github.com/users/shaominchen/received_events","type":"User","site_admin":false},"body":"The implementation (to provide fake data) has not been implemented yet. Please review the API signatures first.","created_at":"2016-11-19T01:26:56Z","updated_at":"2016-12-02T18:38:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79ba907d92980cc75cb9c93629ad3cdf19e8852f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/754/commits","review_comments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/754/comments","review_comment_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/754/comments","statuses_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/statuses/37a13d33b235266d942c42415b0b3729dbba7dbc","head":{"label":"vmware:vmodl_multi_tenancy.shchen","ref":"vmodl_multi_tenancy.shchen","sha":"37a13d33b235266d942c42415b0b3729dbba7dbc","user":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"repo":{"id":49599693,"name":"docker-volume-vsphere","full_name":"vmware/docker-volume-vsphere","owner":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vmware/docker-volume-vsphere","description":"vSphere Docker Volume Service","fork":false,"url":"https://api.github.com/repos/vmware/docker-volume-vsphere","forks_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/forks","keys_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/teams","hooks_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/hooks","issue_events_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/events{/number}","events_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/events","assignees_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/assignees{/user}","branches_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/branches{/branch}","tags_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/tags","blobs_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/statuses/{sha}","languages_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/languages","stargazers_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/stargazers","contributors_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/contributors","subscribers_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/subscribers","subscription_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/subscription","commits_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/contents/{+path}","compare_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/merges","archive_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/downloads","issues_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues{/number}","pulls_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls{/number}","milestones_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/milestones{/number}","notifications_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels{/name}","releases_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/releases{/id}","deployments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/deployments","created_at":"2016-01-13T20:25:36Z","updated_at":"2016-12-01T19:01:49Z","pushed_at":"2016-12-02T18:09:55Z","git_url":"git://github.com/vmware/docker-volume-vsphere.git","ssh_url":"git@github.com:vmware/docker-volume-vsphere.git","clone_url":"https://github.com/vmware/docker-volume-vsphere.git","svn_url":"https://github.com/vmware/docker-volume-vsphere","homepage":"https://vmware.github.io/docker-volume-vsphere","size":9658,"stargazers_count":89,"watchers_count":89,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"open_issues_count":106,"forks":22,"open_issues":106,"watchers":89,"default_branch":"master"}},"base":{"label":"vmware:master","ref":"master","sha":"0573d4ddfa58e26fda1413be993b6206b86b8c8a","user":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"repo":{"id":49599693,"name":"docker-volume-vsphere","full_name":"vmware/docker-volume-vsphere","owner":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vmware/docker-volume-vsphere","description":"vSphere Docker Volume Service","fork":false,"url":"https://api.github.com/repos/vmware/docker-volume-vsphere","forks_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/forks","keys_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/teams","hooks_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/hooks","issue_events_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/events{/number}","events_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/events","assignees_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/assignees{/user}","branches_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/branches{/branch}","tags_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/tags","blobs_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/statuses/{sha}","languages_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/languages","stargazers_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/stargazers","contributors_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/contributors","subscribers_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/subscribers","subscription_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/subscription","commits_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/contents/{+path}","compare_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/merges","archive_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/downloads","issues_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues{/number}","pulls_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls{/number}","milestones_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/milestones{/number}","notifications_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels{/name}","releases_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/releases{/id}","deployments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/deployments","created_at":"2016-01-13T20:25:36Z","updated_at":"2016-12-01T19:01:49Z","pushed_at":"2016-12-02T18:09:55Z","git_url":"git://github.com/vmware/docker-volume-vsphere.git","ssh_url":"git@github.com:vmware/docker-volume-vsphere.git","clone_url":"https://github.com/vmware/docker-volume-vsphere.git","svn_url":"https://github.com/vmware/docker-volume-vsphere","homepage":"https://vmware.github.io/docker-volume-vsphere","size":9658,"stargazers_count":89,"watchers_count":89,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"open_issues_count":106,"forks":22,"open_issues":106,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/754"},"html":{"href":"https://github.com/vmware/docker-volume-vsphere/pull/754"},"issue":{"href":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/754"},"comments":{"href":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/754/comments"},"review_comments":{"href":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/754/comments"},"review_comment":{"href":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmware/docker-volume-vsphere/pulls/754/commits"},"statuses":{"href":"https://api.github.com/repos/vmware/docker-volume-vsphere/statuses/37a13d33b235266d942c42415b0b3729dbba7dbc"}}}}
{"actor":{"display_login":"shaominchen"}}