Adapter instance
AdapterInstance
¶
Bases: Object
Source code in lib/python/src/aria/ops/adapter_instance.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
|
get_certificates()
¶
Gets a list of all certificates that have been validated by a CA or manually accepted by a user.
Returns:
Type | Description |
---|---|
list[Any]
|
A list of certificates for verifying SSL connections. |
Source code in lib/python/src/aria/ops/adapter_instance.py
get_collection_number()
¶
Gets the current collection number, starting from 0. Returns 'None' when called from 'test' and 'get_endpoints'.
Returns:
Type | Description |
---|---|
Optional[int]
|
The current collection number |
Source code in lib/python/src/aria/ops/adapter_instance.py
get_collection_window()
¶
Gets the window for the current collection.
In some cases, it is useful to have a start and end time for collection. The
start_time and end_time will be modified each collection such that each
collection's end_time will be the next collection's start_time. Thus, the
window can be treated as either the interval (start_time, end_time]
or
[start_time, end_time)
, so long as each collection uses the same convention,
there will be no overlaps or missing times. (Note that restarting the adapter
instance will reset the time window. In general, this will cause overlap
and/or missing times when restarts occur for any reason).
Times are provided in milliseconds since the Epoch.
Returns:
Type | Description |
---|---|
Optional[Dict]
|
A dictionary with two keys: 'start_time' and 'end_time'. On the first |
Optional[Dict]
|
collection, 'start_time' will be set to '0'. On calls to 'test' and |
Optional[Dict]
|
'get_endpoints', this will be 'None'. |
Source code in lib/python/src/aria/ops/adapter_instance.py
get_credential_type()
¶
Get the type (key) of credential. This is useful if an adapter supports multiple types of credentials.
Returns:
Type | Description |
---|---|
Optional[str]
|
the type of the credential used by this adapter instance, or None if the adapter instance does not have a credential. |
Source code in lib/python/src/aria/ops/adapter_instance.py
get_credential_value(credential_key)
¶
Retrieve the value of a given credential
Parameters:
Name | Type | Description | Default |
---|---|---|---|
credential_key |
str
|
Key of the credential field |
required |
Returns:
Type | Description |
---|---|
Optional[str]
|
value associated with the credential field, or None if a credential field with the given key does not exist. |
Source code in lib/python/src/aria/ops/adapter_instance.py
get_suite_api_client()
¶
Gets an authenticated Suite API Client. Note that Suite API calls can only be made from the 'collect' endpoint. Returns 'None' when called from 'test' and 'get_endpoints'.
Returns:
Type | Description |
---|---|
Optional[SuiteApiClient]
|
Authenticated SuiteApiClient, or None |