Skip to content

Commit

Permalink
Merge pull request #34 from ychen-ps/v1_11
Browse files Browse the repository at this point in the history
Release the python REST client for REST VERSION 1.11
  • Loading branch information
ychen-ps authored Nov 4, 2020
2 parents 96161a2 + e969139 commit 928a394
Show file tree
Hide file tree
Showing 310 changed files with 66,847 additions and 866 deletions.
6 changes: 3 additions & 3 deletions PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Metadata-Version: 1.10.0
Metadata-Version: 1.11.0
Name: purity_fb
Version: 1.10.0
Summary: Pure Storage FlashBlade REST 1.10 Python SDK.
Version: 1.11.0
Summary: Pure Storage FlashBlade REST 1.11 Python SDK.
License: Apache 2.0
401 changes: 201 additions & 200 deletions README.md

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions docs/Admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | The name of the object (e.g., a file system or snapshot) | [optional]
**id** | **str** | A non-modifiable, globally unique ID chosen by the system. | [optional]
**name** | **str** | The name of the object (e.g., a file system or snapshot). | [optional]
**api_token** | [**AdminApiToken**](AdminApiToken.md) | | [optional]
**create_api_token** | **bool** | Create a new API token | [optional]
**create_api_token** | **bool** | Create a new API token. | [optional]
**api_token_timeout** | **int** | Expire api-token after this period (in milliseconds). | [optional]
**delete_api_token** | **bool** | Delete this user's API token | [optional]
**old_password** | **str** | Old user password | [optional]
**password** | **str** | User password | [optional]
**delete_api_token** | **bool** | Delete this user's API token. | [optional]
**old_password** | **str** | Old user password. | [optional]
**password** | **str** | User password. | [optional]
**public_key** | **str** | Public key for SSH access. Supported key types are `Ed25519` and `RSA`. | [optional]
**is_local** | **bool** | Returns a value of `true` if the user is local to the machine, otherwise `false`. | [optional]

