Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
e2443c0d
Unverified
Commit
e2443c0d
authored
Jan 22, 2025
by
Jakob Görgen
Browse files
symphony/client/simbricks/client/provider: runner_client method use runner id
parent
ebb8dc72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
symphony/client/simbricks/client/provider.py
symphony/client/simbricks/client/provider.py
+12
-9
No files found.
symphony/client/simbricks/client/provider.py
View file @
e2443c0d
...
@@ -20,20 +20,26 @@
...
@@ -20,20 +20,26 @@
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
from
.client
import
BaseClient
,
AdminClient
,
OrgClient
,
NSClient
,
SimBricksClient
,
RunnerClient
,
ResourceGroupClient
from
.client
import
(
BaseClient
,
AdminClient
,
OrgClient
,
NSClient
,
SimBricksClient
,
RunnerClient
,
ResourceGroupClient
,
)
from
.settings
import
client_settings
from
.settings
import
client_settings
class
ClientProvider
:
class
ClientProvider
:
def
__init__
(
self
,
namespace
:
str
=
client_settings
().
namespace
,
runner_id
:
int
=
client_settings
().
runner_id
):
def
__init__
(
self
,
namespace
:
str
=
client_settings
().
namespace
):
self
.
namespace
=
namespace
self
.
namespace
=
namespace
self
.
runner_id
:
int
=
runner_id
self
.
_base_client
:
BaseClient
|
None
=
None
self
.
_base_client
:
BaseClient
|
None
=
None
self
.
_admin_client
:
AdminClient
=
None
self
.
_admin_client
:
AdminClient
=
None
self
.
_org_client
:
OrgClient
=
None
self
.
_org_client
:
OrgClient
=
None
self
.
_ns_client
:
NSClient
|
None
=
None
self
.
_ns_client
:
NSClient
|
None
=
None
self
.
_simbricks_client
:
SimBricksClient
|
None
=
None
self
.
_simbricks_client
:
SimBricksClient
|
None
=
None
self
.
_runner_client
:
RunnerClient
|
None
=
None
self
.
_resource_group_client
:
ResourceGroupClient
|
None
=
None
self
.
_resource_group_client
:
ResourceGroupClient
|
None
=
None
@
property
@
property
...
@@ -66,11 +72,8 @@ class ClientProvider:
...
@@ -66,11 +72,8 @@ class ClientProvider:
self
.
_simbricks_client
=
SimBricksClient
(
self
.
ns_client
)
self
.
_simbricks_client
=
SimBricksClient
(
self
.
ns_client
)
return
self
.
_simbricks_client
return
self
.
_simbricks_client
@
property
def
runner_client
(
self
,
runner_id
:
int
)
->
RunnerClient
:
def
runner_client
(
self
)
->
RunnerClient
:
return
RunnerClient
(
self
.
ns_client
,
id
=
runner_id
)
if
self
.
_runner_client
is
None
:
self
.
_runner_client
=
RunnerClient
(
self
.
ns_client
,
id
=
self
.
runner_id
)
return
self
.
_runner_client
@
property
@
property
def
resource_group_client
(
self
)
->
ResourceGroupClient
:
def
resource_group_client
(
self
)
->
ResourceGroupClient
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment