CloudProviders.Provider

g CloudProviders.Provider CloudProviders.Provider GObject.Object GObject.Object GObject.Object->CloudProviders.Provider

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (bus_name, object_path)

get_accounts ()

get_name ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

name

str

r

Signals

Inherited:

GObject.Object (1)

Name

Short Description

accounts-changed

This signal is emitted by a provider if the number of accounts changed.

removed

This signal is emitted by a provider when the provider is removed in DBUS.

Fields

Inherited:

GObject.Object (1)

Class Details

class CloudProviders.Provider(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

CloudProviders.ProviderClass

Base object for representing a single provider for clients.

This is the basic object object for client implementers that contains the properties of the provider such as name, and the accounts associated with it.

classmethod new(bus_name, object_path)
Parameters:
  • bus_name (str) – A unique name for the provider. Must be a valid DBus object name.

  • object_path (str) – The object path to expose this provider.

Returns:

A new [class`Provider`]

Return type:

CloudProviders.Provider

Create a new [class`Provider`] object

get_accounts()
Returns:

A list of [class`Account`] objects.

Return type:

[CloudProviders.Account]

Get the list of accounts from this provider.

get_name()
Returns:

the name of the provider

Return type:

str

Get the name of this provider.

Signal Details

CloudProviders.Provider.signals.accounts_changed(provider)
Signal Name:

accounts-changed

Flags:

RUN_LAST

Parameters:

provider (CloudProviders.Provider) – The object which received the signal

This signal is emitted by a provider if the number of accounts changed.

CloudProviders.Provider.signals.removed(provider)
Signal Name:

removed

Flags:

RUN_LAST

Parameters:

provider (CloudProviders.Provider) – The object which received the signal

This signal is emitted by a provider when the provider is removed in DBUS.

Property Details

CloudProviders.Provider.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE

The name of the cloud provider.