Skip to content

Commit 47ca0b0

Browse files
authored
docs(secrets): update format (#68)
1 parent ddc989b commit 47ca0b0

File tree

4 files changed

+298
-302
lines changed

4 files changed

+298
-302
lines changed

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

Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ async def create_secret(
5555
) -> Secret:
5656
"""
5757
Create a Secret containing no versions
58-
:param region: Region to target. If none is passed will use default region from the config
59-
:param project_id: ID of the project containing the Secret
60-
:param name: Name of the Secret
61-
:param tags: List of tags associated to this Secret
62-
:param description: Description of the Secret
58+
:param region: Region to target. If none is passed will use default region from the config.
59+
:param project_id: ID of the project containing the Secret.
60+
:param name: Name of the Secret.
61+
:param tags: List of tags associated to this Secret.
62+
:param description: Description of the Secret.
6363
:return: :class:`Secret <Secret>`
6464
6565
Usage:
@@ -98,8 +98,8 @@ async def get_secret(
9898
) -> Secret:
9999
"""
100100
Get metadata of a Secret
101-
:param region: Region to target. If none is passed will use default region from the config
102-
:param secret_id: ID of the Secret
101+
:param region: Region to target. If none is passed will use default region from the config.
102+
:param secret_id: ID of the Secret.
103103
:return: :class:`Secret <Secret>`
104104
105105
Usage:
@@ -129,8 +129,8 @@ async def get_secret_by_name(
129129
) -> Secret:
130130
"""
131131
Get metadata of a Secret
132-
:param region: Region to target. If none is passed will use default region from the config
133-
:param secret_name: Name of the Secret
132+
:param region: Region to target. If none is passed will use default region from the config.
133+
:param secret_name: Name of the Secret.
134134
:return: :class:`Secret <Secret>`
135135
136136
Usage:
@@ -163,11 +163,11 @@ async def update_secret(
163163
) -> Secret:
164164
"""
165165
Update metadata of a Secret
166-
:param region: Region to target. If none is passed will use default region from the config
167-
:param secret_id: ID of the Secret
168-
:param name: New name of the Secret (optional)
169-
:param tags: New list of tags associated to this Secret (optional)
170-
:param description: Description of the Secret
166+
:param region: Region to target. If none is passed will use default region from the config.
167+
:param secret_id: ID of the Secret.
168+
:param name: New name of the Secret (optional).
169+
:param tags: New list of tags associated to this Secret (optional).
170+
:param description: Description of the Secret.
171171
:return: :class:`Secret <Secret>`
172172
173173
Usage:
@@ -213,11 +213,11 @@ async def list_secrets(
213213
) -> ListSecretsResponse:
214214
"""
215215
List Secrets
216-
:param region: Region to target. If none is passed will use default region from the config
217-
:param organization_id: ID of an organization to filter on (optional)
218-
:param project_id: ID of a project to filter on (optional)
219-
:param name: Secret name to filter on (optional)
220-
:param tags: List of tags to filter on (optional)
216+
:param region: Region to target. If none is passed will use default region from the config.
217+
:param organization_id: ID of an organization to filter on (optional).
218+
:param project_id: ID of a project to filter on (optional).
219+
:param name: Secret name to filter on (optional).
220+
:param tags: List of tags to filter on (optional).
221221
:param order_by:
222222
:param page:
223223
:param page_size:
@@ -265,11 +265,11 @@ async def list_secrets_all(
265265
) -> List[Secret]:
266266
"""
267267
List Secrets
268-
:param region: Region to target. If none is passed will use default region from the config
269-
:param organization_id: ID of an organization to filter on (optional)
270-
:param project_id: ID of a project to filter on (optional)
271-
:param name: Secret name to filter on (optional)
272-
:param tags: List of tags to filter on (optional)
268+
:param region: Region to target. If none is passed will use default region from the config.
269+
:param organization_id: ID of an organization to filter on (optional).
270+
:param project_id: ID of a project to filter on (optional).
271+
:param name: Secret name to filter on (optional).
272+
:param tags: List of tags to filter on (optional).
273273
:param order_by:
274274
:param page:
275275
:param page_size:
@@ -305,8 +305,8 @@ async def delete_secret(
305305
) -> Optional[None]:
306306
"""
307307
Delete a secret
308-
:param region: Region to target. If none is passed will use default region from the config
309-
:param secret_id: ID of the Secret
308+
:param region: Region to target. If none is passed will use default region from the config.
309+
:param secret_id: ID of the Secret.
310310
311311
Usage:
312312
::
@@ -337,10 +337,10 @@ async def create_secret_version(
337337
) -> SecretVersion:
338338
"""
339339
Create a SecretVersion
340-
:param region: Region to target. If none is passed will use default region from the config
341-
:param secret_id: ID of the Secret
342-
:param data: The base64-encoded secret payload of the SecretVersion
343-
:param description: Description of the SecretVersion
340+
:param region: Region to target. If none is passed will use default region from the config.
341+
:param secret_id: ID of the Secret.
342+
:param data: The base64-encoded secret payload of the SecretVersion.
343+
:param description: Description of the SecretVersion.
344344
:return: :class:`SecretVersion <SecretVersion>`
345345
346346
Usage:
@@ -383,9 +383,9 @@ async def get_secret_version(
383383
) -> SecretVersion:
384384
"""
385385
Get metadata of a SecretVersion
386-
:param region: Region to target. If none is passed will use default region from the config
387-
:param secret_id: ID of the Secret
388-
:param revision: Revision of the SecretVersion (may be a number or "latest")
386+
:param region: Region to target. If none is passed will use default region from the config.
387+
:param secret_id: ID of the Secret.
388+
:param revision: Revision of the SecretVersion (may be a number or "latest").
389389
:return: :class:`SecretVersion <SecretVersion>`
390390
391391
Usage:
@@ -420,9 +420,9 @@ async def get_secret_version_by_name(
420420
) -> SecretVersion:
421421
"""
422422
Get metadata of a SecretVersion
423-
:param region: Region to target. If none is passed will use default region from the config
424-
:param secret_name: Name of the Secret
425-
:param revision: Revision of the SecretVersion (may be a number or "latest")
423+
:param region: Region to target. If none is passed will use default region from the config.
424+
:param secret_name: Name of the Secret.
425+
:param revision: Revision of the SecretVersion (may be a number or "latest").
426426
:return: :class:`SecretVersion <SecretVersion>`
427427
428428
Usage:
@@ -458,10 +458,10 @@ async def update_secret_version(
458458
) -> SecretVersion:
459459
"""
460460
Update metadata of a SecretVersion
461-
:param region: Region to target. If none is passed will use default region from the config
462-
:param secret_id: ID of the Secret
463-
:param revision: Revision of the SecretVersion (may be a number or "latest")
464-
:param description: Description of the SecretVersion
461+
:param region: Region to target. If none is passed will use default region from the config.
462+
:param secret_id: ID of the Secret.
463+
:param revision: Revision of the SecretVersion (may be a number or "latest").
464+
:param description: Description of the SecretVersion.
465465
:return: :class:`SecretVersion <SecretVersion>`
466466
467467
Usage:
@@ -507,11 +507,11 @@ async def list_secret_versions(
507507
) -> ListSecretVersionsResponse:
508508
"""
509509
List versions of a secret, not returning any sensitive data
510-
:param region: Region to target. If none is passed will use default region from the config
511-
:param secret_id: ID of the Secret
510+
:param region: Region to target. If none is passed will use default region from the config.
511+
:param secret_id: ID of the Secret.
512512
:param page:
513513
:param page_size:
514-
:param status: Filter results by status
514+
:param status: Filter results by status.
515515
:return: :class:`ListSecretVersionsResponse <ListSecretVersionsResponse>`
516516
517517
Usage:
@@ -549,11 +549,11 @@ async def list_secret_versions_all(
549549
) -> List[SecretVersion]:
550550
"""
551551
List versions of a secret, not returning any sensitive data
552-
:param region: Region to target. If none is passed will use default region from the config
553-
:param secret_id: ID of the Secret
552+
:param region: Region to target. If none is passed will use default region from the config.
553+
:param secret_id: ID of the Secret.
554554
:param page:
555555
:param page_size:
556-
:param status: Filter results by status
556+
:param status: Filter results by status.
557557
:return: :class:`List[ListSecretVersionsResponse] <List[ListSecretVersionsResponse]>`
558558
559559
Usage:
@@ -586,11 +586,11 @@ async def list_secret_versions_by_name(
586586
) -> ListSecretVersionsResponse:
587587
"""
588588
List versions of a secret, not returning any sensitive data
589-
:param region: Region to target. If none is passed will use default region from the config
590-
:param secret_name: Name of the Secret
589+
:param region: Region to target. If none is passed will use default region from the config.
590+
:param secret_name: Name of the Secret.
591591
:param page:
592592
:param page_size:
593-
:param status: Filter results by status
593+
:param status: Filter results by status.
594594
:return: :class:`ListSecretVersionsResponse <ListSecretVersionsResponse>`
595595
596596
Usage:
@@ -628,11 +628,11 @@ async def list_secret_versions_by_name_all(
628628
) -> List[SecretVersion]:
629629
"""
630630
List versions of a secret, not returning any sensitive data
631-
:param region: Region to target. If none is passed will use default region from the config
632-
:param secret_name: Name of the Secret
631+
:param region: Region to target. If none is passed will use default region from the config.
632+
:param secret_name: Name of the Secret.
633633
:param page:
634634
:param page_size:
635-
:param status: Filter results by status
635+
:param status: Filter results by status.
636636
:return: :class:`List[ListSecretVersionsResponse] <List[ListSecretVersionsResponse]>`
637637
638638
Usage:
@@ -663,9 +663,9 @@ async def destroy_secret_version(
663663
) -> SecretVersion:
664664
"""
665665
Destroy a SecretVersion, permanently destroying the sensitive data
666-
:param region: Region to target. If none is passed will use default region from the config
667-
:param secret_id: ID of the Secret
668-
:param revision: Revision of the SecretVersion (may be a number or "latest")
666+
:param region: Region to target. If none is passed will use default region from the config.
667+
:param secret_id: ID of the Secret.
668+
:param revision: Revision of the SecretVersion (may be a number or "latest").
669669
:return: :class:`SecretVersion <SecretVersion>`
670670
671671
Usage:
@@ -700,9 +700,9 @@ async def enable_secret_version(
700700
) -> SecretVersion:
701701
"""
702702
Enable a SecretVersion
703-
:param region: Region to target. If none is passed will use default region from the config
704-
:param secret_id: ID of the Secret
705-
:param revision: Revision of the SecretVersion (may be a number or "latest")
703+
:param region: Region to target. If none is passed will use default region from the config.
704+
:param secret_id: ID of the Secret.
705+
:param revision: Revision of the SecretVersion (may be a number or "latest").
706706
:return: :class:`SecretVersion <SecretVersion>`
707707
708708
Usage:
@@ -737,9 +737,9 @@ async def disable_secret_version(
737737
) -> SecretVersion:
738738
"""
739739
Disable a SecretVersion
740-
:param region: Region to target. If none is passed will use default region from the config
741-
:param secret_id: ID of the Secret
742-
:param revision: Revision of the SecretVersion (may be a number or "latest")
740+
:param region: Region to target. If none is passed will use default region from the config.
741+
:param secret_id: ID of the Secret.
742+
:param revision: Revision of the SecretVersion (may be a number or "latest").
743743
:return: :class:`SecretVersion <SecretVersion>`
744744
745745
Usage:
@@ -774,9 +774,9 @@ async def access_secret_version(
774774
) -> AccessSecretVersionResponse:
775775
"""
776776
Access a SecretVersion, returning the sensitive data
777-
:param region: Region to target. If none is passed will use default region from the config
778-
:param secret_id: ID of the Secret
779-
:param revision: Revision of the SecretVersion (may be a number or "latest")
777+
:param region: Region to target. If none is passed will use default region from the config.
778+
:param secret_id: ID of the Secret.
779+
:param revision: Revision of the SecretVersion (may be a number or "latest").
780780
:return: :class:`AccessSecretVersionResponse <AccessSecretVersionResponse>`
781781
782782
Usage:
@@ -811,9 +811,9 @@ async def access_secret_version_by_name(
811811
) -> AccessSecretVersionResponse:
812812
"""
813813
Access a SecretVersion, returning the sensitive data
814-
:param region: Region to target. If none is passed will use default region from the config
815-
:param secret_name: Name of the Secret
816-
:param revision: Revision of the SecretVersion (may be a number or "latest")
814+
:param region: Region to target. If none is passed will use default region from the config.
815+
:param secret_name: Name of the Secret.
816+
:param revision: Revision of the SecretVersion (may be a number or "latest").
817817
:return: :class:`AccessSecretVersionResponse <AccessSecretVersionResponse>`
818818
819819
Usage:

0 commit comments

Comments
 (0)