sap-ai-sdk-core 2.9.9__py3-none-any.whl → 3.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ai_core_sdk/ai_core_v2_client.py +157 -0
- ai_core_sdk/cli.py +172 -0
- ai_core_sdk/credentials.py +196 -0
- ai_core_sdk/exception.py +11 -0
- ai_core_sdk/helpers/__init__.py +39 -0
- ai_core_sdk/helpers/constants.py +18 -0
- ai_core_sdk/helpers/logging.py +23 -0
- ai_core_sdk/models/__init__.py +33 -0
- ai_core_sdk/models/application.py +37 -0
- ai_core_sdk/models/application_query_response.py +30 -0
- ai_core_sdk/models/application_resource_sync_status.py +34 -0
- ai_core_sdk/models/application_source.py +34 -0
- ai_core_sdk/models/application_status.py +66 -0
- ai_core_sdk/models/base_models.py +62 -0
- ai_core_sdk/models/docker_registry_secret.py +23 -0
- ai_core_sdk/models/docker_registry_secret_query_response.py +30 -0
- ai_core_sdk/models/kpi.py +25 -0
- ai_core_sdk/models/object_store_secret.py +32 -0
- ai_core_sdk/models/object_store_secret_query_response.py +30 -0
- ai_core_sdk/models/repository.py +36 -0
- ai_core_sdk/models/repository_query_response.py +30 -0
- ai_core_sdk/models/repository_status.py +9 -0
- ai_core_sdk/models/resource_group.py +50 -0
- ai_core_sdk/models/resource_group_query_response.py +31 -0
- ai_core_sdk/models/resource_group_status.py +9 -0
- ai_core_sdk/models/secret.py +30 -0
- ai_core_sdk/models/secret_query_response.py +30 -0
- ai_core_sdk/resource_clients/__init__.py +13 -0
- ai_core_sdk/resource_clients/applications_client.py +173 -0
- ai_core_sdk/resource_clients/docker_registry_secrets_client.py +117 -0
- ai_core_sdk/resource_clients/internal_rest_client.py +52 -0
- ai_core_sdk/resource_clients/kpi_client.py +26 -0
- ai_core_sdk/resource_clients/metrics_client.py +131 -0
- ai_core_sdk/resource_clients/object_store_secrets_client.py +215 -0
- ai_core_sdk/resource_clients/repositories_client.py +116 -0
- ai_core_sdk/resource_clients/secrets_client.py +148 -0
- ai_core_sdk/tracking/__init__.py +2 -0
- ai_core_sdk/tracking/tracking.py +215 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.ai_core_v2_client.html +127 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.cli.html +59 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.credentials.html +209 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.exception.html +161 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.helpers.constants.html +90 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.helpers.html +52 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.helpers.logging.html +41 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.html +29 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.application.html +79 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.application_query_response.html +86 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.application_resource_sync_status.html +77 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.application_source.html +77 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.application_status.html +90 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.base_models.html +120 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.docker_registry_secret.html +85 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.docker_registry_secret_query_response.html +86 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.html +40 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.kpi.html +73 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.object_store_secret.html +71 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.object_store_secret_query_response.html +86 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.repository.html +77 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.repository_query_response.html +86 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.repository_status.html +69 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.resource_group.html +85 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.resource_group_query_response.html +86 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.resource_group_status.html +69 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.secret.html +76 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.models.secret_query_response.html +86 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.applications_client.html +186 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.docker_registry_secrets_client.html +147 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.html +29 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.internal_rest_client.html +181 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.kpi_client.html +87 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.metrics_client.html +189 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.object_store_secrets_client.html +205 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.repositories_client.html +148 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.resource_groups_client.html +156 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.resource_clients.secrets_client.html +165 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.tracking.html +22 -0
- sap_ai_sdk_core-3.0.3.data/data/docs/ai_core_sdk.tracking.tracking.html +224 -0
- sap_ai_sdk_core-3.0.3.dist-info/METADATA +253 -0
- sap_ai_sdk_core-3.0.3.dist-info/RECORD +84 -0
- {sap_ai_sdk_core-2.9.9.dist-info → sap_ai_sdk_core-3.0.3.dist-info}/WHEEL +1 -1
- sap_ai_sdk_core-3.0.3.dist-info/top_level.txt +1 -0
- sap_ai_sdk_core-2.9.9.dist-info/METADATA +0 -43
- sap_ai_sdk_core-2.9.9.dist-info/RECORD +0 -6
- sap_ai_sdk_core-2.9.9.dist-info/top_level.txt +0 -1
- {sap-ai-sdk-core → ai_core_sdk}/__init__.py +0 -0
- {sap_ai_sdk_core-2.9.9.dist-info/licenses → sap_ai_sdk_core-3.0.3.dist-info}/LICENSE +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
2
|
+
<html><head><title>Python: module ai_core_sdk.credentials</title>
|
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
4
|
+
</head><body bgcolor="#f0f0f8">
|
|
5
|
+
|
|
6
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
7
|
+
<tr bgcolor="#7799ee">
|
|
8
|
+
<td valign=bottom> <br>
|
|
9
|
+
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ai_core_sdk.html"><font color="#ffffff">ai_core_sdk</font></a>.credentials</strong></big></big></font></td
|
|
10
|
+
><td align=right valign=bottom
|
|
11
|
+
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/credentials.py">/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/credentials.py</a></font></td></tr></table>
|
|
12
|
+
<p></p>
|
|
13
|
+
<p>
|
|
14
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
15
|
+
<tr bgcolor="#aa55cc">
|
|
16
|
+
<td colspan=3 valign=bottom> <br>
|
|
17
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
18
|
+
|
|
19
|
+
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
20
|
+
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="json.html">json</a><br>
|
|
21
|
+
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
|
22
|
+
</td><td width="25%" valign=top><a href="pathlib.html">pathlib</a><br>
|
|
23
|
+
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
|
24
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
25
|
+
<tr bgcolor="#ee77aa">
|
|
26
|
+
<td colspan=3 valign=bottom> <br>
|
|
27
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
28
|
+
|
|
29
|
+
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
|
30
|
+
<td width="100%"><dl>
|
|
31
|
+
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
|
|
32
|
+
</font></dt><dd>
|
|
33
|
+
<dl>
|
|
34
|
+
<dt><font face="helvetica, arial"><a href="ai_core_sdk.credentials.html#CredentialsValue">CredentialsValue</a>
|
|
35
|
+
</font></dt><dt><font face="helvetica, arial"><a href="ai_core_sdk.credentials.html#Service">Service</a>
|
|
36
|
+
</font></dt><dt><font face="helvetica, arial"><a href="ai_core_sdk.credentials.html#VCAPEnvironment">VCAPEnvironment</a>
|
|
37
|
+
</font></dt></dl>
|
|
38
|
+
</dd>
|
|
39
|
+
</dl>
|
|
40
|
+
<p>
|
|
41
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
42
|
+
<tr bgcolor="#ffc8d8">
|
|
43
|
+
<td colspan=3 valign=bottom> <br>
|
|
44
|
+
<font color="#000000" face="helvetica, arial"><a name="CredentialsValue">class <strong>CredentialsValue</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
|
|
45
|
+
|
|
46
|
+
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
47
|
+
<td colspan=2><tt><a href="#CredentialsValue">CredentialsValue</a>(name: 'str', vcap_key: 'Optional[Tuple[str, ...]]' = None, default: 'Optional[str]' = None, transform_fn: 'Optional[Callable]' = None) -&gt; None<br>
|
|
48
|
+
<br>
|
|
49
|
+
<a href="#CredentialsValue">CredentialsValue</a>(name: 'str', vcap_key: 'Optional[Tuple[str, ...]]' = None, default: 'Optional[str]' = None, transform_fn: 'Optional[Callable]' = None)<br> </tt></td></tr>
|
|
50
|
+
<tr><td> </td>
|
|
51
|
+
<td width="100%">Methods defined here:<br>
|
|
52
|
+
<dl><dt><a name="CredentialsValue-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return self==value.</tt></dd></dl>
|
|
53
|
+
|
|
54
|
+
<dl><dt><a name="CredentialsValue-__init__"><strong>__init__</strong></a>(self, name: 'str', vcap_key: 'Optional[Tuple[str, ...]]' = None, default: 'Optional[str]' = None, transform_fn: 'Optional[Callable]' = None) -> None</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
|
|
55
|
+
|
|
56
|
+
<dl><dt><a name="CredentialsValue-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return repr(self).</tt></dd></dl>
|
|
57
|
+
|
|
58
|
+
<hr>
|
|
59
|
+
Data descriptors defined here:<br>
|
|
60
|
+
<dl><dt><strong>__dict__</strong></dt>
|
|
61
|
+
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
62
|
+
</dl>
|
|
63
|
+
<dl><dt><strong>__weakref__</strong></dt>
|
|
64
|
+
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
65
|
+
</dl>
|
|
66
|
+
<hr>
|
|
67
|
+
Data and other attributes defined here:<br>
|
|
68
|
+
<dl><dt><strong>__annotations__</strong> = {'default': 'Optional[str]', 'name': 'str', 'transform_fn': 'Optional[Callable]', 'vcap_key': 'Optional[Tuple[str, ...]]'}</dl>
|
|
69
|
+
|
|
70
|
+
<dl><dt><strong>__dataclass_fields__</strong> = {'default': Field(name='default',type='Optional[str]',defaul...appingproxy({}),kw_only=False,_field_type=_FIELD), 'name': Field(name='name',type='str',default=<dataclasse...appingproxy({}),kw_only=False,_field_type=_FIELD), 'transform_fn': Field(name='transform_fn',type='Optional[Callabl...appingproxy({}),kw_only=False,_field_type=_FIELD), 'vcap_key': Field(name='vcap_key',type='Optional[Tuple[str, ...appingproxy({}),kw_only=False,_field_type=_FIELD)}</dl>
|
|
71
|
+
|
|
72
|
+
<dl><dt><strong>__dataclass_params__</strong> = _DataclassParams(init=True,repr=True,eq=True,order=False,unsafe_hash=False,frozen=False)</dl>
|
|
73
|
+
|
|
74
|
+
<dl><dt><strong>__hash__</strong> = None</dl>
|
|
75
|
+
|
|
76
|
+
<dl><dt><strong>__match_args__</strong> = ('name', 'vcap_key', 'default', 'transform_fn')</dl>
|
|
77
|
+
|
|
78
|
+
<dl><dt><strong>default</strong> = None</dl>
|
|
79
|
+
|
|
80
|
+
<dl><dt><strong>transform_fn</strong> = None</dl>
|
|
81
|
+
|
|
82
|
+
<dl><dt><strong>vcap_key</strong> = None</dl>
|
|
83
|
+
|
|
84
|
+
</td></tr></table> <p>
|
|
85
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
86
|
+
<tr bgcolor="#ffc8d8">
|
|
87
|
+
<td colspan=3 valign=bottom> <br>
|
|
88
|
+
<font color="#000000" face="helvetica, arial"><a name="Service">class <strong>Service</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
|
|
89
|
+
|
|
90
|
+
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
91
|
+
<td colspan=2><tt><a href="#Service">Service</a>(env: 'Dict[str, Any]')<br>
|
|
92
|
+
<br>
|
|
93
|
+
<br> </tt></td></tr>
|
|
94
|
+
<tr><td> </td>
|
|
95
|
+
<td width="100%">Methods defined here:<br>
|
|
96
|
+
<dl><dt><a name="Service-__getitem__"><strong>__getitem__</strong></a>(self, key)</dt></dl>
|
|
97
|
+
|
|
98
|
+
<dl><dt><a name="Service-__init__"><strong>__init__</strong></a>(self, env: 'Dict[str, Any]')</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
|
|
99
|
+
|
|
100
|
+
<dl><dt><a name="Service-get"><strong>get</strong></a>(self, key, default=<object object at 0x7fadc590d790>)</dt></dl>
|
|
101
|
+
|
|
102
|
+
<hr>
|
|
103
|
+
Readonly properties defined here:<br>
|
|
104
|
+
<dl><dt><strong>label</strong></dt>
|
|
105
|
+
</dl>
|
|
106
|
+
<dl><dt><strong>name</strong></dt>
|
|
107
|
+
</dl>
|
|
108
|
+
<hr>
|
|
109
|
+
Data descriptors defined here:<br>
|
|
110
|
+
<dl><dt><strong>__dict__</strong></dt>
|
|
111
|
+
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
112
|
+
</dl>
|
|
113
|
+
<dl><dt><strong>__weakref__</strong></dt>
|
|
114
|
+
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
115
|
+
</dl>
|
|
116
|
+
</td></tr></table> <p>
|
|
117
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
118
|
+
<tr bgcolor="#ffc8d8">
|
|
119
|
+
<td colspan=3 valign=bottom> <br>
|
|
120
|
+
<font color="#000000" face="helvetica, arial"><a name="VCAPEnvironment">class <strong>VCAPEnvironment</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
|
|
121
|
+
|
|
122
|
+
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
123
|
+
<td colspan=2><tt><a href="#VCAPEnvironment">VCAPEnvironment</a>(services: 'List[<a href="#Service">Service</a>]') -&gt; None<br>
|
|
124
|
+
<br>
|
|
125
|
+
<a href="#VCAPEnvironment">VCAPEnvironment</a>(services: 'List[<a href="#Service">Service</a>]')<br> </tt></td></tr>
|
|
126
|
+
<tr><td> </td>
|
|
127
|
+
<td width="100%">Methods defined here:<br>
|
|
128
|
+
<dl><dt><a name="VCAPEnvironment-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return self==value.</tt></dd></dl>
|
|
129
|
+
|
|
130
|
+
<dl><dt><a name="VCAPEnvironment-__getitem__"><strong>__getitem__</strong></a>(self, name) -> 'Service'</dt></dl>
|
|
131
|
+
|
|
132
|
+
<dl><dt><a name="VCAPEnvironment-__init__"><strong>__init__</strong></a>(self, services: 'List[Service]') -> None</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
|
|
133
|
+
|
|
134
|
+
<dl><dt><a name="VCAPEnvironment-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return repr(self).</tt></dd></dl>
|
|
135
|
+
|
|
136
|
+
<dl><dt><a name="VCAPEnvironment-get_service"><strong>get_service</strong></a>(self, label, exactly_one: 'bool' = True) -> 'Service'</dt></dl>
|
|
137
|
+
|
|
138
|
+
<dl><dt><a name="VCAPEnvironment-get_service_by_name"><strong>get_service_by_name</strong></a>(self, name, exactly_one: 'bool' = True) -> 'Service'</dt></dl>
|
|
139
|
+
|
|
140
|
+
<hr>
|
|
141
|
+
Class methods defined here:<br>
|
|
142
|
+
<dl><dt><a name="VCAPEnvironment-from_dict"><strong>from_dict</strong></a>(env: 'Dict[str, Any]')<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>
|
|
143
|
+
|
|
144
|
+
<dl><dt><a name="VCAPEnvironment-from_env"><strong>from_env</strong></a>(env_var: 'Optional[str]' = None)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>
|
|
145
|
+
|
|
146
|
+
<hr>
|
|
147
|
+
Data descriptors defined here:<br>
|
|
148
|
+
<dl><dt><strong>__dict__</strong></dt>
|
|
149
|
+
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
|
|
150
|
+
</dl>
|
|
151
|
+
<dl><dt><strong>__weakref__</strong></dt>
|
|
152
|
+
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
153
|
+
</dl>
|
|
154
|
+
<hr>
|
|
155
|
+
Data and other attributes defined here:<br>
|
|
156
|
+
<dl><dt><strong>__annotations__</strong> = {'services': 'List[Service]'}</dl>
|
|
157
|
+
|
|
158
|
+
<dl><dt><strong>__dataclass_fields__</strong> = {'services': Field(name='services',type='List[Service]',defau...appingproxy({}),kw_only=False,_field_type=_FIELD)}</dl>
|
|
159
|
+
|
|
160
|
+
<dl><dt><strong>__dataclass_params__</strong> = _DataclassParams(init=True,repr=True,eq=True,order=False,unsafe_hash=False,frozen=False)</dl>
|
|
161
|
+
|
|
162
|
+
<dl><dt><strong>__hash__</strong> = None</dl>
|
|
163
|
+
|
|
164
|
+
<dl><dt><strong>__match_args__</strong> = ('services',)</dl>
|
|
165
|
+
|
|
166
|
+
</td></tr></table></td></tr></table><p>
|
|
167
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
168
|
+
<tr bgcolor="#eeaa77">
|
|
169
|
+
<td colspan=3 valign=bottom> <br>
|
|
170
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
171
|
+
|
|
172
|
+
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
173
|
+
<td width="100%"><dl><dt><a name="-fetch_credentials"><strong>fetch_credentials</strong></a>(profile: 'str' = None, **kwargs) -> 'Dict[str, str]'</dt></dl>
|
|
174
|
+
<dl><dt><a name="-get_nested_value"><strong>get_nested_value</strong></a>(data_dict, keys: 'List[str]')</dt><dd><tt>Retrieve a nested value from a dictionary using a list of strings.<br>
|
|
175
|
+
<br>
|
|
176
|
+
:param data_dict: The dictionary to search.<br>
|
|
177
|
+
:param keys: A list of strings representing nested keys.<br>
|
|
178
|
+
:return: The value associated with the nested keys, or None if not found.</tt></dd></dl>
|
|
179
|
+
<dl><dt><a name="-init_conf"><strong>init_conf</strong></a>(profile: 'str' = None)</dt></dl>
|
|
180
|
+
<dl><dt><a name="-resolve_params"><strong>resolve_params</strong></a>(config, cred_value, vcap_service, **kwargs)</dt><dd><tt>Resolves the parameter value by checking multiple sources in order:<br>
|
|
181
|
+
kwargs, environment variables, config, VCAP services, and defaults.<br>
|
|
182
|
+
Logs the source of the resolved value.</tt></dd></dl>
|
|
183
|
+
</td></tr></table><p>
|
|
184
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
185
|
+
<tr bgcolor="#55aa55">
|
|
186
|
+
<td colspan=3 valign=bottom> <br>
|
|
187
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
188
|
+
|
|
189
|
+
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
|
190
|
+
<td width="100%"><strong>AI_CORE_PREFIX</strong> = 'AICORE'<br>
|
|
191
|
+
<strong>AUTH_ENDPOINT_SUFFIX</strong> = '/oauth/token'<br>
|
|
192
|
+
<strong>Any</strong> = typing.Any<br>
|
|
193
|
+
<strong>CONFIG_FILE_ENV_VAR</strong> = 'AICORE_CONFIG'<br>
|
|
194
|
+
<strong>CREDENTIAL_VALUES</strong> = [CredentialsValue(name='client_id', vcap_key=('cr...s', 'clientid'), default=None, transform_fn=None), CredentialsValue(name='client_secret', vcap_key=...'clientsecret'), default=None, transform_fn=None), CredentialsValue(name='auth_url', vcap_key=('cre...ansform_fn=<function <lambda> at 0x7fadc40fd120>), CredentialsValue(name='base_url', vcap_key=('cre...ansform_fn=<function <lambda> at 0x7fadc40fdc60>), CredentialsValue(name='resource_group', vcap_key=None, default=None, transform_fn=None), CredentialsValue(name='cert_url', vcap_key=('cre...ansform_fn=<function <lambda> at 0x7fadc40fdd80>), CredentialsValue(name='cert_file_path', vcap_key=None, default=None, transform_fn=None), CredentialsValue(name='key_file_path', vcap_key=None, default=None, transform_fn=None), CredentialsValue(name='cert_str', vcap_key=('cre...ansform_fn=<function <lambda> at 0x7fadc40fde10>), CredentialsValue(name='key_str', vcap_key=('cred...ansform_fn=<function <lambda> at 0x7fadc40fdea0>)]<br>
|
|
195
|
+
<strong>Callable</strong> = typing.Callable<br>
|
|
196
|
+
<strong>Dict</strong> = typing.Dict<br>
|
|
197
|
+
<strong>Final</strong> = typing.Final<br>
|
|
198
|
+
<strong>List</strong> = typing.List<br>
|
|
199
|
+
<strong>NoDefault</strong> = <object object><br>
|
|
200
|
+
<strong>Optional</strong> = typing.Optional<br>
|
|
201
|
+
<strong>PROFILE_ENV_VAR</strong> = 'AICORE_PROFILE'<br>
|
|
202
|
+
<strong>Tuple</strong> = typing.Tuple<br>
|
|
203
|
+
<strong>Union</strong> = typing.Union<br>
|
|
204
|
+
<strong>VCAP_AICORE_SERVICE_NAME</strong> = 'aicore'<br>
|
|
205
|
+
<strong>VCAP_SERVICES_ENV_VAR</strong> = 'VCAP_SERVICES'<br>
|
|
206
|
+
<strong>__annotations__</strong> = {'CREDENTIAL_VALUES': 'Final[List[CredentialsValue]]'}<br>
|
|
207
|
+
<strong>annotations</strong> = _Feature((3, 7, 0, 'beta', 1), (3, 11, 0, 'alpha', 0), 16777216)<br>
|
|
208
|
+
<strong>logger</strong> = <Logger ai_core_sdk (INFO)></td></tr></table>
|
|
209
|
+
</body></html>
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
2
|
+
<html><head><title>Python: module ai_core_sdk.exception</title>
|
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
4
|
+
</head><body bgcolor="#f0f0f8">
|
|
5
|
+
|
|
6
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
7
|
+
<tr bgcolor="#7799ee">
|
|
8
|
+
<td valign=bottom> <br>
|
|
9
|
+
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ai_core_sdk.html"><font color="#ffffff">ai_core_sdk</font></a>.exception</strong></big></big></font></td
|
|
10
|
+
><td align=right valign=bottom
|
|
11
|
+
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/exception.py">/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/exception.py</a></font></td></tr></table>
|
|
12
|
+
<p></p>
|
|
13
|
+
<p>
|
|
14
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
15
|
+
<tr bgcolor="#ee77aa">
|
|
16
|
+
<td colspan=3 valign=bottom> <br>
|
|
17
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
18
|
+
|
|
19
|
+
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
|
20
|
+
<td width="100%"><dl>
|
|
21
|
+
<dt><font face="helvetica, arial"><a href="builtins.html#Exception">builtins.Exception</a>(<a href="builtins.html#BaseException">builtins.BaseException</a>)
|
|
22
|
+
</font></dt><dd>
|
|
23
|
+
<dl>
|
|
24
|
+
<dt><font face="helvetica, arial"><a href="ai_core_sdk.exception.html#AICoreSDKException">AICoreSDKException</a>
|
|
25
|
+
</font></dt><dd>
|
|
26
|
+
<dl>
|
|
27
|
+
<dt><font face="helvetica, arial"><a href="ai_core_sdk.exception.html#AICoreInvalidInputException">AICoreInvalidInputException</a>
|
|
28
|
+
</font></dt></dl>
|
|
29
|
+
</dd>
|
|
30
|
+
</dl>
|
|
31
|
+
</dd>
|
|
32
|
+
</dl>
|
|
33
|
+
<p>
|
|
34
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
35
|
+
<tr bgcolor="#ffc8d8">
|
|
36
|
+
<td colspan=3 valign=bottom> <br>
|
|
37
|
+
<font color="#000000" face="helvetica, arial"><a name="AICoreInvalidInputException">class <strong>AICoreInvalidInputException</strong></a>(<a href="ai_core_sdk.exception.html#AICoreSDKException">AICoreSDKException</a>)</font></td></tr>
|
|
38
|
+
|
|
39
|
+
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
40
|
+
<td colspan=2><tt><a href="builtins.html#Exception">Exception</a> thrown in case of invalid input<br> </tt></td></tr>
|
|
41
|
+
<tr><td> </td>
|
|
42
|
+
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
43
|
+
<dd><a href="ai_core_sdk.exception.html#AICoreInvalidInputException">AICoreInvalidInputException</a></dd>
|
|
44
|
+
<dd><a href="ai_core_sdk.exception.html#AICoreSDKException">AICoreSDKException</a></dd>
|
|
45
|
+
<dd><a href="builtins.html#Exception">builtins.Exception</a></dd>
|
|
46
|
+
<dd><a href="builtins.html#BaseException">builtins.BaseException</a></dd>
|
|
47
|
+
<dd><a href="builtins.html#object">builtins.object</a></dd>
|
|
48
|
+
</dl>
|
|
49
|
+
<hr>
|
|
50
|
+
Data descriptors inherited from <a href="ai_core_sdk.exception.html#AICoreSDKException">AICoreSDKException</a>:<br>
|
|
51
|
+
<dl><dt><strong>__weakref__</strong></dt>
|
|
52
|
+
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
53
|
+
</dl>
|
|
54
|
+
<hr>
|
|
55
|
+
Methods inherited from <a href="builtins.html#Exception">builtins.Exception</a>:<br>
|
|
56
|
+
<dl><dt><a name="AICoreInvalidInputException-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
|
|
57
|
+
|
|
58
|
+
<hr>
|
|
59
|
+
Static methods inherited from <a href="builtins.html#Exception">builtins.Exception</a>:<br>
|
|
60
|
+
<dl><dt><a name="AICoreInvalidInputException-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new object. See help(type) for accurate signature.</tt></dd></dl>
|
|
61
|
+
|
|
62
|
+
<hr>
|
|
63
|
+
Methods inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br>
|
|
64
|
+
<dl><dt><a name="AICoreInvalidInputException-__delattr__"><strong>__delattr__</strong></a>(self, name, /)</dt><dd><tt>Implement delattr(self, name).</tt></dd></dl>
|
|
65
|
+
|
|
66
|
+
<dl><dt><a name="AICoreInvalidInputException-__getattribute__"><strong>__getattribute__</strong></a>(self, name, /)</dt><dd><tt>Return getattr(self, name).</tt></dd></dl>
|
|
67
|
+
|
|
68
|
+
<dl><dt><a name="AICoreInvalidInputException-__reduce__"><strong>__reduce__</strong></a>(...)</dt><dd><tt>Helper for pickle.</tt></dd></dl>
|
|
69
|
+
|
|
70
|
+
<dl><dt><a name="AICoreInvalidInputException-__repr__"><strong>__repr__</strong></a>(self, /)</dt><dd><tt>Return repr(self).</tt></dd></dl>
|
|
71
|
+
|
|
72
|
+
<dl><dt><a name="AICoreInvalidInputException-__setattr__"><strong>__setattr__</strong></a>(self, name, value, /)</dt><dd><tt>Implement setattr(self, name, value).</tt></dd></dl>
|
|
73
|
+
|
|
74
|
+
<dl><dt><a name="AICoreInvalidInputException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
75
|
+
|
|
76
|
+
<dl><dt><a name="AICoreInvalidInputException-__str__"><strong>__str__</strong></a>(self, /)</dt><dd><tt>Return str(self).</tt></dd></dl>
|
|
77
|
+
|
|
78
|
+
<dl><dt><a name="AICoreInvalidInputException-with_traceback"><strong>with_traceback</strong></a>(...)</dt><dd><tt><a href="builtins.html#Exception">Exception</a>.<a href="#AICoreInvalidInputException-with_traceback">with_traceback</a>(tb) --<br>
|
|
79
|
+
set self.<strong>__traceback__</strong> to tb and return self.</tt></dd></dl>
|
|
80
|
+
|
|
81
|
+
<hr>
|
|
82
|
+
Data descriptors inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br>
|
|
83
|
+
<dl><dt><strong>__cause__</strong></dt>
|
|
84
|
+
<dd><tt>exception cause</tt></dd>
|
|
85
|
+
</dl>
|
|
86
|
+
<dl><dt><strong>__context__</strong></dt>
|
|
87
|
+
<dd><tt>exception context</tt></dd>
|
|
88
|
+
</dl>
|
|
89
|
+
<dl><dt><strong>__dict__</strong></dt>
|
|
90
|
+
</dl>
|
|
91
|
+
<dl><dt><strong>__suppress_context__</strong></dt>
|
|
92
|
+
</dl>
|
|
93
|
+
<dl><dt><strong>__traceback__</strong></dt>
|
|
94
|
+
</dl>
|
|
95
|
+
<dl><dt><strong>args</strong></dt>
|
|
96
|
+
</dl>
|
|
97
|
+
</td></tr></table> <p>
|
|
98
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
99
|
+
<tr bgcolor="#ffc8d8">
|
|
100
|
+
<td colspan=3 valign=bottom> <br>
|
|
101
|
+
<font color="#000000" face="helvetica, arial"><a name="AICoreSDKException">class <strong>AICoreSDKException</strong></a>(<a href="builtins.html#Exception">builtins.Exception</a>)</font></td></tr>
|
|
102
|
+
|
|
103
|
+
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
104
|
+
<td colspan=2><tt>Base <a href="builtins.html#Exception">Exception</a> class for AI Core SDK exceptions<br> </tt></td></tr>
|
|
105
|
+
<tr><td> </td>
|
|
106
|
+
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
107
|
+
<dd><a href="ai_core_sdk.exception.html#AICoreSDKException">AICoreSDKException</a></dd>
|
|
108
|
+
<dd><a href="builtins.html#Exception">builtins.Exception</a></dd>
|
|
109
|
+
<dd><a href="builtins.html#BaseException">builtins.BaseException</a></dd>
|
|
110
|
+
<dd><a href="builtins.html#object">builtins.object</a></dd>
|
|
111
|
+
</dl>
|
|
112
|
+
<hr>
|
|
113
|
+
Data descriptors defined here:<br>
|
|
114
|
+
<dl><dt><strong>__weakref__</strong></dt>
|
|
115
|
+
<dd><tt>list of weak references to the object (if defined)</tt></dd>
|
|
116
|
+
</dl>
|
|
117
|
+
<hr>
|
|
118
|
+
Methods inherited from <a href="builtins.html#Exception">builtins.Exception</a>:<br>
|
|
119
|
+
<dl><dt><a name="AICoreSDKException-__init__"><strong>__init__</strong></a>(self, /, *args, **kwargs)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
|
|
120
|
+
|
|
121
|
+
<hr>
|
|
122
|
+
Static methods inherited from <a href="builtins.html#Exception">builtins.Exception</a>:<br>
|
|
123
|
+
<dl><dt><a name="AICoreSDKException-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create and return a new object. See help(type) for accurate signature.</tt></dd></dl>
|
|
124
|
+
|
|
125
|
+
<hr>
|
|
126
|
+
Methods inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br>
|
|
127
|
+
<dl><dt><a name="AICoreSDKException-__delattr__"><strong>__delattr__</strong></a>(self, name, /)</dt><dd><tt>Implement delattr(self, name).</tt></dd></dl>
|
|
128
|
+
|
|
129
|
+
<dl><dt><a name="AICoreSDKException-__getattribute__"><strong>__getattribute__</strong></a>(self, name, /)</dt><dd><tt>Return getattr(self, name).</tt></dd></dl>
|
|
130
|
+
|
|
131
|
+
<dl><dt><a name="AICoreSDKException-__reduce__"><strong>__reduce__</strong></a>(...)</dt><dd><tt>Helper for pickle.</tt></dd></dl>
|
|
132
|
+
|
|
133
|
+
<dl><dt><a name="AICoreSDKException-__repr__"><strong>__repr__</strong></a>(self, /)</dt><dd><tt>Return repr(self).</tt></dd></dl>
|
|
134
|
+
|
|
135
|
+
<dl><dt><a name="AICoreSDKException-__setattr__"><strong>__setattr__</strong></a>(self, name, value, /)</dt><dd><tt>Implement setattr(self, name, value).</tt></dd></dl>
|
|
136
|
+
|
|
137
|
+
<dl><dt><a name="AICoreSDKException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>
|
|
138
|
+
|
|
139
|
+
<dl><dt><a name="AICoreSDKException-__str__"><strong>__str__</strong></a>(self, /)</dt><dd><tt>Return str(self).</tt></dd></dl>
|
|
140
|
+
|
|
141
|
+
<dl><dt><a name="AICoreSDKException-with_traceback"><strong>with_traceback</strong></a>(...)</dt><dd><tt><a href="builtins.html#Exception">Exception</a>.<a href="#AICoreSDKException-with_traceback">with_traceback</a>(tb) --<br>
|
|
142
|
+
set self.<strong>__traceback__</strong> to tb and return self.</tt></dd></dl>
|
|
143
|
+
|
|
144
|
+
<hr>
|
|
145
|
+
Data descriptors inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br>
|
|
146
|
+
<dl><dt><strong>__cause__</strong></dt>
|
|
147
|
+
<dd><tt>exception cause</tt></dd>
|
|
148
|
+
</dl>
|
|
149
|
+
<dl><dt><strong>__context__</strong></dt>
|
|
150
|
+
<dd><tt>exception context</tt></dd>
|
|
151
|
+
</dl>
|
|
152
|
+
<dl><dt><strong>__dict__</strong></dt>
|
|
153
|
+
</dl>
|
|
154
|
+
<dl><dt><strong>__suppress_context__</strong></dt>
|
|
155
|
+
</dl>
|
|
156
|
+
<dl><dt><strong>__traceback__</strong></dt>
|
|
157
|
+
</dl>
|
|
158
|
+
<dl><dt><strong>args</strong></dt>
|
|
159
|
+
</dl>
|
|
160
|
+
</td></tr></table></td></tr></table>
|
|
161
|
+
</body></html>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
2
|
+
<html><head><title>Python: module ai_core_sdk.helpers.constants</title>
|
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
4
|
+
</head><body bgcolor="#f0f0f8">
|
|
5
|
+
|
|
6
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
7
|
+
<tr bgcolor="#7799ee">
|
|
8
|
+
<td valign=bottom> <br>
|
|
9
|
+
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ai_core_sdk.html"><font color="#ffffff">ai_core_sdk</font></a>.<a href="ai_core_sdk.helpers.html"><font color="#ffffff">helpers</font></a>.constants</strong></big></big></font></td
|
|
10
|
+
><td align=right valign=bottom
|
|
11
|
+
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/helpers/constants.py">/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/helpers/constants.py</a></font></td></tr></table>
|
|
12
|
+
<p></p>
|
|
13
|
+
<p>
|
|
14
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
15
|
+
<tr bgcolor="#aa55cc">
|
|
16
|
+
<td colspan=3 valign=bottom> <br>
|
|
17
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
18
|
+
|
|
19
|
+
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
20
|
+
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
|
|
21
|
+
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
|
22
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
23
|
+
<tr bgcolor="#ee77aa">
|
|
24
|
+
<td colspan=3 valign=bottom> <br>
|
|
25
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
26
|
+
|
|
27
|
+
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
|
28
|
+
<td width="100%"><dl>
|
|
29
|
+
<dt><font face="helvetica, arial"><a href="enum.html#Enum">enum.Enum</a>(<a href="builtins.html#object">builtins.object</a>)
|
|
30
|
+
</font></dt><dd>
|
|
31
|
+
<dl>
|
|
32
|
+
<dt><font face="helvetica, arial"><a href="ai_core_sdk.helpers.constants.html#Timeouts">Timeouts</a>
|
|
33
|
+
</font></dt></dl>
|
|
34
|
+
</dd>
|
|
35
|
+
</dl>
|
|
36
|
+
<p>
|
|
37
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
38
|
+
<tr bgcolor="#ffc8d8">
|
|
39
|
+
<td colspan=3 valign=bottom> <br>
|
|
40
|
+
<font color="#000000" face="helvetica, arial"><a name="Timeouts">class <strong>Timeouts</strong></a>(<a href="enum.html#Enum">enum.Enum</a>)</font></td></tr>
|
|
41
|
+
|
|
42
|
+
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
|
43
|
+
<td colspan=2><tt><a href="#Timeouts">Timeouts</a>(value, names=None, *, module=None, qualname=None, type=None, start=1)<br>
|
|
44
|
+
<br>
|
|
45
|
+
An enumeration.<br> </tt></td></tr>
|
|
46
|
+
<tr><td> </td>
|
|
47
|
+
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
48
|
+
<dd><a href="ai_core_sdk.helpers.constants.html#Timeouts">Timeouts</a></dd>
|
|
49
|
+
<dd><a href="enum.html#Enum">enum.Enum</a></dd>
|
|
50
|
+
<dd><a href="builtins.html#object">builtins.object</a></dd>
|
|
51
|
+
</dl>
|
|
52
|
+
<hr>
|
|
53
|
+
Data and other attributes defined here:<br>
|
|
54
|
+
<dl><dt><strong>NUM_REQUEST_RETRIES</strong> = <Timeouts.NUM_REQUEST_RETRIES: 3></dl>
|
|
55
|
+
|
|
56
|
+
<dl><dt><strong>READ_TIMEOUT</strong> = <Timeouts.READ_TIMEOUT: 60></dl>
|
|
57
|
+
|
|
58
|
+
<hr>
|
|
59
|
+
Data descriptors inherited from <a href="enum.html#Enum">enum.Enum</a>:<br>
|
|
60
|
+
<dl><dt><strong>name</strong></dt>
|
|
61
|
+
<dd><tt>The name of the Enum member.</tt></dd>
|
|
62
|
+
</dl>
|
|
63
|
+
<dl><dt><strong>value</strong></dt>
|
|
64
|
+
<dd><tt>The value of the Enum member.</tt></dd>
|
|
65
|
+
</dl>
|
|
66
|
+
<hr>
|
|
67
|
+
Readonly properties inherited from <a href="enum.html#EnumMeta">enum.EnumMeta</a>:<br>
|
|
68
|
+
<dl><dt><strong>__members__</strong></dt>
|
|
69
|
+
<dd><tt>Returns a mapping of member name->value.<br>
|
|
70
|
+
<br>
|
|
71
|
+
This mapping lists all enum members, including aliases. Note that this<br>
|
|
72
|
+
is a read-only view of the internal mapping.</tt></dd>
|
|
73
|
+
</dl>
|
|
74
|
+
</td></tr></table></td></tr></table><p>
|
|
75
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
76
|
+
<tr bgcolor="#55aa55">
|
|
77
|
+
<td colspan=3 valign=bottom> <br>
|
|
78
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
79
|
+
|
|
80
|
+
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
|
81
|
+
<td width="100%"><strong>AI_CORE_PREFIX</strong> = 'AICORE'<br>
|
|
82
|
+
<strong>AUTH_ENDPOINT_SUFFIX</strong> = '/oauth/token'<br>
|
|
83
|
+
<strong>CONFIG_FILE_ENV_VAR</strong> = 'AICORE_CONFIG'<br>
|
|
84
|
+
<strong>DEBUG_ENV_VAR_NAME</strong> = 'DEBUG'<br>
|
|
85
|
+
<strong>DEFAULT_HOME_PATH</strong> = '/home/node/.aicore'<br>
|
|
86
|
+
<strong>HOME_PATH_ENV_VAR</strong> = 'AICORE_HOME'<br>
|
|
87
|
+
<strong>PROFILE_ENV_VAR</strong> = 'AICORE_PROFILE'<br>
|
|
88
|
+
<strong>VCAP_AICORE_SERVICE_NAME</strong> = 'aicore'<br>
|
|
89
|
+
<strong>VCAP_SERVICES_ENV_VAR</strong> = 'VCAP_SERVICES'</td></tr></table>
|
|
90
|
+
</body></html>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
2
|
+
<html><head><title>Python: package ai_core_sdk.helpers</title>
|
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
4
|
+
</head><body bgcolor="#f0f0f8">
|
|
5
|
+
|
|
6
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
7
|
+
<tr bgcolor="#7799ee">
|
|
8
|
+
<td valign=bottom> <br>
|
|
9
|
+
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ai_core_sdk.html"><font color="#ffffff">ai_core_sdk</font></a>.helpers</strong></big></big></font></td
|
|
10
|
+
><td align=right valign=bottom
|
|
11
|
+
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/helpers/__init__.py">/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/helpers/__init__.py</a></font></td></tr></table>
|
|
12
|
+
<p></p>
|
|
13
|
+
<p>
|
|
14
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
15
|
+
<tr bgcolor="#aa55cc">
|
|
16
|
+
<td colspan=3 valign=bottom> <br>
|
|
17
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
|
|
18
|
+
|
|
19
|
+
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
20
|
+
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ai_core_sdk.helpers.constants.html">constants</a><br>
|
|
21
|
+
</td><td width="25%" valign=top><a href="ai_core_sdk.helpers.logging.html">logging</a><br>
|
|
22
|
+
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
|
23
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
24
|
+
<tr bgcolor="#eeaa77">
|
|
25
|
+
<td colspan=3 valign=bottom> <br>
|
|
26
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
27
|
+
|
|
28
|
+
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
29
|
+
<td width="100%"><dl><dt><a name="-form_top_skip_params"><strong>form_top_skip_params</strong></a>(top: int = None, skip: int = None) -> Dict[str, int]</dt><dd><tt>Frame query param<br>
|
|
30
|
+
<br>
|
|
31
|
+
:param top: Number of objects to be retrieved, defaults to None<br>
|
|
32
|
+
:type top: int, optional<br>
|
|
33
|
+
:param skip: Number of objects to be skipped, from the list of the queried objects,<br>
|
|
34
|
+
defaults to None<br>
|
|
35
|
+
:type skip: int, optional</tt></dd></dl>
|
|
36
|
+
<dl><dt><a name="-get_home"><strong>get_home</strong></a>() -> str</dt></dl>
|
|
37
|
+
<dl><dt><a name="-is_within_aicore"><strong>is_within_aicore</strong></a>() -> bool</dt><dd><tt>[summary]<br>
|
|
38
|
+
Function to check whether the sdk is used within or out of aicore cluster<br>
|
|
39
|
+
Returns:<br>
|
|
40
|
+
bool: True if the ai-core-sdk is used within aicore cluster<br>
|
|
41
|
+
False if the ai-core-sdk is used outside aicore cluster</tt></dd></dl>
|
|
42
|
+
</td></tr></table><p>
|
|
43
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
44
|
+
<tr bgcolor="#55aa55">
|
|
45
|
+
<td colspan=3 valign=bottom> <br>
|
|
46
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
47
|
+
|
|
48
|
+
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
|
49
|
+
<td width="100%"><strong>DEFAULT_HOME_PATH</strong> = '/home/node/.aicore'<br>
|
|
50
|
+
<strong>Dict</strong> = typing.Dict<br>
|
|
51
|
+
<strong>HOME_PATH_ENV_VAR</strong> = 'AICORE_HOME'</td></tr></table>
|
|
52
|
+
</body></html>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
2
|
+
<html><head><title>Python: module ai_core_sdk.helpers.logging</title>
|
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
4
|
+
</head><body bgcolor="#f0f0f8">
|
|
5
|
+
|
|
6
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
7
|
+
<tr bgcolor="#7799ee">
|
|
8
|
+
<td valign=bottom> <br>
|
|
9
|
+
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ai_core_sdk.html"><font color="#ffffff">ai_core_sdk</font></a>.<a href="ai_core_sdk.helpers.html"><font color="#ffffff">helpers</font></a>.logging</strong></big></big></font></td
|
|
10
|
+
><td align=right valign=bottom
|
|
11
|
+
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/helpers/logging.py">/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/helpers/logging.py</a></font></td></tr></table>
|
|
12
|
+
<p></p>
|
|
13
|
+
<p>
|
|
14
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
15
|
+
<tr bgcolor="#aa55cc">
|
|
16
|
+
<td colspan=3 valign=bottom> <br>
|
|
17
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
18
|
+
|
|
19
|
+
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
20
|
+
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="logging.html">logging</a><br>
|
|
21
|
+
</td><td width="25%" valign=top><a href="os.html">os</a><br>
|
|
22
|
+
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
|
23
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
24
|
+
<tr bgcolor="#eeaa77">
|
|
25
|
+
<td colspan=3 valign=bottom> <br>
|
|
26
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
27
|
+
|
|
28
|
+
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
29
|
+
<td width="100%"><dl><dt><a name="-get_logger"><strong>get_logger</strong></a>(name: str = None)</dt></dl>
|
|
30
|
+
<dl><dt><a name="-set_log_level"><strong>set_log_level</strong></a>(logger: logging.Logger, default_level=20)</dt></dl>
|
|
31
|
+
</td></tr></table><p>
|
|
32
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
33
|
+
<tr bgcolor="#55aa55">
|
|
34
|
+
<td colspan=3 valign=bottom> <br>
|
|
35
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
36
|
+
|
|
37
|
+
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
|
38
|
+
<td width="100%"><strong>BASE_LOGGER_NAME</strong> = 'ai_core_sdk'<br>
|
|
39
|
+
<strong>DEBUG_ENV_VAR_NAME</strong> = 'DEBUG'<br>
|
|
40
|
+
<strong>DEFAULT_LOG_LEVEL</strong> = 20</td></tr></table>
|
|
41
|
+
</body></html>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
2
|
+
<html><head><title>Python: package ai_core_sdk</title>
|
|
3
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
4
|
+
</head><body bgcolor="#f0f0f8">
|
|
5
|
+
|
|
6
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
7
|
+
<tr bgcolor="#7799ee">
|
|
8
|
+
<td valign=bottom> <br>
|
|
9
|
+
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>ai_core_sdk</strong></big></big></font></td
|
|
10
|
+
><td align=right valign=bottom
|
|
11
|
+
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/__init__.py">/home/jenkins/agent/workspace/AI-Foundation_ai-core-sdk_master/ai_core_sdk/__init__.py</a></font></td></tr></table>
|
|
12
|
+
<p></p>
|
|
13
|
+
<p>
|
|
14
|
+
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
15
|
+
<tr bgcolor="#aa55cc">
|
|
16
|
+
<td colspan=3 valign=bottom> <br>
|
|
17
|
+
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
|
|
18
|
+
|
|
19
|
+
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
20
|
+
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ai_core_sdk.ai_core_v2_client.html">ai_core_v2_client</a><br>
|
|
21
|
+
<a href="ai_core_sdk.cli.html">cli</a><br>
|
|
22
|
+
</td><td width="25%" valign=top><a href="ai_core_sdk.credentials.html">credentials</a><br>
|
|
23
|
+
<a href="ai_core_sdk.exception.html">exception</a><br>
|
|
24
|
+
</td><td width="25%" valign=top><a href="ai_core_sdk.helpers.html"><strong>helpers</strong> (package)</a><br>
|
|
25
|
+
<a href="ai_core_sdk.models.html"><strong>models</strong> (package)</a><br>
|
|
26
|
+
</td><td width="25%" valign=top><a href="ai_core_sdk.resource_clients.html"><strong>resource_clients</strong> (package)</a><br>
|
|
27
|
+
<a href="ai_core_sdk.tracking.html"><strong>tracking</strong> (package)</a><br>
|
|
28
|
+
</td></tr></table></td></tr></table>
|
|
29
|
+
</body></html>
|