Sha256: 9b0fb579ebb555b2aa7935cb6dd7485a528aa12074b57479cc98afaf58686185

Contents?: true

Size: 530 Bytes

Versions: 4

Compression:

Stored size: 530 Bytes

Contents

module Fog
  module SharedFileSystem
    class HuaweiCloud
      class Real
        def revoke_share_access(share_id, access_id)
          action = {
            "#{action_prefix}deny_access" => {
              'access_id' => access_id
            }
          }
          share_action(share_id, action)
        end
      end

      class Mock
        def revoke_share_access(_share_id, _access_id)
          response = Excon::Response.new
          response.status = 202
          response
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/shared_file_system/huaweicloud/requests/revoke_share_access.rb
fog-huaweicloud-0.0.2 lib/fog/shared_file_system/huaweicloud/requests/revoke_share_access.rb
fog-huaweicloud-0.1.3 lib/fog/shared_file_system/huaweicloud/requests/revoke_share_access.rb
fog-huaweicloud-0.1.2 lib/fog/shared_file_system/huaweicloud/requests/revoke_share_access.rb