Skip to content

Commit eab1124

Browse files
authored
Merge pull request #62 from azaman-ps/master
Release 1.37.0 Added FlashBlade REST 2.10
2 parents 8c30cd2 + 1e81884 commit eab1124

File tree

481 files changed

+107086
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

481 files changed

+107086
-11
lines changed

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ A log of changes by version and date.
66
======= ========== =====
77
Version Date Notes
88
======= ========== =====
9+
1.37.0 06/02/2023 Added FlashBlade 2.10 client
910
1.36.0 05/26/2023 Added FlashArray 2.24 client
1011
1.35.0 04/24/2023 Added FlashBlade 2.9 client
1112
1.34.0 04/24/2023 Added FlashArray 2.22 and 2.23 clients

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
author = u'Pure Storage, Inc.'
2828

2929
# The short X.Y version
30-
version = u'1.36'
30+
version = u'1.37'
3131
# The full version, including alpha/beta/rc tags
32-
release = u'1.36.0'
32+
release = u'1.37.0'
3333

3434

3535
# -- General configuration ---------------------------------------------------

docs/fb_reference.rst

Lines changed: 241 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ FlashBlade REST 2.9 Client
6767
~~~~~~~~~~~~~~~~~~~~~~~~~~
6868

6969
.. autoclass:: pypureclient.flashblade.FB_2_9.client.Client
70+
71+
FlashBlade REST 2.10 Client
72+
~~~~~~~~~~~~~~~~~~~~~~~~~~
73+
74+
.. autoclass:: pypureclient.flashblade.FB_2_10.client.Client
7075
:members:
7176

7277

@@ -548,6 +553,12 @@ FileLockRange
548553
.. autoclass:: pypureclient.flashblade.FileLockRange
549554
:members:
550555

556+
FileSession
557+
~~~~~~~~~~~
558+
559+
.. autoclass:: pypureclient.flashblade.FileSession
560+
:members:
561+
551562
FileSystem
552563
~~~~~~~~~~
553564

@@ -1058,6 +1069,18 @@ PolicyRule
10581069
.. autoclass:: pypureclient.flashblade.PolicyRule
10591070
:members:
10601071

1072+
PolicyRuleIndex
1073+
~~~~~~~~~~~~~~~
1074+
1075+
.. autoclass:: pypureclient.flashblade.PolicyRuleIndex
1076+
:members:
1077+
1078+
PolicyRuleIndexInPolicy
1079+
~~~~~~~~~~~~~~~~~~~~~~~
1080+
1081+
.. autoclass:: pypureclient.flashblade.PolicyRuleIndexInPolicy
1082+
:members:
1083+
10611084
PolicyRuleObjectAccess
10621085
~~~~~~~~~~~~~~~~~~~~~~
10631086

@@ -1166,6 +1189,84 @@ Smb
11661189
.. autoclass:: pypureclient.flashblade.Smb
11671190
:members:
11681191

