cacholong-cloud-cli 0.3.2__tar.gz → 0.3.3__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.
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/PKG-INFO +55 -7
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/README.md +54 -6
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/pyproject.toml +1 -1
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/AsyncTyper.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/__init__.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/cli.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/accounts.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/addresses.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/companies.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/dns_records.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/dns_templates.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/dns_zones.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/products.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/purchases.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/common.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/connection.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/__init__.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/account.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/address.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/api_schema.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/common.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/company.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/connection.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/dns_record.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/dns_template.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/dns_zone.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/exception.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/product.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_sdk/purchase.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/__init__.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/common.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/document.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/exceptions.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/filter.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/objects.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/relationships.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/resourceobject.py +0 -0
- {cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/session.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: cacholong-cloud-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Cacholong CLI, manage cloud environments at Cacholong!
|
|
5
5
|
Author: Matthijs Möhlmann
|
|
6
6
|
Author-email: matthijs@cacholong.nl
|
|
@@ -39,18 +39,66 @@ ccloud accounts list
|
|
|
39
39
|
|
|
40
40
|
This will give you an overview of accounts where you have access to.
|
|
41
41
|
|
|
42
|
-
##
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Overview of the possibilities:
|
|
45
|
+
```bash
|
|
46
|
+
ccloud --help
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
To fetch an overview of the dns-zones for an account:
|
|
50
|
+
```bash
|
|
51
|
+
ccloud dns-zones list --account <account uuid>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Creating a DNS-record:
|
|
55
|
+
```bash
|
|
56
|
+
ccloud dns-records create --dns-zone <dns-zone uuid> \
|
|
57
|
+
--name localhost.example.com \
|
|
58
|
+
--dns-record-type A \
|
|
59
|
+
--content 127.0.0.1 \
|
|
60
|
+
--ttl 300
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Updating a DNS-record:
|
|
64
|
+
```bash
|
|
65
|
+
ccloud dns-records update <dns-record uuid> \
|
|
66
|
+
--content 127.0.0.1
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Deleting a DNS-record:
|
|
70
|
+
```bash
|
|
71
|
+
ccloud dns-records delete <dns-record uuid>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Every command includes an option --help which will give an overview of the possibilities.
|
|
75
|
+
|
|
76
|
+
## Advanced usage
|
|
43
77
|
|
|
44
|
-
|
|
78
|
+
Its also possible to create your own command line utility to handle various parts. Here are the same examples as above but now using python.
|
|
45
79
|
|
|
46
|
-
|
|
80
|
+
### Fetching DNS-zones
|
|
81
|
+
```python
|
|
82
|
+
import asyncio
|
|
83
|
+
|
|
84
|
+
from cacholong_sdk.connection import connection
|
|
85
|
+
from cacholong_sdk import ResourceTuple, Inclusion, Filter
|
|
86
|
+
from cacholong_sdk import DnsZone, DnsZoneModel, DnsRecord, DnsRecordModel
|
|
87
|
+
|
|
88
|
+
async def main():
|
|
89
|
+
async with connection('https://api.cacholong.eu/api/v1/', 'YOUR-API-TOKEN') as api:
|
|
90
|
+
searchfilter = Filter(domain=sys.argv[1])
|
|
91
|
+
DnsZoneCtrl = DnsZone(api)
|
|
92
|
+
async for zone in DnsZoneCtrl.fetch_all(searchfilter):
|
|
93
|
+
print(zone["domain"])
|
|
94
|
+
|
|
95
|
+
# Execute main function
|
|
96
|
+
asyncio.run(main())
|
|
97
|
+
```
|
|
47
98
|
|
|
48
99
|
## Suggestions for a good README
|
|
49
100
|
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
50
101
|
|
|
51
|
-
## Usage
|
|
52
|
-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
53
|
-
|
|
54
102
|
## Support
|
|
55
103
|
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
56
104
|
|
|
@@ -17,18 +17,66 @@ ccloud accounts list
|
|
|
17
17
|
|
|
18
18
|
This will give you an overview of accounts where you have access to.
|
|
19
19
|
|
|
20
|
-
##
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
Overview of the possibilities:
|
|
23
|
+
```bash
|
|
24
|
+
ccloud --help
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
To fetch an overview of the dns-zones for an account:
|
|
28
|
+
```bash
|
|
29
|
+
ccloud dns-zones list --account <account uuid>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Creating a DNS-record:
|
|
33
|
+
```bash
|
|
34
|
+
ccloud dns-records create --dns-zone <dns-zone uuid> \
|
|
35
|
+
--name localhost.example.com \
|
|
36
|
+
--dns-record-type A \
|
|
37
|
+
--content 127.0.0.1 \
|
|
38
|
+
--ttl 300
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Updating a DNS-record:
|
|
42
|
+
```bash
|
|
43
|
+
ccloud dns-records update <dns-record uuid> \
|
|
44
|
+
--content 127.0.0.1
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Deleting a DNS-record:
|
|
48
|
+
```bash
|
|
49
|
+
ccloud dns-records delete <dns-record uuid>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Every command includes an option --help which will give an overview of the possibilities.
|
|
53
|
+
|
|
54
|
+
## Advanced usage
|
|
21
55
|
|
|
22
|
-
|
|
56
|
+
Its also possible to create your own command line utility to handle various parts. Here are the same examples as above but now using python.
|
|
23
57
|
|
|
24
|
-
|
|
58
|
+
### Fetching DNS-zones
|
|
59
|
+
```python
|
|
60
|
+
import asyncio
|
|
61
|
+
|
|
62
|
+
from cacholong_sdk.connection import connection
|
|
63
|
+
from cacholong_sdk import ResourceTuple, Inclusion, Filter
|
|
64
|
+
from cacholong_sdk import DnsZone, DnsZoneModel, DnsRecord, DnsRecordModel
|
|
65
|
+
|
|
66
|
+
async def main():
|
|
67
|
+
async with connection('https://api.cacholong.eu/api/v1/', 'YOUR-API-TOKEN') as api:
|
|
68
|
+
searchfilter = Filter(domain=sys.argv[1])
|
|
69
|
+
DnsZoneCtrl = DnsZone(api)
|
|
70
|
+
async for zone in DnsZoneCtrl.fetch_all(searchfilter):
|
|
71
|
+
print(zone["domain"])
|
|
72
|
+
|
|
73
|
+
# Execute main function
|
|
74
|
+
asyncio.run(main())
|
|
75
|
+
```
|
|
25
76
|
|
|
26
77
|
## Suggestions for a good README
|
|
27
78
|
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
28
79
|
|
|
29
|
-
## Usage
|
|
30
|
-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
31
|
-
|
|
32
80
|
## Support
|
|
33
81
|
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
34
82
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/dns_records.py
RENAMED
|
File without changes
|
{cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/cacholong_cli/commands/dns_templates.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/common.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/filter.py
RENAMED
|
File without changes
|
{cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/objects.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cacholong_cloud_cli-0.3.2 → cacholong_cloud_cli-0.3.3}/jsonapi-client/src/jsonapi_client/session.py
RENAMED
|
File without changes
|