Inserts a new type of ``Credentials`` instance into the chain that will be tried after an existing one. :param name: The short name of the credentials you'd like to insert the new credentials after. (ex. ``env`` or ``config``). Existing names & order
(self, name, credential_provider)
| 2173 | self.providers.insert(offset, credential_provider) |
| 2174 | |
| 2175 | def insert_after(self, name, credential_provider): |
| 2176 | """ |
| 2177 | Inserts a new type of ``Credentials`` instance into the chain that will |
| 2178 | be tried after an existing one. |
| 2179 | |
| 2180 | :param name: The short name of the credentials you'd like to insert the |
| 2181 | new credentials after. (ex. ``env`` or ``config``). Existing names |
| 2182 | & ordering can be discovered via ``self.available_methods``. |
| 2183 | :type name: string |
| 2184 | |
| 2185 | :param cred_instance: An instance of the new ``Credentials`` object |
| 2186 | you'd like to add to the chain. |
| 2187 | :type cred_instance: A subclass of ``Credentials`` |
| 2188 | """ |
| 2189 | offset = self._get_provider_offset(name) |
| 2190 | self.providers.insert(offset + 1, credential_provider) |
| 2191 | |
| 2192 | def remove(self, name): |
| 2193 | """ |