Skip to content

Commit 75b6a46

Browse files
committed
format examples
1 parent a237560 commit 75b6a46

12 files changed

Lines changed: 18 additions & 12 deletions

File tree

examples/core/custom_auth.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from requests.auth import AuthBase
44
from stackit.core.configuration import Configuration
55

6-
76
"""
87
You can create your own authorization class to implement your own authorization logic.
98
You need to derive from the class 'AuthBase' to implement your own class.

examples/dns/create_recordset.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
],
2525
type="A",
2626
)
27-
create_record_response = client.create_record_set(project_id, zone_id, create_recordset_payload)
27+
create_record_response = client.create_record_set(
28+
project_id, zone_id, create_recordset_payload
29+
)
2830

2931
# Get the DNS record for the newly create DNS zone
3032
print(

examples/dns/create_zone.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
# Create a new DNS zone
1414
create_zone_payload = CreateZonePayload(name="myZone", dnsName="testZone.com")
15-
create_zone_response = client.create_zone(create_zone_payload=create_zone_payload, project_id=project_id)
15+
create_zone_response = client.create_zone(
16+
create_zone_payload=create_zone_payload, project_id=project_id
17+
)
1618

1719
print(create_zone_payload)

examples/iaas/create_network_area.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@
3232
transferNetwork="192.160.0.0/24",
3333
)
3434
)
35-
print(client.create_network_area_region(organization_id, network_area.id, "eu01", payload))
35+
print(
36+
client.create_network_area_region(organization_id, network_area.id, "eu01", payload)
37+
)

examples/iaas/delete_network_area.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
# wait for all network area regions to be deleted
2020
while True:
21-
list_regions_resp = client.list_network_area_regions(organization_id, network_area_id)
21+
list_regions_resp = client.list_network_area_regions(
22+
organization_id, network_area_id
23+
)
2224
if len(list_regions_resp.regions) < 1:
2325
break
2426
time.sleep(3)

examples/iaasalpha/delete_volume.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from stackit.iaasalpha.api.default_api import DefaultApi
44
from stackit.core.configuration import Configuration
55

6-
76
project_id = os.getenv("PROJECT_ID")
87
volume_id = "VOLUME_ID"
98

examples/loadbalancer/create_loadbalancer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@
5050
)
5151
],
5252
)
53-
response = client.create_load_balancer(project_id, X_REQUEST_ID, create_load_balancer_payload)
53+
response = client.create_load_balancer(
54+
project_id, X_REQUEST_ID, create_load_balancer_payload
55+
)

examples/mongodbflex/create_instance.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from stackit.mongodbflex.models.storage import Storage
77
from stackit.core.configuration import Configuration
88

9-
109
tag = "tag"
1110
storage_class = "premium-perf2-mongodb"
1211
project_id = os.getenv("PROJECT_ID")

examples/mongodbflex/create_user.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from stackit.mongodbflex.models.create_user_payload import CreateUserPayload
55
from stackit.core.configuration import Configuration
66

7-
87
tag = "tag"
98
storage_class = "premium-perf2-mongodb"
109
project_id = os.getenv("PROJECT_ID")

examples/secretsmanager/create_instances.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from stackit.core.configuration import Configuration
77

8-
98
project_id = os.getenv("PROJECT_ID")
109

1110
# Create a new API client, that uses default authentication and configuration

0 commit comments

Comments
 (0)