azure-servicemanagement-legacy/azure/servicemanagement/servicemanagementservice.py
def share_vm_image(self, vm_image_name, permission):
        '''
        Share an already replicated OS image. This operation is only for
        publishers. You have to be registered as image publisher with Windows
        Azure to be able to call this.

        vm_image_name:
            The name of the virtual machine image to share
        permission:
            The sharing permission: public, msdn, or private
        '''
        _validate_not_none('vm_image_name', vm_image_name)
        _validate_not_none('permission', permission)

        path = self._get_sharing_path_using_vm_image_name(vm_image_name)
        query = '&permission=' + permission
        path = path + '?' + query.lstrip('&')

        return self._perform_put(
            path, None, as_async=True, x_ms_version='2015-04-01'
        )
def share_vm_image(self, vm_image_name, permission):
        '''
        Share an already replicated OS image. This operation is only for
        publishers. You have to be registered as image publisher with Windows
        Azure to be able to call this.

        vm_image_name:
            The name of the virtual machine image to share
        permission:
            The sharing permission: public, msdn, or private
        '''
        _validate_not_none('vm_image_name', vm_image_name)
        _validate_not_none('permission', permission)

        path = self._get_sharing_path_using_vm_image_name(vm_image_name)
        query = '&permission=' + permission
        path = path + '?' + query.lstrip('&')

        return self._perform_put(
            path, None, as_async=True, x_ms_version='2015-04-01'
        )
def share_vm_image ( self , vm_image_name , permission ) : _validate_not_none ( 'vm_image_name' , vm_image_name ) _validate_not_none ( 'permission' , permission ) path = self . _get_sharing_path_using_vm_image_name ( vm_image_name ) query = '&permission=' + permission path = path + '?' + query . lstrip ( '&' ) return self . _perform_put ( path , None , as_async = True , x_ms_version = '2015-04-01' )
Share an already replicated OS image. This operation is only for
        publishers. You have to be registered as image publisher with Windows
        Azure to be able to call this.

        vm_image_name:
            The name of the virtual machine image to share
        permission:
            The sharing permission: public, msdn, or private
Share an already replicated OS image . This operation is only for publishers . You have to be registered as image publisher with Windows Azure to be able to call this .