Skip to content

Commit 4cf8089

Browse files
authored
docs(iam): update with new guidelines (#152)
1 parent bf10589 commit 4cf8089

File tree

4 files changed

+94
-94
lines changed

4 files changed

+94
-94
lines changed

scaleway-async/scaleway_async/iam/v1alpha1/api.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async def list_ssh_keys(
124124
:param organization_id: Filter by Organization ID.
125125
:param name: Name of group to find.
126126
:param project_id: Filter by Project ID.
127-
:param disabled: Whether to include disabled SSH keys or not.
127+
:param disabled: Defines whether to include disabled SSH keys or not.
128128
:return: :class:`ListSSHKeysResponse <ListSSHKeysResponse>`
129129
130130
Usage:
@@ -171,7 +171,7 @@ async def list_ssh_keys_all(
171171
:param organization_id: Filter by Organization ID.
172172
:param name: Name of group to find.
173173
:param project_id: Filter by Project ID.
174-
:param disabled: Whether to include disabled SSH keys or not.
174+
:param disabled: Defines whether to include disabled SSH keys or not.
175175
:return: :class:`List[ListSSHKeysResponse] <List[ListSSHKeysResponse]>`
176176
177177
Usage:
@@ -205,7 +205,7 @@ async def create_ssh_key(
205205
"""
206206
Create an SSH key.
207207
Add a new SSH key to a Scaleway Project. You must specify the `name`, `public_key` and `project_id`.
208-
:param name: The name of the SSH key. Max length is 1000.
208+
:param name: Name of the SSH key. Max length is 1000.
209209
:param public_key: SSH public key. Currently only the ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported. Max length is 65000.
210210
:param project_id: Project the resource is attributed to.
211211
:return: :class:`SSHKey <SSHKey>`
@@ -240,7 +240,7 @@ async def get_ssh_key(
240240
"""
241241
Get an SSH key.
242242
Retrieve information about a given SSH key, specified by the `ssh_key_id` parameter. The SSH key's full details, including `id`, `name`, `public_key`, and `project_id` are returned in the response.
243-
:param ssh_key_id: The ID of the SSH key.
243+
:param ssh_key_id: ID of the SSH key.
244244
:return: :class:`SSHKey <SSHKey>`
245245
246246
Usage:
@@ -481,7 +481,7 @@ async def list_applications(
481481
:param page: Page number. Value must be greater than 1.
482482
:param name: Name of the application to filter.
483483
:param organization_id: ID of the Organization to filter.
484-
:param editable: Whether to filter out editable applications or not.
484+
:param editable: Defines whether to filter out editable applications or not.
485485
:param application_ids: Filter by list of IDs.
486486
:return: :class:`ListApplicationsResponse <ListApplicationsResponse>`
487487
@@ -528,7 +528,7 @@ async def list_applications_all(
528528
:param page: Page number. Value must be greater than 1.
529529
:param name: Name of the application to filter.
530530
:param organization_id: ID of the Organization to filter.
531-
:param editable: Whether to filter out editable applications or not.
531+
:param editable: Defines whether to filter out editable applications or not.
532532
:param application_ids: Filter by list of IDs.
533533
:return: :class:`List[ListApplicationsResponse] <List[ListApplicationsResponse]>`
534534
@@ -1058,11 +1058,11 @@ async def list_policies(
10581058
:param page_size: Number of results per page. Value must be between 1 and 100.
10591059
:param page: Page number. Value must be greater than 1.
10601060
:param organization_id: ID of the Organization to filter.
1061-
:param editable: Whether or not filter out editable policies.
1062-
:param user_ids: Whether or not to filter by list of user IDs.
1063-
:param group_ids: Whether or not to filter by list of group IDs.
1061+
:param editable: Defines whether or not filter out editable policies.
1062+
:param user_ids: Defines whether or not to filter by list of user IDs.
1063+
:param group_ids: Defines whether or not to filter by list of group IDs.
10641064
:param application_ids: Filter by a list of application IDs.
1065-
:param no_principal: Whether or not the policy is attributed to a principal.
1065+
:param no_principal: Defines whether or not the policy is attributed to a principal.
10661066
:param policy_name: Name of the policy to fetch.
10671067
:return: :class:`ListPoliciesResponse <ListPoliciesResponse>`
10681068
@@ -1114,11 +1114,11 @@ async def list_policies_all(
11141114
:param page_size: Number of results per page. Value must be between 1 and 100.
11151115
:param page: Page number. Value must be greater than 1.
11161116
:param organization_id: ID of the Organization to filter.
1117-
:param editable: Whether or not filter out editable policies.
1118-
:param user_ids: Whether or not to filter by list of user IDs.
1119-
:param group_ids: Whether or not to filter by list of group IDs.
1117+
:param editable: Defines whether or not filter out editable policies.
1118+
:param user_ids: Defines whether or not to filter by list of user IDs.
1119+
:param group_ids: Defines whether or not to filter by list of group IDs.
11201120
:param application_ids: Filter by a list of application IDs.
1121-
:param no_principal: Whether or not the policy is attributed to a principal.
1121+
:param no_principal: Defines whether or not the policy is attributed to a principal.
11221122
:param policy_name: Name of the policy to fetch.
11231123
:return: :class:`List[ListPoliciesResponse] <List[ListPoliciesResponse]>`
11241124
@@ -1174,7 +1174,7 @@ async def create_policy(
11741174
:param application_id: ID of application attributed to the policy.
11751175
11761176
One-of ('principal'): at most one of 'user_id', 'group_id', 'application_id', 'no_principal' could be set.
1177-
:param no_principal: Whether or not a policy is attributed to a principal.
1177+
:param no_principal: Defines whether or not a policy is attributed to a principal.
11781178
11791179
One-of ('principal'): at most one of 'user_id', 'group_id', 'application_id', 'no_principal' could be set.
11801180
:return: :class:`Policy <Policy>`
@@ -1259,7 +1259,7 @@ async def update_policy(
12591259
:param application_id: New ID of application attributed to the policy.
12601260
12611261
One-of ('principal'): at most one of 'user_id', 'group_id', 'application_id', 'no_principal' could be set.
1262-
:param no_principal: Whether or not the policy is attributed to a principal.
1262+
:param no_principal: Defines whether or not the policy is attributed to a principal.
12631263
12641264
One-of ('principal'): at most one of 'user_id', 'group_id', 'application_id', 'no_principal' could be set.
12651265
:return: :class:`Policy <Policy>`
@@ -1550,8 +1550,8 @@ async def list_api_keys(
15501550
:param user_id: ID of user that bears the API key.
15511551
15521552
One-of ('bearer'): at most one of 'application_id', 'user_id' could be set.
1553-
:param editable: Whether to filter out editable API keys or not.
1554-
:param expired: Whether to filter out expired API keys or not.
1553+
:param editable: Defines whether to filter out editable API keys or not.
1554+
:param expired: Defines whether to filter out expired API keys or not.
15551555
:param access_key: Filter by access key.
15561556
:param description: Filter by description.
15571557
:param bearer_id: Filter by bearer ID.
@@ -1620,8 +1620,8 @@ async def list_api_keys_all(
16201620
:param user_id: ID of user that bears the API key.
16211621
16221622
One-of ('bearer'): at most one of 'application_id', 'user_id' could be set.
1623-
:param editable: Whether to filter out editable API keys or not.
1624-
:param expired: Whether to filter out expired API keys or not.
1623+
:param editable: Defines whether to filter out editable API keys or not.
1624+
:param expired: Defines whether to filter out expired API keys or not.
16251625
:param access_key: Filter by access key.
16261626
:param description: Filter by description.
16271627
:param bearer_id: Filter by bearer ID.
@@ -1673,8 +1673,8 @@ async def create_api_key(
16731673
16741674
One-of ('bearer'): at most one of 'application_id', 'user_id' could be set.
16751675
:param expires_at: Expiration date of the API key.
1676-
:param default_project_id: The default Project ID to use with Object Storage.
1677-
:param description: The description of the API key (max length is 200 characters).
1676+
:param default_project_id: Default Project ID to use with Object Storage.
1677+
:param description: Description of the API key (max length is 200 characters).
16781678
:return: :class:`APIKey <APIKey>`
16791679
16801680
Usage:
@@ -1739,8 +1739,8 @@ async def update_api_key(
17391739
Update an API key.
17401740
Update the parameters of an API key, including `default_project_id` and `description`.
17411741
:param access_key: Access key to update.
1742-
:param default_project_id: The new default Project ID to set.
1743-
:param description: The new description to update.
1742+
:param default_project_id: New default Project ID to set.
1743+
:param description: New description to update.
17441744
:return: :class:`APIKey <APIKey>`
17451745
17461746
Usage:

scaleway-async/scaleway_async/iam/v1alpha1/types.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ class APIKey:
199199

200200
default_project_id: str
201201
"""
202-
The default Project ID specified for this API key.
202+
Default Project ID specified for this API key.
203203
"""
204204

205205
editable: bool
206206
"""
207-
Whether or not the API key is editable.
207+
Defines whether or not the API key is editable.
208208
"""
209209

210210
creation_ip: str
@@ -251,7 +251,7 @@ class Application:
251251

252252
editable: bool
253253
"""
254-
Whether or not the application is editable.
254+
Defines whether or not the application is editable.
255255
"""
256256

257257
nb_api_keys: int
@@ -584,7 +584,7 @@ class Policy:
584584

585585
editable: bool
586586
"""
587-
Whether or not a policy is editable.
587+
Defines whether or not a policy is editable.
588588
"""
589589

590590
nb_rules: int
@@ -625,7 +625,7 @@ class Policy:
625625

626626
no_principal: Optional[bool]
627627
"""
628-
Whether or not a policy is attributed to a principal.
628+
Defines whether or not a policy is attributed to a principal.
629629
630630
One-of ('principal'): at most one of 'user_id', 'group_id', 'application_id', 'no_principal' could be set.
631631
"""
@@ -651,7 +651,7 @@ class Quotum:
651651

652652
unlimited: Optional[bool]
653653
"""
654-
Whether or not the quota is unlimited.
654+
Defines whether or not the quota is unlimited.
655655
656656
One-of ('value'): at most one of 'limit', 'unlimited' could be set.
657657
"""
@@ -849,7 +849,7 @@ class User:
849849

850850
mfa: bool
851851
"""
852-
Whether MFA is enabled.
852+
Defines whether MFA is enabled.
853853
"""
854854

855855

@@ -887,15 +887,15 @@ class ListSSHKeysRequest:
887887

888888
disabled: Optional[bool]
889889
"""
890-
Whether to include disabled SSH keys or not.
890+
Defines whether to include disabled SSH keys or not.
891891
"""
892892

893893

894894
@dataclass
895895
class CreateSSHKeyRequest:
896896
name: Optional[str]
897897
"""
898-
The name of the SSH key. Max length is 1000.
898+
Name of the SSH key. Max length is 1000.
899899
"""
900900

901901
public_key: str
@@ -913,7 +913,7 @@ class CreateSSHKeyRequest:
913913
class GetSSHKeyRequest:
914914
ssh_key_id: str
915915
"""
916-
The ID of the SSH key.
916+
ID of the SSH key.
917917
"""
918918

919919

@@ -1015,7 +1015,7 @@ class ListApplicationsRequest:
10151015

10161016
editable: Optional[bool]
10171017
"""
1018-
Whether to filter out editable applications or not.
1018+
Defines whether to filter out editable applications or not.
10191019
"""
10201020

10211021
application_ids: Optional[List[str]]
@@ -1248,17 +1248,17 @@ class ListPoliciesRequest:
12481248

12491249
editable: Optional[bool]
12501250
"""
1251-
Whether or not filter out editable policies.
1251+
Defines whether or not filter out editable policies.
12521252
"""
12531253

12541254
user_ids: Optional[List[str]]
12551255
"""
1256-
Whether or not to filter by list of user IDs.
1256+
Defines whether or not to filter by list of user IDs.
12571257
"""
12581258

12591259
group_ids: Optional[List[str]]
12601260
"""
1261-
Whether or not to filter by list of group IDs.
1261+
Defines whether or not to filter by list of group IDs.
12621262
"""
12631263

12641264
application_ids: Optional[List[str]]
@@ -1268,7 +1268,7 @@ class ListPoliciesRequest:
12681268

12691269
no_principal: Optional[bool]
12701270
"""
1271-
Whether or not the policy is attributed to a principal.
1271+
Defines whether or not the policy is attributed to a principal.
12721272
"""
12731273

12741274
policy_name: Optional[str]
@@ -1322,7 +1322,7 @@ class CreatePolicyRequest:
13221322

13231323
no_principal: Optional[bool]
13241324
"""
1325-
Whether or not a policy is attributed to a principal.
1325+
Defines whether or not a policy is attributed to a principal.
13261326
13271327
One-of ('principal'): at most one of 'user_id', 'group_id', 'application_id', 'no_principal' could be set.
13281328
"""
@@ -1376,7 +1376,7 @@ class UpdatePolicyRequest:
13761376

13771377
no_principal: Optional[bool]
13781378
"""
1379-
Whether or not the policy is attributed to a principal.
1379+
Defines whether or not the policy is attributed to a principal.
13801380
13811381
One-of ('principal'): at most one of 'user_id', 'group_id', 'application_id', 'no_principal' could be set.
13821382
"""
@@ -1489,12 +1489,12 @@ class ListAPIKeysRequest:
14891489

14901490
editable: Optional[bool]
14911491
"""
1492-
Whether to filter out editable API keys or not.
1492+
Defines whether to filter out editable API keys or not.
14931493
"""
14941494

14951495
expired: Optional[bool]
14961496
"""
1497-
Whether to filter out expired API keys or not.
1497+
Defines whether to filter out expired API keys or not.
14981498
"""
14991499

15001500
access_key: Optional[str]
@@ -1541,12 +1541,12 @@ class CreateAPIKeyRequest:
15411541

15421542
default_project_id: Optional[str]
15431543
"""
1544-
The default Project ID to use with Object Storage.
1544+
Default Project ID to use with Object Storage.
15451545
"""
15461546

15471547
description: str
15481548
"""
1549-
The description of the API key (max length is 200 characters).
1549+
Description of the API key (max length is 200 characters).
15501550
"""
15511551

15521552

@@ -1567,12 +1567,12 @@ class UpdateAPIKeyRequest:
15671567

15681568
default_project_id: Optional[str]
15691569
"""
1570-
The new default Project ID to set.
1570+
New default Project ID to set.
15711571
"""
15721572

15731573
description: Optional[str]
15741574
"""
1575-
The new description to update.
1575+
New description to update.
15761576
"""
15771577

15781578

0 commit comments

Comments
 (0)