Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Pure Fusion is fully API-driven. Most APIs which change the system (POST, PATCH,

This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.1
- Package version: 1.1.1
- API version: 1.2
- Package version: 1.2.0
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -212,7 +212,7 @@ except ApiException as e:

## Documentation for API Endpoints

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down Expand Up @@ -278,6 +278,7 @@ Class | Method | HTTP request | Description
*RegionsApi* | [**get_region**](docs/RegionsApi.md#get_region) | **GET** /regions/{region_name} | Gets a specific Region.
*RegionsApi* | [**get_region_by_id**](docs/RegionsApi.md#get_region_by_id) | **GET** /resources/regions/{region_id} | Gets a specific Region.
*RegionsApi* | [**list_regions**](docs/RegionsApi.md#list_regions) | **GET** /regions | Gets a list of all Regions.
*RegionsApi* | [**query_regions**](docs/RegionsApi.md#query_regions) | **GET** /resources/regions | Get all Regions in the org. Provide a filter to search for specific Regions.
*RegionsApi* | [**update_region**](docs/RegionsApi.md#update_region) | **PATCH** /regions/{region_name} | Updates a Region.
*RoleAssignmentsApi* | [**create_role_assignment**](docs/RoleAssignmentsApi.md#create_role_assignment) | **POST** /roles/{role_name}/role-assignments | Creates a Role Assignment.
*RoleAssignmentsApi* | [**delete_role_assignment**](docs/RoleAssignmentsApi.md#delete_role_assignment) | **DELETE** /roles/{role_name}/role-assignments/{role_assignment_name} | Delete a Role Assignment.
Expand All @@ -293,7 +294,7 @@ Class | Method | HTTP request | Description
*SnapshotsApi* | [**get_snapshot**](docs/SnapshotsApi.md#get_snapshot) | **GET** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/snapshots/{snapshot_name} | Gets a specific Snapshot.
*SnapshotsApi* | [**get_snapshot_by_id**](docs/SnapshotsApi.md#get_snapshot_by_id) | **GET** /resources/snapshots/{snapshot_id} | Gets a specific Snapshot.
*SnapshotsApi* | [**list_snapshots**](docs/SnapshotsApi.md#list_snapshots) | **GET** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/snapshots | Gets a list of Snapshots.
*SnapshotsApi* | [**query_snapshots**](docs/SnapshotsApi.md#query_snapshots) | **GET** /resources/snapshots | (Opt-in) Get all Snapshots in the org. Provide a filter to search for specific snapshots.
*SnapshotsApi* | [**query_snapshots**](docs/SnapshotsApi.md#query_snapshots) | **GET** /resources/snapshots | Get all Snapshots in the org. Provide a filter to search for specific snapshots.
*SnapshotsApi* | [**update_snapshot**](docs/SnapshotsApi.md#update_snapshot) | **PATCH** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/snapshots/{snapshot_name} | Recovers a pending snapshot
*StorageClassesApi* | [**create_storage_class**](docs/StorageClassesApi.md#create_storage_class) | **POST** /storage-services/{storage_service_name}/storage-classes | (Provider) Creates a Storage Class.
*StorageClassesApi* | [**delete_storage_class**](docs/StorageClassesApi.md#delete_storage_class) | **DELETE** /storage-services/{storage_service_name}/storage-classes/{storage_class_name} | Deletes a Storage Class.
Expand All @@ -320,7 +321,7 @@ Class | Method | HTTP request | Description
*TenantSpacesApi* | [**get_tenant_space_performance**](docs/TenantSpacesApi.md#get_tenant_space_performance) | **GET** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/performance | Gets performance metrics of a specific Tenant Space.
*TenantSpacesApi* | [**get_tenant_space_space**](docs/TenantSpacesApi.md#get_tenant_space_space) | **GET** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/space | Gets space metrics of a specific Tenant Space.
*TenantSpacesApi* | [**list_tenant_spaces**](docs/TenantSpacesApi.md#list_tenant_spaces) | **GET** /tenants/{tenant_name}/tenant-spaces | Gets a list of all Tenant Spaces.
*TenantSpacesApi* | [**query_tenant_spaces**](docs/TenantSpacesApi.md#query_tenant_spaces) | **GET** /resources/tenant-spaces | (Opt-in) Get all Tenant Spaces in the org. Provide a filter to search for specific Tenant Spaces
*TenantSpacesApi* | [**query_tenant_spaces**](docs/TenantSpacesApi.md#query_tenant_spaces) | **GET** /resources/tenant-spaces | Get all Tenant Spaces in the org. Provide a filter to search for specific Tenant Spaces
*TenantSpacesApi* | [**update_tenant_space**](docs/TenantSpacesApi.md#update_tenant_space) | **PATCH** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name} | Updates a Tenant Space.
*TenantsApi* | [**create_tenant**](docs/TenantsApi.md#create_tenant) | **POST** /tenants | Creates a Tenant.
*TenantsApi* | [**delete_tenant**](docs/TenantsApi.md#delete_tenant) | **DELETE** /tenants/{tenant_name} | Deletes a specific Tenant.
Expand All @@ -329,8 +330,9 @@ Class | Method | HTTP request | Description
*TenantsApi* | [**get_tenant_performance**](docs/TenantsApi.md#get_tenant_performance) | **GET** /tenants/{tenant_name}/performance | Gets performance metrics of a specific Tenant.
*TenantsApi* | [**get_tenants_space**](docs/TenantsApi.md#get_tenants_space) | **GET** /tenants/{tenant_name}/space | Gets space metrics of a specific Tenant.
*TenantsApi* | [**list_tenants**](docs/TenantsApi.md#list_tenants) | **GET** /tenants | Gets a list of all Tenants.
*TenantsApi* | [**query_tenants**](docs/TenantsApi.md#query_tenants) | **GET** /resources/tenants | Get all Tenants in the org. Provide a filter to search for specific Tenants.
*TenantsApi* | [**update_tenant**](docs/TenantsApi.md#update_tenant) | **PATCH** /tenants/{tenant_name} | Updates a Tenant.
*VolumeSnapshotsApi* | [**query_volume_snapshots**](docs/VolumeSnapshotsApi.md#query_volume_snapshots) | **GET** /resources/volume-snapshots | (Opt-in) Get all Volume Snapshots in the org. Provide a filter to search for specific volume snapshots.
*VolumeSnapshotsApi* | [**query_volume_snapshots**](docs/VolumeSnapshotsApi.md#query_volume_snapshots) | **GET** /resources/volume-snapshots | Get all Volume Snapshots in the org. Provide a filter to search for specific volume snapshots.
*VolumeSnapshotsApi* | [**get_volume_snapshot**](docs/VolumeSnapshotsApi.md#get_volume_snapshot) | **GET** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/snapshots/{snapshot_name}/volume-snapshots/{volume_snapshot_name} | Gets a specific Volume Snapshot.
*VolumeSnapshotsApi* | [**get_volume_snapshot_by_id**](docs/VolumeSnapshotsApi.md#get_volume_snapshot_by_id) | **GET** /resources/volume-snapshots/{volume_snapshot_id} | Gets a specific Volume Snapshot.
*VolumeSnapshotsApi* | [**list_volume_snapshots**](docs/VolumeSnapshotsApi.md#list_volume_snapshots) | **GET** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/snapshots/{snapshot_name}/volume-snapshots | Gets a list of all Volume snapshots in a Snapshot.
Expand All @@ -341,7 +343,7 @@ Class | Method | HTTP request | Description
*VolumesApi* | [**get_volume_performance**](docs/VolumesApi.md#get_volume_performance) | **GET** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/volumes/{volume_name}/performance | (Provider) Gets performance metrics of a specific Volume.
*VolumesApi* | [**get_volume_space**](docs/VolumesApi.md#get_volume_space) | **GET** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/volumes/{volume_name}/space | (Provider) Gets space metrics of a specific Volume.
*VolumesApi* | [**list_volumes**](docs/VolumesApi.md#list_volumes) | **GET** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/volumes | Gets a list of all Volumes.
*VolumesApi* | [**query_volumes**](docs/VolumesApi.md#query_volumes) | **GET** /resources/volumes | (Opt-in) Get all Volumes in the org. Provide a filter to search for specific volumes.
*VolumesApi* | [**query_volumes**](docs/VolumesApi.md#query_volumes) | **GET** /resources/volumes | Get all Volumes in the org. Provide a filter to search for specific volumes.
*VolumesApi* | [**update_volume**](docs/VolumesApi.md#update_volume) | **PATCH** /tenants/{tenant_name}/tenant-spaces/{tenant_space_name}/volumes/{volume_name} | Updates a Volume -- renaming, and resizing it; changing its Storage Class; changing its Placement Group; adding or removing host connections.
*WorkloadPlannerApi* | [**create_placement_recommendation**](docs/WorkloadPlannerApi.md#create_placement_recommendation) | **POST** /workload-planner/placement-recommendations | (Provider) Generates a report on the candidate arrays a given placement group can be placed/migrated to
*WorkloadPlannerApi* | [**get_placement_recommendation**](docs/WorkloadPlannerApi.md#get_placement_recommendation) | **GET** /workload-planner/placement-recommendations/{placement_recommendation_name} | Gets a specific placement recommendation report
Expand Down Expand Up @@ -386,7 +388,6 @@ Class | Method | HTTP request | Description
- [NetworkInterfacePatchEth](docs/NetworkInterfacePatchEth.md)
- [NetworkInterfaceRef](docs/NetworkInterfaceRef.md)
- [NullableBoolean](docs/NullableBoolean.md)
- [NullableMtu](docs/NullableMtu.md)
- [NullableSize](docs/NullableSize.md)
- [NullableString](docs/NullableString.md)
- [NullableStringArray](docs/NullableStringArray.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/ArraysApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.ArraysApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion docs/AvailabilityZonesApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.AvailabilityZonesApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion docs/DefaultApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.DefaultApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion docs/HardwareTypesApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.HardwareTypesApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion docs/HostAccessPoliciesApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.HostAccessPoliciesApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion docs/HostAccessPoliciesPost.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**iqn** | **str** | The iSCSI qualified name (IQN) associated with the host |
**iqn** | **str** | The iSCSI qualified name (IQN) associated with the host | [optional]
**personality** | **str** | The Personality of the Host machine, supported personality: windows, linux, esxi, oracle-vm-server. coming personality: aix, hitachi-vsp, hpux, solaris, vms |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/IdentityManagerApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.IdentityManagerApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion docs/NetworkInterfaceGroupsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.NetworkInterfaceGroupsApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion docs/NetworkInterfacesApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.NetworkInterfacesApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
3 changes: 3 additions & 0 deletions docs/Operation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Name | Type | Description | Notes
**retry_in** | **int** | Recommended time to wait before getting the operation again to observe status change (polling interval). Unit is milliseconds, e.g., 100. |
**error** | [**Error**](Error.md) | | [optional]
**created_at** | **int** | The time that the operation was created, in milliseconds since the Unix epoch. |
**started_at** | **int** | The time that the operation was admitted, in milliseconds since the Unix epoch. |
**ended_at** | **int** | The time that the operation ended with status Succeeded or Failed, in milliseconds since the Unix epoch. |
**update_fields** | **dict(str, str)** | Key/value pairs of the fields this operation is updating, if it is an Update operation. E.g. destroyed:true or size:1048576. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

16 changes: 11 additions & 5 deletions docs/OperationsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.OperationsApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down Expand Up @@ -121,7 +121,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **list_operations**
> OperationList list_operations(x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id, action=action, request_id=request_id, request_collection=request_collection, resource_kind=resource_kind, resource_id=resource_id, status=status, created_after=created_after, filter=filter, sort=sort, limit=limit, offset=offset)
> OperationList list_operations(x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id, action=action, request_id=request_id, request_collection=request_collection, resource_kind=resource_kind, resource_id=resource_id, status=status, created_after=created_after, created_at=created_at, started_at=started_at, ended_at=ended_at, filter=filter, sort=sort, limit=limit, offset=offset)

Gets a list of Operations matching the criteria.

Expand All @@ -147,16 +147,19 @@ request_id = 'request_id_example' # str | The request ID supplied with the reque
request_collection = 'request_collection_example' # str | Default to \\\"/\\\", valid values take the form \\\"/\\\", \\\"/tenants/<tname>\\\", or \\\"/tenants/<tname>/tenant-spaces/<tsname>\\\" (optional)
resource_kind = 'resource_kind_example' # str | The kind of resource on which the Operation was performed. (optional)
resource_id = 'resource_id_example' # str | The ID of resource on which the Operation was performed. (optional)
status = 'status_example' # str | The status of the Operation. Support for comma separated multiple status is deprecated, use IN list instead (optional)
status = 'status_example' # str | The status of the Operation. Support for comma separated multiple status is deprecated, use IN list instead. (optional)
created_after = 'created_after_example' # str | (optional)
created_at = 789 # int | (optional)
started_at = 789 # int | (optional)
ended_at = 789 # int | (optional)
filter = 'filter_example' # str | filter should use expression language for filtering (optional)
sort = 'sort_example' # str | Returns the response items in the order specified. Set sort to the field(s) in the response by which to sort. Sorting can be performed on any of the fields in the response, and the items can be sorted in ascending or descending order by these fields. By default, the response items are sorted in ascending order. To sort in descending order, append the minus sign (-) to the field. A single request can be sorted on multiple fields. For example, you can sort all volumes from largest to smallest volume size, and then sort volumes of the same size in ascending order by volume name. To sort on multiple fields, list the fields as comma-separated values. (E.g. \"sort=size-,name\") (optional)
limit = 56 # int | (optional)
offset = 56 # int | (optional)

try:
# Gets a list of Operations matching the criteria.
api_response = api_instance.list_operations(x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id, action=action, request_id=request_id, request_collection=request_collection, resource_kind=resource_kind, resource_id=resource_id, status=status, created_after=created_after, filter=filter, sort=sort, limit=limit, offset=offset)
api_response = api_instance.list_operations(x_request_id=x_request_id, authorization=authorization, x_correlation_id=x_correlation_id, action=action, request_id=request_id, request_collection=request_collection, resource_kind=resource_kind, resource_id=resource_id, status=status, created_after=created_after, created_at=created_at, started_at=started_at, ended_at=ended_at, filter=filter, sort=sort, limit=limit, offset=offset)
pprint(api_response)
except ApiException as e:
print("Exception when calling OperationsApi->list_operations: %s\n" % e)
Expand All @@ -174,8 +177,11 @@ Name | Type | Description | Notes
**request_collection** | **str**| Default to \\\&quot;/\\\&quot;, valid values take the form \\\&quot;/\\\&quot;, \\\&quot;/tenants/&lt;tname&gt;\\\&quot;, or \\\&quot;/tenants/&lt;tname&gt;/tenant-spaces/&lt;tsname&gt;\\\&quot; | [optional]
**resource_kind** | **str**| The kind of resource on which the Operation was performed. | [optional]
**resource_id** | **str**| The ID of resource on which the Operation was performed. | [optional]
**status** | **str**| The status of the Operation. Support for comma separated multiple status is deprecated, use IN list instead | [optional]
**status** | **str**| The status of the Operation. Support for comma separated multiple status is deprecated, use IN list instead. | [optional]
**created_after** | **str**| | [optional]
**created_at** | **int**| | [optional]
**started_at** | **int**| | [optional]
**ended_at** | **int**| | [optional]
**filter** | **str**| filter should use expression language for filtering | [optional]
**sort** | **str**| Returns the response items in the order specified. Set sort to the field(s) in the response by which to sort. Sorting can be performed on any of the fields in the response, and the items can be sorted in ascending or descending order by these fields. By default, the response items are sorted in ascending order. To sort in descending order, append the minus sign (-) to the field. A single request can be sorted on multiple fields. For example, you can sort all volumes from largest to smallest volume size, and then sort volumes of the same size in ascending order by volume name. To sort on multiple fields, list the fields as comma-separated values. (E.g. \&quot;sort&#x3D;size-,name\&quot;) | [optional]
**limit** | **int**| | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/PlacementGroupsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.PlacementGroupsApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion docs/ProtectionPoliciesApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fusion.ProtectionPoliciesApi

All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.1*
All URIs are relative to *https://api.pure1.purestorage.com/fusion/api/1.2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Loading