Sha256: 952efd5e87e28cff191af20893e1cc6e4daa32a46de6726219557b7b593769be

Contents?: true

Size: 926 Bytes

Versions: 2

Compression:

Stored size: 926 Bytes

Contents

module Fog
  module Compute
    class OneAndOne

      class Real

        ##
        # Returns the credentials for accessing the shared storages
        # URL: [https://cloudpanel-api.1and1.com/documentation/1and1/v1/en/documentation.html#shared_storages_access_get]
        ##
        def change_password(password)
          
          # Create PUT body
          new_password = {
            'password' => password
          }

          # Stringify the PUT body
          string_body = Fog::JSON.encode(new_password)

          # Request
          params = {
            'method' => :put,
            'endpoint' => '/shared_storages/access',
            'body' => string_body
          }

          request(params)

        end

      end # Real

      
      class Mock

        def change_password(password)
          Fog::Mock.not_implemented
        end

      end # Mock

    end # OneAndOne
  end # Compute
end # Fog

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-oneandone-1.2 lib/oneandone/requests/compute/change_password.rb
fog-oneandone-1.0 lib/oneandone/requests/compute/change_password.rb