Sha256: d21d49520cab38b6d1eca015622364f3b82bc8cdbaf8053524966eb2b387e496

Contents?: true

Size: 826 Bytes

Versions: 25

Compression:

Stored size: 826 Bytes

Contents

module Fog
  module SharedFileSystem
    class OpenStack
      class Real
        def remove_security_service_from_share_network(security_service_id, share_network_id)
          action = {
            'remove_security_service' => {
              'security_service_id' => security_service_id
            }
          }
          share_network_action(share_network_id, action)
        end
      end

      class Mock
        def remove_security_service_from_share_network(_security_service_id, share_network_id)
          response = Excon::Response.new
          response.status = 200

          share_net = data[:share_network_updated] || data[:share_networks].first
          share_net['id'] = share_network_id
          response.body = {'share_network' => share_net}
          response
        end
      end
    end
  end
end

Version data entries

25 entries across 23 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.10 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.1.30 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.1.29 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.9 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.1.28 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.8 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.7 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.6 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.5 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.4 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.3 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.2 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.3.0 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.2.4 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.2.3 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.2.2 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.2.1 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-openstack-0.2.0 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb
fog-zj-0.1.28 lib/fog/shared_file_system/openstack/requests/remove_security_service_from_share_network.rb