Sha256: 3e583b8e70c4596135d69cf21909e414a1a78df000452db658d0ab442d244353

Contents?: true

Size: 670 Bytes

Versions: 4

Compression:

Stored size: 670 Bytes

Contents

module Fog
  module SharedFileSystem
    class HuaweiCloud
      class Real
        def get_security_service(id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "security-services/#{id}"
          )
        end
      end

      class Mock
        def get_security_service(id)
          response = Excon::Response.new
          response.status = 200
          security_service = data[:security_service_updated] || data[:security_services_detail].first
          security_service['id'] = id
          response.body = {'security_service' => security_service}
          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/get_security_service.rb
fog-huaweicloud-0.0.2 lib/fog/shared_file_system/huaweicloud/requests/get_security_service.rb
fog-huaweicloud-0.1.3 lib/fog/shared_file_system/huaweicloud/requests/get_security_service.rb
fog-huaweicloud-0.1.2 lib/fog/shared_file_system/huaweicloud/requests/get_security_service.rb