Acquire.Service._oci_account module

class OCIAccount[source]

Bases: object

This class abstracts all interaction with OCI login accounts. This is a low-level account that allows us to connect to the object store at a low-level and to call OCI functions

static connect_to_bucket(login_details, compartment, bucket_name)[source]
Connect to the object store compartment ‘compartment’
using the passed ‘login_details’, returning a handle to the bucket associated with ‘bucket

static create_and_connect_to_bucket(login_details, compartment, bucket_name=None)[source]

Connect to the object store compartment ‘compartment’ using the passed ‘login_details’, and create a bucket called ‘bucket_name”. Return a handle to the created bucket. If the bucket already exists this will return a handle to the existing bucket

static get_login(login)[source]

This function turns the passed login details into a valid oci login