Sha256: 76bb0569375508828f4172127064efbd6434f4c7c2815023922aeb8c578b9b1b
Contents?: true
Size: 1.88 KB
Versions: 1
Compression:
Stored size: 1.88 KB
Contents
# frozen_string_literal: true require 'vk/api/methods' module Vk module API class Pages < Vk::Schema::Namespace module Methods # Saves modified read and edit access settings for a wiki page. class SaveAccess < Schema::Method # @!group Properties self.open = false self.method = 'pages.saveAccess' # @method initialize(arguments) # @param [Hash] arguments # @option arguments [Integer] :page_id Wiki page ID. # @option arguments [Integer] :group_id ID of the community that owns the wiki page. # @option arguments [Integer] :user_id # @option arguments [Integer] :view Who can view the wiki page:; '1' — only community members; '2' — all users can view the page; '0' — only community managers # @option arguments [Integer] :edit Who can edit the wiki page:; '1' — only community members; '2' — all users can edit the page; '0' — only community managers # @return [Pages::Methods::SaveAccess] # @!group Arguments # @return [Integer] Wiki page ID. attribute :page_id, API::Types::Coercible::Int.optional # @return [Integer] ID of the community that owns the wiki page. attribute :group_id, API::Types::Coercible::Int.optional # @return [Integer] attribute :user_id, API::Types::Coercible::Int.optional # @return [Integer] Who can view the wiki page:; '1' — only community members; '2' — all users can view the page; '0' — only community managers attribute :view, API::Types::Coercible::Int.optional # @return [Integer] Who can edit the wiki page:; '1' — only community members; '2' — all users can edit the page; '0' — only community managers attribute :edit, API::Types::Coercible::Int.optional end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vk-0.99.5.53.alpha | lib/vk/api/pages/methods/save_access.rb |