[[Back to Model list]](index.md#documentation-for-models) [[Back to API list]](index.md#endpoint-properties) [[Back to Overview]](index.md)

Expand Down
6 changes: 3 additions & 3 deletions docs/AdminApiToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created** | **int** | Creation time in milliseconds since UNIX epoch | [optional]
**expires** | **int** | Expiration time in milliseconds since UNIX epoch | [optional]
**token** | **str** | Admin API token | [optional]
**created** | **int** | Creation time in milliseconds since UNIX epoch. | [optional]
**expires** | **int** | Expiration time in milliseconds since UNIX epoch. | [optional]
**token** | **str** | Admin API token. | [optional]

[[Back to Model list]](index.md#documentation-for-models) [[Back to API list]](index.md#endpoint-properties) [[Back to Overview]](index.md)

Expand Down
20 changes: 13 additions & 7 deletions docs/AdminsApi.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# purity_fb_1dot10.AdminsApi
# purity_fb_1dot11.AdminsApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**list_admins**](AdminsApi.md#list_admins) | **GET** /1.10/admins |
[**update_admins**](AdminsApi.md#update_admins) | **PATCH** /1.10/admins |
[**list_admins**](AdminsApi.md#list_admins) | **GET** /1.11/admins |
[**update_admins**](AdminsApi.md#update_admins) | **PATCH** /1.11/admins |


# **list_admins**
Expand Down Expand Up @@ -85,13 +85,19 @@ except rest.ApiException as e:
if res:
try:
# change password
myAdmin = Admin()
myAdmin.old_password = "pureuser"
myAdmin.password = "fakepass"
myAdmin = Admin(old_password='thisWASanOLDpasSwOrD', password='FAKEnewpaSsword')
res = fb.admins.update_admins(names=['pureuser'], admin=myAdmin)

# Set a public key for login via SSH
myAdmin = Admin(public_key='ssh-rsa EXAMPLEzaC1yc2EAAAADAQABAAABAQDN1fshdvABLD/f2mkAUqkcUMKPsS+Os3omYFwe3G2Adxc'
'enBY+kLmbPXjiC9t4UDob3RiYu6HkDC2xvu8yLhlQTtsjCac2BkePJa/OTxttwY5G6OyYqWjmSmX9D6GZ13'
'CRr/rSxjXYo/2GE/0xyv27/Z+ikxjs6rzXXOhdxJ6hY1jD1D8+fHVxhr8+n6Zbod8and0rlgmarfRoRYlLh'
'GoRSCxNyOi6bG5ugrlIEXi8JZr8CpztGp/8WTa82XCSClFJPteC/5vLvwPGxwOraZ/BJngBPbmeeloN5lBl'
'W0KAndRqwNZcDBt8JnGioPd0Kv+SNufwR4nHCv8NgEXAMPLE')
res = fb.admins.update_admins(names=['pureuser'], admin=myAdmin)

except rest.ApiException as e:
print("Exception when changing password: %s\n" % e)
print("Exception when changing password or public key: %s\n" % e)
```

### Parameters
Expand Down
6 changes: 3 additions & 3 deletions docs/AdminsCacheApi.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# purity_fb_1dot10.AdminsCacheApi
# purity_fb_1dot11.AdminsCacheApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**delete_admin_cache**](AdminsCacheApi.md#delete_admin_cache) | **DELETE** /1.10/admins/cache |
[**list_admin_cache**](AdminsCacheApi.md#list_admin_cache) | **GET** /1.10/admins/cache |
[**delete_admin_cache**](AdminsCacheApi.md#delete_admin_cache) | **DELETE** /1.11/admins/cache |
[**list_admin_cache**](AdminsCacheApi.md#list_admin_cache) | **GET** /1.11/admins/cache |


# **delete_admin_cache**
Expand Down
12 changes: 6 additions & 6 deletions docs/AlertWatchersApi.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# purity_fb_1dot10.AlertWatchersApi
# purity_fb_1dot11.AlertWatchersApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_alert_watchers**](AlertWatchersApi.md#create_alert_watchers) | **POST** /1.10/alert-watchers |
[**delete_alert_watchers**](AlertWatchersApi.md#delete_alert_watchers) | **DELETE** /1.10/alert-watchers |
[**list_alert_watchers**](AlertWatchersApi.md#list_alert_watchers) | **GET** /1.10/alert-watchers |
[**test_alert_watchers**](AlertWatchersApi.md#test_alert_watchers) | **GET** /1.10/alert-watchers/test |
[**update_alert_watchers**](AlertWatchersApi.md#update_alert_watchers) | **PATCH** /1.10/alert-watchers |
[**create_alert_watchers**](AlertWatchersApi.md#create_alert_watchers) | **POST** /1.11/alert-watchers |
[**delete_alert_watchers**](AlertWatchersApi.md#delete_alert_watchers) | **DELETE** /1.11/alert-watchers |
[**list_alert_watchers**](AlertWatchersApi.md#list_alert_watchers) | **GET** /1.11/alert-watchers |
[**test_alert_watchers**](AlertWatchersApi.md#test_alert_watchers) | **GET** /1.11/alert-watchers/test |
[**update_alert_watchers**](AlertWatchersApi.md#update_alert_watchers) | **PATCH** /1.11/alert-watchers |


# **create_alert_watchers**
Expand Down
6 changes: 3 additions & 3 deletions docs/AlertsApi.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# purity_fb_1dot10.AlertsApi
# purity_fb_1dot11.AlertsApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**list_alerts**](AlertsApi.md#list_alerts) | **GET** /1.10/alerts |
[**update_alerts**](AlertsApi.md#update_alerts) | **PATCH** /1.10/alerts |
[**list_alerts**](AlertsApi.md#list_alerts) | **GET** /1.11/alerts |
[**update_alerts**](AlertsApi.md#update_alerts) | **PATCH** /1.11/alerts |


# **list_alerts**
Expand Down
18 changes: 9 additions & 9 deletions docs/ArrayConnectionsApi.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# purity_fb_1dot10.ArrayConnectionsApi
# purity_fb_1dot11.ArrayConnectionsApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_array_connections**](ArrayConnectionsApi.md#create_array_connections) | **POST** /1.10/array-connections |
[**create_array_connections_connection_keys**](ArrayConnectionsApi.md#create_array_connections_connection_keys) | **POST** /1.10/array-connections/connection-key |
[**delete_array_connections**](ArrayConnectionsApi.md#delete_array_connections) | **DELETE** /1.10/array-connections |
[**list_array_connections**](ArrayConnectionsApi.md#list_array_connections) | **GET** /1.10/array-connections |
[**list_array_connections_connection_keys**](ArrayConnectionsApi.md#list_array_connections_connection_keys) | **GET** /1.10/array-connections/connection-key |
[**list_array_connections_paths**](ArrayConnectionsApi.md#list_array_connections_paths) | **GET** /1.10/array-connections/path |
[**list_array_connections_performance_replication**](ArrayConnectionsApi.md#list_array_connections_performance_replication) | **GET** /1.10/array-connections/performance/replication |
[**update_array_connections**](ArrayConnectionsApi.md#update_array_connections) | **PATCH** /1.10/array-connections |
[**create_array_connections**](ArrayConnectionsApi.md#create_array_connections) | **POST** /1.11/array-connections |
[**create_array_connections_connection_keys**](ArrayConnectionsApi.md#create_array_connections_connection_keys) | **POST** /1.11/array-connections/connection-key |
[**delete_array_connections**](ArrayConnectionsApi.md#delete_array_connections) | **DELETE** /1.11/array-connections |
[**list_array_connections**](ArrayConnectionsApi.md#list_array_connections) | **GET** /1.11/array-connections |
[**list_array_connections_connection_keys**](ArrayConnectionsApi.md#list_array_connections_connection_keys) | **GET** /1.11/array-connections/connection-key |
[**list_array_connections_paths**](ArrayConnectionsApi.md#list_array_connections_paths) | **GET** /1.11/array-connections/path |
[**list_array_connections_performance_replication**](ArrayConnectionsApi.md#list_array_connections_performance_replication) | **GET** /1.11/array-connections/performance/replication |
[**update_array_connections**](ArrayConnectionsApi.md#update_array_connections) | **PATCH** /1.11/array-connections |


# **create_array_connections**
Expand Down
23 changes: 12 additions & 11 deletions docs/ArraysApi.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# purity_fb_1dot10.ArraysApi
# purity_fb_1dot11.ArraysApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**list_arrays**](ArraysApi.md#list_arrays) | **GET** /1.10/arrays |
[**list_arrays_http_specific_performance**](ArraysApi.md#list_arrays_http_specific_performance) | **GET** /1.10/arrays/http-specific-performance |
[**list_arrays_nfs_specific_performance**](ArraysApi.md#list_arrays_nfs_specific_performance) | **GET** /1.10/arrays/nfs-specific-performance |
[**list_arrays_performance**](ArraysApi.md#list_arrays_performance) | **GET** /1.10/arrays/performance |
[**list_arrays_performance_replication**](ArraysApi.md#list_arrays_performance_replication) | **GET** /1.10/arrays/performance/replication |
[**list_arrays_s3_specific_performance**](ArraysApi.md#list_arrays_s3_specific_performance) | **GET** /1.10/arrays/s3-specific-performance |
[**list_arrays_space**](ArraysApi.md#list_arrays_space) | **GET** /1.10/arrays/space |
[**list_clients_performance**](ArraysApi.md#list_clients_performance) | **GET** /1.10/arrays/clients/performance |
[**update_arrays**](ArraysApi.md#update_arrays) | **PATCH** /1.10/arrays |
[**list_arrays**](ArraysApi.md#list_arrays) | **GET** /1.11/arrays |
[**list_arrays_http_specific_performance**](ArraysApi.md#list_arrays_http_specific_performance) | **GET** /1.11/arrays/http-specific-performance |
[**list_arrays_nfs_specific_performance**](ArraysApi.md#list_arrays_nfs_specific_performance) | **GET** /1.11/arrays/nfs-specific-performance |
[**list_arrays_performance**](ArraysApi.md#list_arrays_performance) | **GET** /1.11/arrays/performance |
[**list_arrays_performance_replication**](ArraysApi.md#list_arrays_performance_replication) | **GET** /1.11/arrays/performance/replication |
[**list_arrays_s3_specific_performance**](ArraysApi.md#list_arrays_s3_specific_performance) | **GET** /1.11/arrays/s3-specific-performance |
[**list_arrays_space**](ArraysApi.md#list_arrays_space) | **GET** /1.11/arrays/space |
[**list_clients_performance**](ArraysApi.md#list_clients_performance) | **GET** /1.11/arrays/clients/performance |
[**update_arrays**](ArraysApi.md#update_arrays) | **PATCH** /1.11/arrays |


# **list_arrays**
Expand Down Expand Up @@ -406,7 +406,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](index.md#endpoint-properties) [[Back to Model list]](index.md#documentation-for-models) [[Back to Overview]](index.md)

# **list_clients_performance**
> ClientPerformanceResponse list_clients_performance(names=names, filter=filter, sort=sort, limit=limit)
> ClientPerformanceResponse list_clients_performance(names=names, filter=filter, sort=sort, limit=limit, total_only=total_only)


Expand Down Expand Up @@ -440,6 +440,7 @@ Name | Type | Description | Notes
**filter** | **str**| The filter to be used for query. | [optional]
**sort** | **str**| Sort the response by the specified fields (in descending order if '-' is appended to the field name). | [optional]
**limit** | **int**| limit, should be >= 0 | [optional]
**total_only** | **bool**| Return only the total object. | [optional] [default to false]

### Return type

Expand Down
4 changes: 2 additions & 2 deletions docs/AuditsApi.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# purity_fb_1dot10.AuditsApi
# purity_fb_1dot11.AuditsApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**list_audits**](AuditsApi.md#list_audits) | **GET** /1.10/audits |
[**list_audits**](AuditsApi.md#list_audits) | **GET** /1.11/audits |


# **list_audits**
Expand Down
2 changes: 1 addition & 1 deletion docs/AuthenticationApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# purity_fb_1dot10.AuthenticationApi
# purity_fb_1dot11.AuthenticationApi

All URIs are relative to *https://purity_fb_server/api*

Expand Down
4 changes: 2 additions & 2 deletions docs/BladeApi.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# purity_fb_1dot10.BladeApi
# purity_fb_1dot11.BladeApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**list_blades**](BladeApi.md#list_blades) | **GET** /1.10/blades |
[**list_blades**](BladeApi.md#list_blades) | **GET** /1.11/blades |


# **list_blades**
Expand Down
10 changes: 5 additions & 5 deletions docs/BucketReplicaLinksApi.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# purity_fb_1dot10.BucketReplicaLinksApi
# purity_fb_1dot11.BucketReplicaLinksApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_bucket_replica_links**](BucketReplicaLinksApi.md#create_bucket_replica_links) | **POST** /1.10/bucket-replica-links |
[**delete_bucket_replica_links**](BucketReplicaLinksApi.md#delete_bucket_replica_links) | **DELETE** /1.10/bucket-replica-links |
[**list_bucket_replica_links**](BucketReplicaLinksApi.md#list_bucket_replica_links) | **GET** /1.10/bucket-replica-links |
[**update_bucket_replica_links**](BucketReplicaLinksApi.md#update_bucket_replica_links) | **PATCH** /1.10/bucket-replica-links |
[**create_bucket_replica_links**](BucketReplicaLinksApi.md#create_bucket_replica_links) | **POST** /1.11/bucket-replica-links |
[**delete_bucket_replica_links**](BucketReplicaLinksApi.md#delete_bucket_replica_links) | **DELETE** /1.11/bucket-replica-links |
[**list_bucket_replica_links**](BucketReplicaLinksApi.md#list_bucket_replica_links) | **GET** /1.11/bucket-replica-links |
[**update_bucket_replica_links**](BucketReplicaLinksApi.md#update_bucket_replica_links) | **PATCH** /1.11/bucket-replica-links |


# **create_bucket_replica_links**
Expand Down
14 changes: 7 additions & 7 deletions docs/BucketsApi.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# purity_fb_1dot10.BucketsApi
# purity_fb_1dot11.BucketsApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_buckets**](BucketsApi.md#create_buckets) | **POST** /1.10/buckets |
[**delete_buckets**](BucketsApi.md#delete_buckets) | **DELETE** /1.10/buckets |
[**list_buckets**](BucketsApi.md#list_buckets) | **GET** /1.10/buckets |
[**list_buckets_performance**](BucketsApi.md#list_buckets_performance) | **GET** /1.10/buckets/performance |
[**list_buckets_s3_specific_performance**](BucketsApi.md#list_buckets_s3_specific_performance) | **GET** /1.10/buckets/s3-specific-performance |
[**update_buckets**](BucketsApi.md#update_buckets) | **PATCH** /1.10/buckets |
[**create_buckets**](BucketsApi.md#create_buckets) | **POST** /1.11/buckets |
[**delete_buckets**](BucketsApi.md#delete_buckets) | **DELETE** /1.11/buckets |
[**list_buckets**](BucketsApi.md#list_buckets) | **GET** /1.11/buckets |
[**list_buckets_performance**](BucketsApi.md#list_buckets_performance) | **GET** /1.11/buckets/performance |
[**list_buckets_s3_specific_performance**](BucketsApi.md#list_buckets_s3_specific_performance) | **GET** /1.11/buckets/s3-specific-performance |
[**update_buckets**](BucketsApi.md#update_buckets) | **PATCH** /1.11/buckets |


# **create_buckets**
Expand Down
16 changes: 8 additions & 8 deletions docs/CertificateGroupsApi.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# purity_fb_1dot10.CertificateGroupsApi
# purity_fb_1dot11.CertificateGroupsApi

All URIs are relative to *https://purity_fb_server/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**add_certificate_group_certificates**](CertificateGroupsApi.md#add_certificate_group_certificates) | **POST** /1.10/certificate-groups/certificates |
[**create_certificate_groups**](CertificateGroupsApi.md#create_certificate_groups) | **POST** /1.10/certificate-groups |
[**delete_certificate_groups**](CertificateGroupsApi.md#delete_certificate_groups) | **DELETE** /1.10/certificate-groups |
[**list_certificate_group_certificates**](CertificateGroupsApi.md#list_certificate_group_certificates) | **GET** /1.10/certificate-groups/certificates |
[**list_certificate_group_uses**](CertificateGroupsApi.md#list_certificate_group_uses) | **GET** /1.10/certificate-groups/uses |
[**list_certificate_groups**](CertificateGroupsApi.md#list_certificate_groups) | **GET** /1.10/certificate-groups |
[**remove_certificate_group_certificates**](CertificateGroupsApi.md#remove_certificate_group_certificates) | **DELETE** /1.10/certificate-groups/certificates |
[**add_certificate_group_certificates**](CertificateGroupsApi.md#add_certificate_group_certificates) | **POST** /1.11/certificate-groups/certificates |
[**create_certificate_groups**](CertificateGroupsApi.md#create_certificate_groups) | **POST** /1.11/certificate-groups |
[**delete_certificate_groups**](CertificateGroupsApi.md#delete_certificate_groups) | **DELETE** /1.11/certificate-groups |
[**list_certificate_group_certificates**](CertificateGroupsApi.md#list_certificate_group_certificates) | **GET** /1.11/certificate-groups/certificates |
[**list_certificate_group_uses**](CertificateGroupsApi.md#list_certificate_group_uses) | **GET** /1.11/certificate-groups/uses |
[**list_certificate_groups**](CertificateGroupsApi.md#list_certificate_groups) | **GET** /1.11/certificate-groups |
[**remove_certificate_group_certificates**](CertificateGroupsApi.md#remove_certificate_group_certificates) | **DELETE** /1.11/certificate-groups/certificates |


# **add_certificate_group_certificates**
Expand Down
Loading

0 comments on commit 928a394

Please sign in to comment.