#NEWLINE# def __init__( self , session = None , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        Barbican client object used to interact with barbican service.\n\n        :param session: An instance of keystoneclient.session.Session that\n            can be either authenticated, or not authenticated.  When using\n            a non-authenticated Session, you must provide some additional\n            parameters.  When no session is provided it will default to a\n            non-authenticated Session.\n        :param endpoint: Barbican endpoint url. Required when a session is not\n            given, or when using a non-authenticated session.\n            When using an authenticated session, the client will attempt\n            to get an endpoint from the session.\n        :param project_id: The project ID used for context in Barbican.\n            Required when a session is not given, or when using a\n            non-authenticated session.\n            When using an authenticated session, the project ID will be\n            provided by the authentication mechanism.\n        :param verify: When a session is not given, the client will create\n            a non-authenticated session.  This parameter is passed to the\n            session that is created.  If set to False, it allows\n            barbicanclient to perform "insecure" TLS (https) requests.\n            The server\'s certificate will not be verified against any\n            certificate authorities.\n            WARNING: This option should be used with caution.\n        :param service_type: Used as an endpoint filter when using an\n            authenticated keystone session. Defaults to \'key-management\'.\n        :param service_name: Used as an endpoint filter when using an\n            authenticated keystone session.\n        :param interface: Used as an endpoint filter when using an\n            authenticated keystone session. Defaults to \'public\'.\n        :param region_name: Used as an endpoint filter when using an\n            authenticated keystone session.\n        ' #NEWLINE# LOG . debug ( 'Creating Client object' ) #NEWLINE# if ( not session ) : #NEWLINE# #INDENT# session = ks_session . Session ( verify = kwargs . pop ( 'verify' , True ) ) #NEWLINE# #UNINDENT# if ( ( session . auth is None ) and ( kwargs . get ( 'auth' ) is None ) ) : #NEWLINE# #INDENT# if ( not kwargs . get ( 'endpoint' ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Barbican endpoint url must be provided when not using auth in the Keystone Session.' ) #NEWLINE# #UNINDENT# if ( kwargs . get ( 'project_id' ) is None ) : #NEWLINE# #INDENT# raise ValueError ( 'Project ID must be provided when not using auth in the Keystone Session' ) #NEWLINE# #UNINDENT# #UNINDENT# httpclient = _HTTPClient ( * args , session = session , ** kwargs ) #NEWLINE# self . secrets = secrets . SecretManager ( session ) #NEWLINE# self . orders = orders . OrderManager ( httpclient ) #NEWLINE# self . containers = containers . ContainerManager ( httpclient ) #NEWLINE# self . cas = cas . CAManager ( httpclient ) #NEWLINE# self . acls = acls . ACLManager ( httpclient )