Sha256: 8ed898b3d12f32af2f75d7050a016bbe8df0d1ded66a330f37bb7e6cba7034ec

Contents?: true

Size: 646 Bytes

Versions: 33

Compression:

Stored size: 646 Bytes

Contents

module Fog
  module ContainerInfra
    class OpenStack
      class Real
        def update_cluster(uuid_or_name, params)
          request(
            :expects => [202, 200],
            :method  => 'PATCH',
            :path    => "clusters/#{uuid_or_name}",
            :body    => Fog::JSON.encode(params)
          )
        end
      end

      class Mock
        def update_cluster(_uuid_or_name, _params)
          response = Excon::Response.new
          response.status = 202
          response.body = {
            "uuid" => "746e779a-751a-456b-a3e9-c883d734946f"
          }
          response
        end
      end
    end
  end
end

Version data entries

33 entries across 31 versions & 3 rubygems

Version Path
fog-openstack-0.1.27 lib/fog/container_infra/openstack/requests/update_cluster.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-openstack-0.1.26/lib/fog/container_infra/openstack/requests/update_cluster.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-openstack-0.1.26/lib/fog/container_infra/openstack/requests/update_cluster.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-openstack-0.1.26/lib/fog/container_infra/openstack/requests/update_cluster.rb
fog-openstack-0.1.26 lib/fog/container_infra/openstack/requests/update_cluster.rb
fog-openstack-0.1.25 lib/fog/container_infra/openstack/requests/update_cluster.rb
fog-openstack-0.1.24 lib/fog/container_infra/openstack/requests/update_cluster.rb
fog-openstack-0.1.23 lib/fog/container_infra/openstack/requests/update_cluster.rb
fog-openstack-0.1.22 lib/fog/container_infra/openstack/requests/update_cluster.rb
fog-openstack-0.1.21 lib/fog/container_infra/openstack/requests/update_cluster.rb
fog-openstack-0.1.20 lib/fog/container_infra/openstack/requests/update_cluster.rb
fog-openstack-0.1.19 lib/fog/container_infra/openstack/requests/update_cluster.rb
fog-openstack-0.1.18 lib/fog/container_infra/openstack/requests/update_cluster.rb