1192+
SmbClientPolicy
1193+
~~~~~~~~~~~~~~~
1194+
1195+
.. autoclass:: pypureclient.flashblade.SmbClientPolicy
1196+
:members:
1197+
1198+
SmbClientPolicyPost
1199+
~~~~~~~~~~~~~~~~~~~
1200+
1201+
.. autoclass:: pypureclient.flashblade.SmbClientPolicyPost
1202+
:members:
1203+
1204+
SmbClientPolicyRule
1205+
~~~~~~~~~~~~~~~~~~~
1206+
1207+
.. autoclass:: pypureclient.flashblade.SmbClientPolicyRule
1208+
:members:
1209+
1210+
SmbClientPolicyRuleBase
1211+
~~~~~~~~~~~~~~~~~~~~~~~
1212+
1213+
.. autoclass:: pypureclient.flashblade.SmbClientPolicyRuleBase
1214+
:members:
1215+
1216+
SmbClientPolicyRuleInPolicy
1217+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
1218+
1219+
.. autoclass:: pypureclient.flashblade.SmbClientPolicyRuleInPolicy
1220+
:members:
1221+
1222+
SmbClientPolicyRulePost
1223+
~~~~~~~~~~~~~~~~~~~~~~~
1224+
1225+
.. autoclass:: pypureclient.flashblade.SmbClientPolicyRulePost
1226+
:members:
1227+
1228+
SmbClientPolicyRulePostBase
1229+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
1230+
1231+
.. autoclass:: pypureclient.flashblade.SmbClientPolicyRulePostBase
1232+
:members:
1233+
1234+
SmbClientPolicyRulePostInPolicy
1235+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1236+
1237+
.. autoclass:: pypureclient.flashblade.SmbClientPolicyRulePostInPolicy
1238+
:members:
1239+
1240+
SmbPost
1241+
~~~~~~~
1242+
1243+
.. autoclass:: pypureclient.flashblade.SmbPost
1244+
:members:
1245+
1246+
SmbSharePolicy
1247+
~~~~~~~~~~~~~~
1248+
1249+
.. autoclass:: pypureclient.flashblade.SmbSharePolicy
1250+
:members:
1251+
1252+
SmbSharePolicyPost
1253+
~~~~~~~~~~~~~~~~~~
1254+
1255+
.. autoclass:: pypureclient.flashblade.SmbSharePolicyPost
1256+
:members:
1257+
1258+
SmbSharePolicyRule
1259+
~~~~~~~~~~~~~~~~~~
1260+
1261+
.. autoclass:: pypureclient.flashblade.SmbSharePolicyRule
1262+
:members:
1263+
1264+
SmbSharePolicyRulePost
1265+
~~~~~~~~~~~~~~~~~~~~~~
1266+
1267+
.. autoclass:: pypureclient.flashblade.SmbSharePolicyRulePost
1268+
:members:
1269+
11691270
SmtpServer
11701271
~~~~~~~~~~
11711272

@@ -1310,6 +1411,12 @@ User
13101411
.. autoclass:: pypureclient.flashblade.User
13111412
:members:
13121413

1414+
UserNoId
1415+
~~~~~~~~
1416+
1417+
.. autoclass:: pypureclient.flashblade.UserNoId
1418+
:members:
1419+
13131420
UserQuota
13141421
~~~~~~~~~
13151422

@@ -1340,6 +1447,12 @@ VerificationKeyPatch
13401447
.. autoclass:: pypureclient.flashblade.VerificationKeyPatch
13411448
:members:
13421449

1450+
Version
1451+
~~~~~~~
1452+
1453+
.. autoclass:: pypureclient.flashblade.Version
1454+
:members:
1455+
13431456
model
13441457
~~~~~
13451458

@@ -2075,6 +2188,12 @@ File System Replica Links
20752188

20762189
The following examples assume that ``client`` is an instantiated ``flashblade.Client`` object as shown in :ref:`Instantiating a Client`.
20772190

2191+
delete_file_system_replica_links
2192+
''''''''''''''''''''''''''''''''
2193+
2194+
.. literalinclude:: source/examples/FB2.10/delete_file_system_replica_links.py
2195+
:language: python
2196+
20782197
get_file_system_replica_links
20792198
'''''''''''''''''''''''''''''
20802199

@@ -2196,7 +2315,7 @@ get_file_systems_locks_clients
21962315
delete_file_systems_locks
21972316
'''''''''''''''''''''''''
21982317

2199-
.. literalinclude:: source/examples/FB2.8/delete_file_systems_locks.py
2318+
.. literalinclude:: source/examples/FB2.10/delete_file_systems_locks.py
22002319
:language: python
22012320

22022321
get_file_systems_locks
@@ -2214,13 +2333,13 @@ post_file_systems_locks_nlm_reclamations
22142333
patch_file_systems
22152334
''''''''''''''''''
22162335

2217-
.. literalinclude:: source/examples/FB2.3/patch_file_systems.py
2336+
.. literalinclude:: source/examples/FB2.10/patch_file_systems.py
22182337
:language: python
22192338

22202339
get_file_systems_performance
22212340
''''''''''''''''''''''''''''
22222341

