Skip to content

Commit 7f4d30f

Browse files
committed
Fix Readme errors
1 parent 2711c38 commit 7f4d30f

13 files changed

Lines changed: 51 additions & 29 deletions

PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Metadata-Version: 1.4
22
Name: purity_fb
3-
Version: 1.4
3+
Version: 1.5.1
44
Summary: A python client for Purity//FB REST API.
55
License: Apache 2.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Client for Purity//FB REST API (1.0 - 1.5), developed by [Pure Storage, Inc](htt
44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

66
- API version: 1.5
7-
- Package version: 1.5.0
7+
- Package version: 1.5.1
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99
For more information, please visit [http://www.purestorage.com](http://www.purestorage.com)
1010

docs/BucketsApi.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ if res:
3535
res = fb.buckets.create_buckets(names=["mybucket"], account=attr)
3636
print(res)
3737
except rest.ApiException as e:
38-
print("Exception when creating bucket: %s\n" % e)```
38+
print("Exception when creating bucket: %s\n" % e)
39+
```
3940

4041
### Parameters
4142

@@ -82,7 +83,8 @@ if res:
8283
res = fb.buckets.delete_buckets(names=["mybucket"])
8384
print(res)
8485
except rest.ApiException as e:
85-
print("Exception when creating object store account: %s\n" % e)```
86+
print("Exception when creating object store account: %s\n" % e)
87+
```
8688

8789
### Parameters
8890

@@ -140,7 +142,8 @@ if res:
140142
res = fb.buckets.list_buckets(filter='name=\'mybucket*\'')
141143
print(res)
142144
except rest.ApiException as e:
143-
print("Exception when listing buckets: %s\n" % e) print("Exception when listing buckets: %s\n" % e)```
145+
print("Exception when listing buckets: %s\n" % e) print("Exception when listing buckets: %s\n" % e)
146+
```
144147

145148
### Parameters
146149

@@ -192,7 +195,8 @@ if res:
192195
res = fb.buckets.update_buckets(names=["mybucket"], destroyed=Bucket(destroyed=True))
193196
print(res)
194197
except rest.ApiException as e:
195-
print("Exception when creating object store account: %s\n" % e)```
198+
print("Exception when creating object store account: %s\n" % e)
199+
```
196200

197201
### Parameters
198202

docs/FileSystemSnapshotsApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ if res:
208208
res = fb.file_system_snapshots.list_filesystem_snapshot_policies(token=res.pagination_info.continuation_token)
209209
print(res)
210210
except rest.ApiException as e:
211-
print("Exception when listing policy file system snapshot: %s\n" % e)```
211+
print("Exception when listing policy file system snapshot: %s\n" % e)
212+
```
212213

213214
### Parameters
214215

docs/FileSystemsApi.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ if res:
8989
member_names=["myfs"])
9090
print(res)
9191
except rest.ApiException as e:
92-
print("Exception when attaching policy to a file system: %s\n" % e)```
92+
print("Exception when attaching policy to a file system: %s\n" % e)
93+
```
9394

9495
### Parameters
9596

@@ -184,7 +185,8 @@ if res:
184185
member_names=["myfs"])
185186
print(res)
186187
except rest.ApiException as e:
187-
print("Exception when deleting policy against a file system: %s\n" % e)```
188+
print("Exception when deleting policy against a file system: %s\n" % e)
189+
```
188190

189191
### Parameters
190192

@@ -390,7 +392,8 @@ if res:
390392
res = fb.file_systems.list_filesystem_policies(token=res.pagination_info.continuation_token)
391393
print(res)
392394
except rest.ApiException as e:
393-
print("Exception when listing policy file system: %s\n" % e)```
395+
print("Exception when listing policy file system: %s\n" % e)
396+
```
394397

395398
### Parameters
396399

docs/HardwareConnectorsApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ if res:
3838
# list with filter
3939
res = fb.hardware_connectors.list_hardware_connectors(filter='port_count=4')
4040
except rest.ApiException as e:
41-
print("Exception when listing hardware connectors: %s\n" % e)```
41+
print("Exception when listing hardware connectors: %s\n" % e)
42+
```
4243

4344
### Parameters
4445

