boxd 0.2.16.dev834__tar.gz → 0.2.16.dev847__tar.gz
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.
- {boxd-0.2.16.dev834/src/boxd.egg-info → boxd-0.2.16.dev847}/PKG-INFO +13 -9
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/README.md +12 -8
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/pyproject.toml +1 -1
- boxd-0.2.16.dev847/src/boxd/_generated/api_pb2.py +572 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_generated/api_pb2_grpc.py +5 -2
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_mappers.py +7 -2
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_requests.py +21 -2
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/models.py +14 -3
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/machines.py +34 -4
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/orgs.py +35 -37
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847/src/boxd.egg-info}/PKG-INFO +13 -9
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/tests/test_namespaces.py +151 -31
- boxd-0.2.16.dev834/src/boxd/_generated/api_pb2.py +0 -572
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/LICENSE +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/setup.cfg +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/__init__.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_client.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_credentials.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_generated/__init__.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_streaming.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_transport.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_urls.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/_version_check.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/errors.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/__init__.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/account.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/credentials.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/disks.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/domains.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/snapshots.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/teams.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd/resources/vars.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd.egg-info/SOURCES.txt +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd.egg-info/dependency_links.txt +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd.egg-info/requires.txt +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/src/boxd.egg-info/top_level.txt +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/tests/test_credentials.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/tests/test_delete_self.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/tests/test_mappers.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/tests/test_requests.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/tests/test_streaming.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/tests/test_transport.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/tests/test_urls.py +0 -0
- {boxd-0.2.16.dev834 → boxd-0.2.16.dev847}/tests/test_version_check.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: boxd
|
|
3
|
-
Version: 0.2.16.
|
|
3
|
+
Version: 0.2.16.dev847
|
|
4
4
|
Summary: Python SDK for the boxd cloud VM platform
|
|
5
5
|
Author: Azin
|
|
6
6
|
License-Expression: MIT
|
|
@@ -710,17 +710,21 @@ boxd.orgs.clear_machine_defaults("acme") # back to the quota
|
|
|
710
710
|
Only machines created afterwards are affected — every existing machine keeps
|
|
711
711
|
the size it was created with. Omit the org to target your home org.
|
|
712
712
|
|
|
713
|
-
An org can also set whether
|
|
714
|
-
(only inbound connections keep a machine awake). Setting
|
|
715
|
-
|
|
713
|
+
An org can also set whether its machines run with `idle_ignore_outbound` on
|
|
714
|
+
(only inbound connections keep a machine awake). Setting it also sets it on
|
|
715
|
+
the existing machines and snapshots you can manage, unless you pass
|
|
716
|
+
`new_machines_only=True`. Setting or clearing it requires org admin; reading
|
|
717
|
+
it doesn't.
|
|
716
718
|
|
|
717
719
|
```python
|
|
718
|
-
boxd.orgs.set_idle_ignore_outbound_default("acme", enabled=True)
|
|
719
|
-
r
|
|
720
|
-
r.
|
|
720
|
+
r = boxd.orgs.set_idle_ignore_outbound_default("acme", enabled=True)
|
|
721
|
+
r.machines_changed, r.snapshots_changed # existing machines and snapshots set
|
|
722
|
+
r.machines_skipped # others' private machines, left alone
|
|
723
|
+
boxd.orgs.set_idle_ignore_outbound_default("acme", enabled=True, new_machines_only=True)
|
|
721
724
|
i = boxd.orgs.get_idle_ignore_outbound_default("acme")
|
|
722
|
-
i.is_set, i.enabled # is_set False = no default, so enabled is
|
|
723
|
-
|
|
725
|
+
i.is_set, i.enabled # is_set False = no default, so enabled is
|
|
726
|
+
i.platform_enabled # the platform's setting, this one
|
|
727
|
+
boxd.orgs.clear_idle_ignore_outbound_default("acme") # existing machines keep theirs
|
|
724
728
|
```
|
|
725
729
|
|
|
726
730
|
```python
|
|
@@ -678,17 +678,21 @@ boxd.orgs.clear_machine_defaults("acme") # back to the quota
|
|
|
678
678
|
Only machines created afterwards are affected — every existing machine keeps
|
|
679
679
|
the size it was created with. Omit the org to target your home org.
|
|
680
680
|
|
|
681
|
-
An org can also set whether
|
|
682
|
-
(only inbound connections keep a machine awake). Setting
|
|
683
|
-
|
|
681
|
+
An org can also set whether its machines run with `idle_ignore_outbound` on
|
|
682
|
+
(only inbound connections keep a machine awake). Setting it also sets it on
|
|
683
|
+
the existing machines and snapshots you can manage, unless you pass
|
|
684
|
+
`new_machines_only=True`. Setting or clearing it requires org admin; reading
|
|
685
|
+
it doesn't.
|
|
684
686
|
|
|
685
687
|
```python
|
|
686
|
-
boxd.orgs.set_idle_ignore_outbound_default("acme", enabled=True)
|
|
687
|
-
r
|
|
688
|
-
r.
|
|
688
|
+
r = boxd.orgs.set_idle_ignore_outbound_default("acme", enabled=True)
|
|
689
|
+
r.machines_changed, r.snapshots_changed # existing machines and snapshots set
|
|
690
|
+
r.machines_skipped # others' private machines, left alone
|
|
691
|
+
boxd.orgs.set_idle_ignore_outbound_default("acme", enabled=True, new_machines_only=True)
|
|
689
692
|
i = boxd.orgs.get_idle_ignore_outbound_default("acme")
|
|
690
|
-
i.is_set, i.enabled # is_set False = no default, so enabled is
|
|
691
|
-
|
|
693
|
+
i.is_set, i.enabled # is_set False = no default, so enabled is
|
|
694
|
+
i.platform_enabled # the platform's setting, this one
|
|
695
|
+
boxd.orgs.clear_idle_ignore_outbound_default("acme") # existing machines keep theirs
|
|
692
696
|
```
|
|
693
697
|
|
|
694
698
|
```python
|