2223-
.. literalinclude:: source/examples/FB2.0/get_file_systems_performance.py
2342+
.. literalinclude:: source/examples/FB2.10/get_file_systems_performance.py
22242343
:language: python
22252344

22262345
get_file_systems_policies_all
@@ -2250,7 +2369,19 @@ post_file_systems_policies
22502369
post_file_systems
22512370
'''''''''''''''''
22522371

2253-
.. literalinclude:: source/examples/FB2.3/post_file_systems.py
2372+
.. literalinclude:: source/examples/FB2.10/post_file_systems.py
2373+
:language: python
2374+
2375+
delete_file_systems_sessions
2376+
''''''''''''''''''''''''''''
2377+
2378+
.. literalinclude:: source/examples/FB2.10/delete_file_systems_sessions.py
2379+
:language: python
2380+
2381+
get_file_systems_sessions
2382+
'''''''''''''''''''''''''
2383+
2384+
.. literalinclude:: source/examples/FB2.10/get_file_systems_sessions.py
22542385
:language: python
22552386

22562387
get_file_systems_users_performance
@@ -2778,6 +2909,112 @@ get_object_store_access_policy_actions
27782909
.. literalinclude:: source/examples/FB2.2/get_object_store_access_policy_actions.py
27792910
:language: python
27802911

