cfme.cloud.provider.gce module

class cfme.cloud.provider.gce.GCEEndpoint(**kwargs)[source]

Bases: cfme.common.provider.DefaultEndpoint

represents default GCE endpoint (Add/Edit dialogs)

credential_class

alias of ServiceAccountCredential

view_value_mapping
class cfme.cloud.provider.gce.GCEEndpointForm(*args, **kwargs)[source]

Bases: widgetastic.widget.View

represents default GCE endpoint form in UI (Add/Edit dialogs)

service_account

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

validate

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.cloud.provider.gce.GCEProvider(name=None, project=None, zone=None, region=None, region_name=None, endpoints=None, key=None, appliance=None)[source]

Bases: cfme.cloud.provider.CloudProvider

BaseProvider->CloudProvider->GCEProvider class. represents CFME provider and operations available in UI

db_types = ['Google::CloudManager']
endpoints_form

alias of GCEEndpointForm

classmethod from_config(prov_config, prov_key, appliance=None)[source]
classmethod get_credentials(credential_dict, cred_type=None)[source]

Processes a credential dictionary into a credential object.

Parameters:
  • credential_dict – A credential dictionary.
  • cred_type – Type of credential (None, token, ssh, amqp, ...)
Returns:

A cfme.base.credential.ServiceAccountCredential instance.

mgmt_class = <Mock name='mock.GoogleCloudSystem' id='139804017932176'>
type_name = 'gce'
view_value_mapping