Skip to content

Commit 9afa33d

Browse files
fa-ui-botmtillajev
authored andcommitted
Release 1.67.1 Added REST Pure1-1.5
1 parent 612c17d commit 9afa33d

File tree

5,796 files changed

+436925
-330828
lines changed

Some content is hidden

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

5,796 files changed

+436925
-330828
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "py-pure-client"
3-
version = "1.67.0"
3+
version = "1.67.1"
44
description = "Pure Storage Python clients for FlashArray, FlashBlade, and Pure1 APIs"
55
authors = [
66
{ name = "Pure Storage", email = "support@purestorage.com" }

pypureclient/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__name__ = 'py-pure-client'
2-
__version__ = '1.67.0'
2+
__version__ = '1.67.1'
33
__default_user_agent__ = 'pure/{}/{}'.format(__name__, __version__)

pypureclient/flasharray/FA_2_0/api/authorization_api.py

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from pypureclient.flasharray.FA_2_0.models.api_version_response import ApiVersionResponse
2727
from pypureclient.flasharray.FA_2_0.models.oauth_token_response import OauthTokenResponse
2828
from pypureclient.flasharray.FA_2_0.models.username_response import UsernameResponse
29+
from typing import Optional
2930
from pypureclient.flasharray.FA_2_0.api_client import ApiClient as _TransportApiClient
3031
from pypureclient.flasharray.FA_2_0.api_response import ApiResponse
3132
from pypureclient.flasharray.FA_2_0.exceptions import ( # noqa: F401
@@ -50,14 +51,9 @@ def api20_login_post_with_http_info(
5051
x_request_id: Annotated[Optional[StrictStr], Field(description="Supplied by client during request or generated by server.")] = None,
5152
**kwargs
5253
) -> ApiResponse: # noqa: E501
53-
"""POST login (placeholder) # noqa: E501
54-
55-
Exchange an API token for a session token. # noqa: E501
56-
This method makes a synchronous HTTP request by default. To make an
57-
asynchronous HTTP request, please pass async_req=True
54+
"""POST login (placeholder)
5855
59-
>>> thread = api.api20_login_post_with_http_info(api_token, x_request_id, async_req=True)
60-
>>> result = thread.get()
56+
Exchange an API token for a session token.
6157
6258
:param api_token: API token for a user.
6359
:type api_token: str
@@ -170,14 +166,9 @@ def api20_logout_post_with_http_info(
170166
x_request_id: Annotated[Optional[StrictStr], Field(description="Supplied by client during request or generated by server.")] = None,
171167
**kwargs
172168
) -> ApiResponse: # noqa: E501
173-
"""POST logout (placeholder) # noqa: E501
174-
175-
Invalidate a session token. # noqa: E501
176-
This method makes a synchronous HTTP request by default. To make an
177-
asynchronous HTTP request, please pass async_req=True
169+
"""POST logout (placeholder)
178170
179-
>>> thread = api.api20_logout_post_with_http_info(x_auth_token, x_request_id, async_req=True)
180-
>>> result = thread.get()
171+
Invalidate a session token.
181172
182173
:param x_auth_token: Session token for a user.
183174
:type x_auth_token: str
@@ -283,14 +274,9 @@ def api_api_version_get_with_http_info(
283274
x_request_id: Annotated[Optional[StrictStr], Field(description="Supplied by client during request or generated by server.")] = None,
284275
**kwargs
285276
) -> ApiResponse: # noqa: E501
286-
"""List available API versions # noqa: E501
277+
"""List available API versions
287278
288-
Returns a list of available API versions. No authentication is required to access this endpoint. # noqa: E501
289-
This method makes a synchronous HTTP request by default. To make an
290-
asynchronous HTTP request, please pass async_req=True
291-
292-
>>> thread = api.api_api_version_get_with_http_info(x_request_id, async_req=True)
293-
>>> result = thread.get()
279+
Returns a list of available API versions. No authentication is required to access this endpoint.
294280
295281
:param x_request_id: Supplied by client during request or generated by server.
296282
:type x_request_id: str
@@ -399,14 +385,9 @@ def oauth210_token_post_with_http_info(
399385
x_request_id: Annotated[Optional[StrictStr], Field(description="Supplied by client during request or generated by server.")] = None,
400386
**kwargs
401387
) -> ApiResponse: # noqa: E501
402-
"""Get access token # noqa: E501
403-
404-
Exchanges an ID Token for an OAuth 2.0 access token. # noqa: E501
405-
This method makes a synchronous HTTP request by default. To make an
406-
asynchronous HTTP request, please pass async_req=True
388+
"""Get access token
407389
408-
>>> thread = api.oauth210_token_post_with_http_info(grant_type, subject_token, subject_token_type, x_request_id, async_req=True)
409-
>>> result = thread.get()
390+
Exchanges an ID Token for an OAuth 2.0 access token.
410391
411392
:param grant_type: The method by which the access token will be obtained. The Pure Storage REST API supports the OAuth 2.0 \\\"token exchange\\\" grant type, which indicates that a token exchange is being performed. Set `grant_type` to `urn:ietf:params:oauth:grant-type:token-exchange`. (required)
412393
:type grant_type: str

pypureclient/flasharray/FA_2_0/api/connections_api.py

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from pypureclient.flasharray.FA_2_0.models.connection_get_response import ConnectionGetResponse
2727
from pypureclient.flasharray.FA_2_0.models.connection_post import ConnectionPost
2828
from pypureclient.flasharray.FA_2_0.models.connection_response import ConnectionResponse
29+
from typing import Optional
2930
from pypureclient.flasharray.FA_2_0.api_client import ApiClient as _TransportApiClient
3031
from pypureclient.flasharray.FA_2_0.api_response import ApiResponse
3132
from pypureclient.flasharray.FA_2_0.exceptions import ( # noqa: F401
@@ -53,14 +54,9 @@ def api20_connections_delete_with_http_info(
5354
volume_names: Annotated[Optional[conlist(StrictStr)], Field(description="Performs the operation on the volume specified. Enter multiple names in comma-separated format. For example, `vol01,vol02`. A request cannot include a mix of multiple objects with multiple names. For example, a request cannot include a mix of multiple volume names and host names; instead, at least one of the objects (e.g., `volume_names`) must be set to only one name (e.g., `vol01`).")] = None,
5455
**kwargs
5556
) -> ApiResponse: # noqa: E501
56-
"""Break a connection between a volume and its host or host group # noqa: E501
57-
58-
Break the connection between a volume and its associated host or host group. The `volume_names` and `host_names` or `host_group_names` query parameters are required. # noqa: E501
59-
This method makes a synchronous HTTP request by default. To make an
60-
asynchronous HTTP request, please pass async_req=True
57+
"""Break a connection between a volume and its host or host group
6158
62-
>>> thread = api.api20_connections_delete_with_http_info(authorization, x_request_id, host_group_names, host_names, volume_names, async_req=True)
63-
>>> result = thread.get()
59+
Break the connection between a volume and its associated host or host group. The `volume_names` and `host_names` or `host_group_names` query parameters are required.
6460
6561
:param authorization: Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`)
6662
:type authorization: str
@@ -197,14 +193,9 @@ def api20_connections_get_with_http_info(
197193
volume_names: Annotated[Optional[conlist(StrictStr)], Field(description="Performs the operation on the volume specified. Enter multiple names in comma-separated format. For example, `vol01,vol02`. A request cannot include a mix of multiple objects with multiple names. For example, a request cannot include a mix of multiple volume names and host names; instead, at least one of the objects (e.g., `volume_names`) must be set to only one name (e.g., `vol01`).")] = None,
198194
**kwargs
199195
) -> ApiResponse: # noqa: E501
200-
"""List volume connections # noqa: E501
196+
"""List volume connections
201197
202-
Return a list of connections between a volume and its hosts and host groups, and the LUNs used by the associated hosts to address these volumes. # noqa: E501
203-
This method makes a synchronous HTTP request by default. To make an
204-
asynchronous HTTP request, please pass async_req=True
205-
206-
>>> thread = api.api20_connections_get_with_http_info(authorization, x_request_id, filter, host_group_names, host_names, limit, offset, protocol_endpoint_names, sort, total_item_count, volume_names, async_req=True)
207-
>>> result = thread.get()
198+
Return a list of connections between a volume and its hosts and host groups, and the LUNs used by the associated hosts to address these volumes.
208199
209200
:param authorization: Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`)
210201
:type authorization: str
@@ -380,14 +371,9 @@ def api20_connections_post_with_http_info(
380371
connection: Optional[ConnectionPost] = None,
381372
**kwargs
382373
) -> ApiResponse: # noqa: E501
383-
"""Create a connection between a volume and host or host group # noqa: E501
384-
385-
Create a connection between a volume and a host or host group. The `volume_names` and `host_names` or `host_group_names` query parameters are required. # noqa: E501
386-
This method makes a synchronous HTTP request by default. To make an
387-
asynchronous HTTP request, please pass async_req=True
374+
"""Create a connection between a volume and host or host group
388375
389-
>>> thread = api.api20_connections_post_with_http_info(authorization, x_request_id, host_group_names, host_names, volume_names, connection, async_req=True)
390-
>>> result = thread.get()
376+
Create a connection between a volume and a host or host group. The `volume_names` and `host_names` or `host_group_names` query parameters are required.
391377
392378
:param authorization: Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`)
393379
:type authorization: str

pypureclient/flasharray/FA_2_0/api/host_groups_api.py

Lines changed: 15 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from pypureclient.flasharray.FA_2_0.models.member_no_id_all_get_response import MemberNoIdAllGetResponse
3030
from pypureclient.flasharray.FA_2_0.models.resource_performance_no_id_by_array_get_response import ResourcePerformanceNoIdByArrayGetResponse
3131
from pypureclient.flasharray.FA_2_0.models.resource_performance_no_id_get_response import ResourcePerformanceNoIdGetResponse
32+
from typing import Optional
3233
from pypureclient.flasharray.FA_2_0.api_client import ApiClient as _TransportApiClient
3334
from pypureclient.flasharray.FA_2_0.api_response import ApiResponse
3435
from pypureclient.flasharray.FA_2_0.exceptions import ( # noqa: F401
@@ -54,14 +55,9 @@ def api20_host_groups_delete_with_http_info(
5455
names: Annotated[Optional[conlist(StrictStr)], Field(description="Performs the operation on the unique name specified. Enter multiple names in comma-separated format. For example, `name01,name02`.")] = None,
5556
**kwargs
5657
) -> ApiResponse: # noqa: E501
57-
"""Delete a host group # noqa: E501
58-
59-
Delete a host group. The `names` query parameter is required. # noqa: E501
60-
This method makes a synchronous HTTP request by default. To make an
61-
asynchronous HTTP request, please pass async_req=True
58+
"""Delete a host group
6259
63-
>>> thread = api.api20_host_groups_delete_with_http_info(authorization, x_request_id, names, async_req=True)
64-
>>> result = thread.get()
60+
Delete a host group. The `names` query parameter is required.
6561
6662
:param authorization: Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`)
6763
:type authorization: str
@@ -181,14 +177,9 @@ def api20_host_groups_get_with_http_info(
181177
total_item_count: Annotated[Optional[StrictBool], Field(description="If set to `true`, the `total_item_count` matching the specified query parameters is calculated and returned in the response. If set to `false`, the `total_item_count` is `null` in the response. This may speed up queries where the `total_item_count` is large. If not specified, defaults to `false`.")] = None,
182178
**kwargs
183179
) -> ApiResponse: # noqa: E501
184-
"""List host groups # noqa: E501
180+
"""List host groups
185181
186-
Return a list of host groups. # noqa: E501
187-
This method makes a synchronous HTTP request by default. To make an
188-
asynchronous HTTP request, please pass async_req=True
189-
190-
>>> thread = api.api20_host_groups_get_with_http_info(authorization, x_request_id, filter, limit, names, offset, sort, total_item_count, async_req=True)
191-
>>> result = thread.get()
182+
Return a list of host groups.
192183
193184
:param authorization: Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`)
194185
:type authorization: str
@@ -346,14 +337,9 @@ def api20_host_groups_hosts_get_with_http_info(
346337
total_item_count: Annotated[Optional[StrictBool], Field(description="If set to `true`, the `total_item_count` matching the specified query parameters is calculated and returned in the response. If set to `false`, the `total_item_count` is `null` in the response. This may speed up queries where the `total_item_count` is large. If not specified, defaults to `false`.")] = None,
347338
**kwargs
348339
) -> ApiResponse: # noqa: E501
349-
"""List host groups associated with hosts # noqa: E501
350-
351-
Returns a list of host groups that are associated with hosts. # noqa: E501
352-
This method makes a synchronous HTTP request by default. To make an
353-
asynchronous HTTP request, please pass async_req=True
340+
"""List host groups associated with hosts
354341
355-
>>> thread = api.api20_host_groups_hosts_get_with_http_info(authorization, x_request_id, filter, group_names, limit, member_names, offset, sort, total_item_count, async_req=True)
356-
>>> result = thread.get()
342+
Returns a list of host groups that are associated with hosts.
357343
358344
:param authorization: Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`)
359345
:type authorization: str
@@ -513,14 +499,9 @@ def api20_host_groups_patch_with_http_info(
513499
names: Annotated[Optional[conlist(StrictStr)], Field(description="Performs the operation on the unique name specified. Enter multiple names in comma-separated format. For example, `name01,name02`.")] = None,
514500
**kwargs
515501
) -> ApiResponse: # noqa: E501
516-
"""Manage a host group # noqa: E501
502+
"""Manage a host group
517503
518-
Manage a host group. The `names` query parameter is required. # noqa: E501
519-
This method makes a synchronous HTTP request by default. To make an
520-
asynchronous HTTP request, please pass async_req=True
521-
522-
>>> thread = api.api20_host_groups_patch_with_http_info(host_group, authorization, x_request_id, names, async_req=True)
523-
>>> result = thread.get()
504+
Manage a host group. The `names` query parameter is required.
524505
525506
:param host_group: (required)
526507
:type host_group: HostGroupPatch
@@ -660,14 +641,9 @@ def api20_host_groups_performance_by_array_get_with_http_info(
660641
total_only: Annotated[Optional[StrictBool], Field(description="If set to `true`, returns the aggregate value of all items after filtering. Where it makes more sense, the average value is displayed instead. The values are displayed for each name where meaningful. If `total_only=true`, the `items` list will be empty.")] = None,
661642
**kwargs
662643
) -> ApiResponse: # noqa: E501
663-
"""List host group performance data by array # noqa: E501
664-
665-
Return real-time and historical performance data, real-time latency data, and average I/O size data. The data returned is for each volume that is connected to a host group on the current array and for each volume that is connected to a host group on any remote arrays that are visible to the current array. The data is displayed as a total across all host groups on each array and by individual host group. # noqa: E501
666-
This method makes a synchronous HTTP request by default. To make an
667-
asynchronous HTTP request, please pass async_req=True
644+
"""List host group performance data by array
668645
669-
>>> thread = api.api20_host_groups_performance_by_array_get_with_http_info(authorization, x_request_id, filter, limit, names, offset, sort, total_item_count, total_only, async_req=True)
670-
>>> result = thread.get()
646+
Return real-time and historical performance data, real-time latency data, and average I/O size data. The data returned is for each volume that is connected to a host group on the current array and for each volume that is connected to a host group on any remote arrays that are visible to the current array. The data is displayed as a total across all host groups on each array and by individual host group.
671647
672648
:param authorization: Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`)
673649
:type authorization: str
@@ -831,14 +807,9 @@ def api20_host_groups_performance_get_with_http_info(
831807
total_only: Annotated[Optional[StrictBool], Field(description="If set to `true`, returns the aggregate value of all items after filtering. Where it makes more sense, the average value is displayed instead. The values are displayed for each name where meaningful. If `total_only=true`, the `items` list will be empty.")] = None,
832808
**kwargs
833809
) -> ApiResponse: # noqa: E501
834-
"""List host group performance data # noqa: E501
810+
"""List host group performance data
835811
836-
Return real-time and historical performance data, real-time latency data, and average I/O sizes across all volumes, displayed both by host group and as a total across all host groups. # noqa: E501
837-
This method makes a synchronous HTTP request by default. To make an
838-
asynchronous HTTP request, please pass async_req=True
839-
840-
>>> thread = api.api20_host_groups_performance_get_with_http_info(authorization, x_request_id, filter, limit, names, offset, sort, total_item_count, total_only, async_req=True)
841-
>>> result = thread.get()
812+
Return real-time and historical performance data, real-time latency data, and average I/O sizes across all volumes, displayed both by host group and as a total across all host groups.
842813
843814
:param authorization: Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`)
844815
:type authorization: str
@@ -996,14 +967,9 @@ def api20_host_groups_post_with_http_info(
996967
names: Annotated[Optional[conlist(StrictStr)], Field(description="Performs the operation on the unique name specified. Enter multiple names in comma-separated format. For example, `name01,name02`.")] = None,
997968
**kwargs
998969
) -> ApiResponse: # noqa: E501
999-
"""Create a host group # noqa: E501
1000-
1001-
Create a host group. The `names` query parameter is required. # noqa: E501
1002-
This method makes a synchronous HTTP request by default. To make an
1003-
asynchronous HTTP request, please pass async_req=True
970+
"""Create a host group
1004971
1005-
>>> thread = api.api20_host_groups_post_with_http_info(authorization, x_request_id, names, async_req=True)
1006-
>>> result = thread.get()
972+
Create a host group. The `names` query parameter is required.
1007973
1008974
:param authorization: Access token (in JWT format) required to use any API endpoint (except `/oauth2`, `/login`, and `/logout`)
1009975
:type authorization: str

0 commit comments

Comments
 (0)