cfme.base package

Module contents

class cfme.base.Region(parent, number=0)[source]

Bases: cfme.modeling.base.BaseEntity, sentaku.modeling.ElementMixin

__ge__(other)

Automatically created by attrs.

__gt__(other)

Automatically created by attrs.

__le__(other)

Automatically created by attrs.

__lt__(other)

Automatically created by attrs.

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

advanced_settings

“GET zones/:id/settings api endpoint to query region configuration

replication
settings_string
update_advanced_settings(settings_dict)[source]

PATCH settings from the zone’s api/zones/:id/settings endpoint

Parameters:settings_dict – dictionary of the changes to be made to the yaml configuration JSON dumps settings_dict to pass as raw hash data to rest_api session
Raises:AssertionError – On an http result >=400 (RequestsResponse.ok)
class cfme.base.RegionCollection(parent, filters=NOTHING)[source]

Bases: cfme.modeling.base.BaseCollection, sentaku.modeling.ElementMixin

ENTITY

alias of Region

__ge__(other)

Automatically created by attrs.

__gt__(other)

Automatically created by attrs.

__le__(other)

Automatically created by attrs.

__lt__(other)

Automatically created by attrs.

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

all()[source]
class cfme.base.Server(parent, name, sid=1)[source]

Bases: cfme.modeling.base.BaseEntity, sentaku.modeling.ElementMixin

__ge__(other)

Automatically created by attrs.

__gt__(other)

Automatically created by attrs.

__le__(other)

Automatically created by attrs.

__lt__(other)

Automatically created by attrs.

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

address

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
advanced_settings

GET servers/:id/settings api endpoint to query server configuration

authentication
collect_logs
current_full_name

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
current_group_name

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
current_username

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
group_names

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
logged_in

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
login

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
login_admin

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
logout

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
settings
slave_servers
update_advanced_settings(settings_dict)[source]

PATCH settings from the server’s api/server/:id/settings endpoint

Parameters:settings_dict – dictionary of the changes to be made to the yaml configuration JSON dumps settings_dict to pass as raw hash data to rest_api session
Raises:AssertionError – On an http result >=400 (RequestsResponse.ok)
update_password

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
zone
class cfme.base.ServerCollection(parent, filters=NOTHING)[source]

Bases: cfme.modeling.base.BaseCollection, sentaku.modeling.ElementMixin

ENTITY

alias of Server

__ge__(other)

Automatically created by attrs.

__gt__(other)

Automatically created by attrs.

__le__(other)

Automatically created by attrs.

__lt__(other)

Automatically created by attrs.

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

all()[source]
get_master()[source]
class cfme.base.Zone(parent, name='default', description='Default Zone', id=None, smartproxy_ip=None, ntp_servers=None, max_scans=None, user=None)[source]

Bases: cfme.utils.pretty.Pretty, cfme.modeling.base.BaseEntity, sentaku.modeling.ElementMixin

Configure/Configuration/Region/Zones functionality

Create/Read/Update/Delete functionality.

__ge__(other)

Automatically created by attrs.

__gt__(other)

Automatically created by attrs.

__le__(other)

Automatically created by attrs.

__lt__(other)

Automatically created by attrs.

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

advanced_settings

“GET zones/:id/settings api endpoint to query zone configuration

collect_logs
delete

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
exists
pretty_attrs = ['name', 'description', 'smartproxy_ip', 'ntp_servers', 'max_scans', 'user']
region
update

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass
update_advanced_settings(settings_dict)[source]

PATCH settings from the zone’s api/zones/:id/settings endpoint

Parameters:settings_dict – dictionary of the changes to be made to the yaml configuration JSON dumps settings_dict to pass as raw hash data to rest_api session
Raises:AssertionError – On an http result >=400 (RequestsResponse.ok)
class cfme.base.ZoneCollection(parent, filters=NOTHING, region=None)[source]

Bases: cfme.modeling.base.BaseCollection, sentaku.modeling.ElementMixin

ENTITY

alias of Zone

__ge__(other)

Automatically created by attrs.

__gt__(other)

Automatically created by attrs.

__le__(other)

Automatically created by attrs.

__lt__(other)

Automatically created by attrs.

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

all()[source]
create

descriptor for implementing context sensitive methods and registration of their implementations

class Example(Element):
    action = ContextualMethod()
    @action.implemented_for("db")
    def action(self):
        pass

   @action.implemented_for("test")
   def action(self):
       pass