Sha256: eeb23fb7477f00731b7d3cbea280fd476c65ce5ce3e58ecc7002e495ec6eccea

Contents?: true

Size: 1.72 KB

Versions: 33

Compression:

Stored size: 1.72 KB

Contents

require_relative 'base'

module Fog
  module ContainerInfra
    class OpenStack
      class ClusterTemplate < Fog::ContainerInfra::OpenStack::Base
        identity :uuid
        
        attribute :apiserver_port
        attribute :cluster_distro
        attribute :coe
        attribute :created_at
        attribute :dns_nameserver
        attribute :docker_storage_driver
        attribute :docker_volume_size
        attribute :external_network_id
        attribute :fixed_network
        attribute :fixed_subnet
        attribute :flavor_id
        attribute :floating_ip_enabled
        attribute :http_proxy
        attribute :image_id
        attribute :insecure_registry
        attribute :keypair_id
        attribute :labels
        attribute :master_flavor_id
        attribute :master_lb_enabled
        attribute :name
        attribute :network_driver
        attribute :no_proxy
        attribute :public
        attribute :registry_enabled
        attribute :server_type
        attribute :tls_disabled
        attribute :updated_at
        attribute :volume_driver

        def create
          requires :name, :keypair_id,  :flavor_id, :image_id,
                   :external_network_id, :coe
          merge_attributes(service.create_cluster_template(attributes).body)
          self
        end

        def update
          requires :uuid, :name, :keypair_id,  :flavor_id, :image_id,
                   :external_network_id, :coe
          attrs = convert_update_params(attributes)
          merge_attributes(service.update_cluster_template(uuid, attrs).body)
          self
        end

        def destroy
          requires :uuid
          service.delete_cluster_template(uuid)
          true
        end
      end
    end
  end
end

Version data entries

33 entries across 31 versions & 3 rubygems

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