2912+
Policies Smb Client
2913+
~~~~~~~~~~~~~~~~~~~~~
2914+
2915+
The following examples assume that ``client`` is an instantiated ``flashblade.Client`` object as shown in :ref:`Instantiating a Client`.
2916+
2917+
delete_smb_client_policies
2918+
''''''''''''''''''''''''''
2919+
2920+
.. literalinclude:: source/examples/FB2.10/delete_smb_client_policies.py
2921+
:language: python
2922+
2923+
get_smb_client_policies
2924+
'''''''''''''''''''''''
2925+
2926+
.. literalinclude:: source/examples/FB2.10/get_smb_client_policies.py
2927+
:language: python
2928+
2929+
patch_smb_client_policies
2930+
'''''''''''''''''''''''''
2931+
2932+
.. literalinclude:: source/examples/FB2.10/patch_smb_client_policies.py
2933+
:language: python
2934+
2935+
post_smb_client_policies
2936+
''''''''''''''''''''''''
2937+
2938+
.. literalinclude:: source/examples/FB2.10/post_smb_client_policies.py
2939+
:language: python
2940+
2941+
delete_smb_client_policies_rules
2942+
''''''''''''''''''''''''''''''''
2943+
2944+
.. literalinclude:: source/examples/FB2.10/delete_smb_client_policies_rules.py
2945+
:language: python
2946+
2947+
get_smb_client_policies_rules
2948+
'''''''''''''''''''''''''''''
2949+
2950+
.. literalinclude:: source/examples/FB2.10/get_smb_client_policies_rules.py
2951+
:language: python
2952+
2953+
patch_smb_client_policies_rules
2954+
'''''''''''''''''''''''''''''''
2955+
2956+
.. literalinclude:: source/examples/FB2.10/patch_smb_client_policies_rules.py
2957+
:language: python
2958+
2959+
post_smb_client_policies_rules
2960+
''''''''''''''''''''''''''''''
2961+
2962+
.. literalinclude:: source/examples/FB2.10/post_smb_client_policies_rules.py
2963+
:language: python
2964+
2965+
Policies Smb Share
2966+
~~~~~~~~~~~~~~~~~~~~
2967+
2968+
The following examples assume that ``client`` is an instantiated ``flashblade.Client`` object as shown in :ref:`Instantiating a Client`.
2969+
2970+
delete_smb_share_policies
2971+
'''''''''''''''''''''''''
2972+
2973+
.. literalinclude:: source/examples/FB2.10/delete_smb_share_policies.py
2974+
:language: python
2975+
2976+
get_smb_share_policies
2977+
''''''''''''''''''''''
2978+
2979+
.. literalinclude:: source/examples/FB2.10/get_smb_share_policies.py
2980+
:language: python
2981+
2982+
patch_smb_share_policies
2983+
''''''''''''''''''''''''
2984+
2985+
.. literalinclude:: source/examples/FB2.10/patch_smb_share_policies.py
2986+
:language: python
2987+
2988+
post_smb_share_policies
2989+
'''''''''''''''''''''''
2990+
2991+
.. literalinclude:: source/examples/FB2.10/post_smb_share_policies.py
2992+
:language: python
2993+
2994+
delete_smb_share_policies_rules
2995+
'''''''''''''''''''''''''''''''
2996+
2997+
.. literalinclude:: source/examples/FB2.10/delete_smb_share_policies_rules.py
2998+
:language: python
2999+
3000+
get_smb_share_policies_rules
3001+
''''''''''''''''''''''''''''
3002+
3003+
.. literalinclude:: source/examples/FB2.10/get_smb_share_policies_rules.py
3004+
:language: python
3005+
3006+
patch_smb_share_policies_rules
3007+
''''''''''''''''''''''''''''''
3008+
3009+
.. literalinclude:: source/examples/FB2.10/patch_smb_share_policies_rules.py
3010+
:language: python
3011+
3012+
post_smb_share_policies_rules
3013+
'''''''''''''''''''''''''''''
3014+
3015+
.. literalinclude:: source/examples/FB2.10/post_smb_share_policies_rules.py
3016+
:language: python
3017+
27813018
Policies Snapshot
27823019
~~~~~~~~~~~~~~~~~~~
27833020

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# delete replica link defined by local file system 'local_fs', remote array 'my_remote' and
2+
# optionally remote file system 'remote_fs'
3+
res = client.delete_file_system_replica_links(local_file_system_names=['local_fs'],
4+
remote_file_system_names=['remote_fs'],
5+
remote_names=['my_remote'],
6+
cancel_in_progress_transfers=True)
7+
8+
print(res)
9+
if type(res) == pypureclient.responses.ValidResponse:
10+
print(list(res.items))
11+
12+
# delete replica link defined by id
13+
res = client.delete_file_system_replica_links(ids=['10314f42-020d-7080-8013-000ddt400092'],
14+
cancel_in_progress_transfers=True)
15+
print(res)
16+
if type(res) == pypureclient.responses.ValidResponse:
17+
print(list(res.items))
18+
19+
# Other valid fields: local_file_system_ids, remote_ids, remote_file_system_ids
20+
# See section "Common Fields" for examples
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Delete all locks created by a specified client IP
2+
res = client.delete_file_systems_locks(client_names='1.1.1.1')
3+
print(res)
4+
if type(res) == pypureclient.responses.ValidResponse:
5+
print(list(res.items))
6+
7+
# Delete a single lock by name
8+
res = client.delete_file_systems_locks(names='3-NFSv3-0-1024')
9+
print(res)
10+
if type(res) == pypureclient.responses.ValidResponse:
11+
print(list(res.items))
12+
13+
# Delete all locks for a specific file
14+
res = client.delete_file_systems_locks(file_system_names='root', paths='/dir/file')
15+
print(res)
16+
if type(res) == pypureclient.responses.ValidResponse:
17+
print(list(res.items))
18+
19+
# Delete all locks for files (recursively) within a specified folder
20+
res = client.delete_file_systems_locks(file_system_names='root', paths='/dir',
21+
recursive=True)
22+
print(res)
23+
if type(res) == pypureclient.responses.ValidResponse:
24+
print(list(res.items))
25+
26+
# Other valid fields: file_system_ids, inodes, references
27+
# See section "Common Fields" for examples

0 commit comments

Comments
 (0)