docs/LinkAggregationGroupsApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ if res:
136136
# list with filter
137137
res = fb.link_aggregation_groups.list_link_aggregation_groups(filter="mac_address=24:a9:37:11:f5:21")
138138
except rest.ApiException as e:
139-
print("Exception when listing link aggregation groups: %s\n" % e)```
139+
print("Exception when listing link aggregation groups: %s\n" % e)
140+
```
140141

141142
### Parameters
142143

docs/NetworkInterfacesApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ if res:
138138
# list with filter
139139
res = fb.network_interfaces.list_network_interfaces(filter='vlan=8')
140140
except rest.ApiException as e:
141-
print("Exception when listing network interfaces: %s\n" % e)```
141+
print("Exception when listing network interfaces: %s\n" % e)
142+
```
142143

143144
### Parameters
144145

docs/PoliciesApi.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ if res:
3939
res = fb.policies.create_policies(names=["p1"], policy=attr)
4040
print(res)
4141
except rest.ApiException as e:
42-
print("Exception when creating policy: %s\n" % e)```
42+
print("Exception when creating policy: %s\n" % e)
43+
```
4344

4445
### Parameters
4546

@@ -88,7 +89,8 @@ if res:
8889
member_names=["myfs"])
8990
print(res)
9091
except rest.ApiException as e:
91-
print("Exception when attaching policy to a file system: %s\n" % e)```
92+
print("Exception when attaching policy to a file system: %s\n" % e)
93+
```
9294

9395
### Parameters
9496

@@ -135,7 +137,8 @@ if res:
135137
res = fb.policies.delete_policies(names=["p1"])
136138
print(res)
137139
except rest.ApiException as e:
138-
print("Exception when creating policy: %s\n" % e)```
140+
print("Exception when creating policy: %s\n" % e)
141+
```
139142

140143
### Parameters
141144

@@ -183,7 +186,8 @@ if res:
183186
member_names=["myfs"])
184187
print(res)
185188
except rest.ApiException as e:
186-
print("Exception when deleting policy against a file system: %s\n" % e)```
189+
print("Exception when deleting policy against a file system: %s\n" % e)
190+
```
187191

188192
### Parameters
189193

@@ -239,7 +243,8 @@ if res:
239243
res = fb.policies.list_policies(token=res.pagination_info.continuation_token)
240244
print(res)
241245
except rest.ApiException as e:
242-
print("Exception when listing policies: %s\n" % e)```
246+
print("Exception when listing policies: %s\n" % e)
247+
```
243248

244249
### Parameters
245250

@@ -304,7 +309,8 @@ if res:
304309
res = fb.policies.list_policy_filesystem_snapshots(token=res.pagination_info.continuation_token)
305310
print(res)
306311
except rest.ApiException as e:
307-
print("Exception when listing policy file system snapshot: %s\n" % e)```
312+
print("Exception when listing policy file system snapshot: %s\n" % e)
313+
```
308314

309315
### Parameters
310316

@@ -369,7 +375,8 @@ if res:
369375
res = fb.policies.list_policy_filesystems(token=res.pagination_info.continuation_token)
370376
print(res)
371377
except rest.ApiException as e:
372-
print("Exception when listing policy file system: %s\n" % e)```
378+
print("Exception when listing policy file system: %s\n" % e)
379+
```
373380

374381
### Parameters
375382

@@ -438,7 +445,8 @@ if res:
438445
res = fb.policies.list_policy_members(token=res.pagination_info.continuation_token)
439446
print(res)
440447
except rest.ApiException as e:
441-
print("Exception when listing policy members: %s\n" % e)```
448+
print("Exception when listing policy members: %s\n" % e)
449+
```
442450

443451
### Parameters
444452

@@ -491,7 +499,8 @@ if res:
491499
names=["p1"], policy_patch=Policy(enabled=False))
492500
print(res)
493501
except rest.ApiException as e:
494-
print("Exception when updating policy: %s\n" % e)```
502+
print("Exception when updating policy: %s\n" % e)
503+
```
495504

496505
### Parameters
497506

docs/SmtpApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ if res:
7474
res = fb.smtp.update_smtp(smtp_settings=smtp_settings)
7575
print(res)
7676
except rest.ApiException as e:
77-
print("Exception when updating smtp configuration settings: %s\n" % e)```
77+
print("Exception when updating smtp configuration settings: %s\n" % e)
78+
```
7879

7980
### Parameters
8081

0 commit comments

Comments
 (0)