Sha256: 3d34f4cffd133f2b8419478090dba943fabc205cce62cbe67e0554f778c20d22

Contents?: true

Size: 1.71 KB

Versions: 20

Compression:

Stored size: 1.71 KB

Contents

require_relative 'base'

module Fog
  module OpenStack
    class  ContainerInfra
      class BayModel < Fog::OpenStack::ContainerInfra::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 :https_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_bay_model(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_bay_model(uuid, attrs).body)
          self
        end

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

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.1.2 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-fork-99 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.1.0 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.1.0.pre lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.11 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.10 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.9 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.8 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.7 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.6 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.5 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.4 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.3 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.2 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.1 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-1.0.0 lib/fog/openstack/container_infra/models/bay_model.rb
fog-openstack-0.3.1 lib/fog/openstack/container_infra/models/bay_model.rb