You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param disable_previous: Disable the previous secret version.
409
409
Optional. If there is no previous version or if the previous version was already disabled, does nothing.
410
-
:param password_generation: Options to generate a password.
411
-
Optional. If specified, a random password will be generated. The `data` and `data_crc32` fields must be empty. By default, the generator will use upper and lower case letters, and digits. This behavior can be tuned using the generation parameters.
412
-
413
-
One-of ('_password_generation'): at most one of 'password_generation' could be set.
414
-
:param data_crc32: The CRC32 checksum of the data as a base-10 integer.
415
-
Optional. If specified, Secret Manager will verify the integrity of the data received against the given CRC32. An error is returned if the CRC32 does not match. Otherwise, the CRC32 will be stored and returned along with the SecretVersion on futur accesses.
410
+
:param data_crc32: (Optional.) The CRC32 checksum of the data as a base-10 integer.
411
+
If specified, Secret Manager will verify the integrity of the data received against the given CRC32 checksum. An error is returned if the CRC32 does not match. If, however, the CRC32 matches, it will be stored and returned along with the SecretVersion on future access requests.
Generate a password for the given secret specified by the `region` and `secret_id` parameters. This will also create a new version of the secret that will store the password.
463
+
:param region: Region to target. If none is passed will use default region from the config.
464
+
:param secret_id: ID of the secret.
465
+
:param description: Description of the version.
466
+
:param disable_previous: (Optional.) Disable the previous secret version.
467
+
This has no effect if there is no previous version or if the previous version was already disabled.
468
+
:param length: Length of the password to generate (between 1 and 1024 characters).
469
+
:param no_lowercase_letters: (Optional.) Exclude lower case letters by default in the password character set.
470
+
:param no_uppercase_letters: (Optional.) Exclude upper case letters by default in the password character set.
471
+
:param no_digits: (Optional.) Exclude digits by default in the password character set.
472
+
:param additional_chars: (Optional.) Additional ASCII characters to be included in the password character set.
Optional. If specified, a random password will be generated. The `data` and `data_crc32` fields must be empty. By default, the generator will use upper and lower case letters, and digits. This behavior can be tuned using the generation parameters.
435
-
436
-
One-of ('_password_generation'): at most one of 'password_generation' could be set.
433
+
(Optional.) The CRC32 checksum of the data as a base-10 integer.
434
+
If specified, Secret Manager will verify the integrity of the data received against the given CRC32 checksum. An error is returned if the CRC32 does not match. If, however, the CRC32 matches, it will be stored and returned along with the SecretVersion on future access requests.
437
435
"""
438
436
439
-
data_crc32: Optional[int]
437
+
438
+
@dataclass
439
+
classGeneratePasswordRequest:
440
+
region: Optional[Region]
440
441
"""
441
-
The CRC32 checksum of the data as a base-10 integer.
442
-
Optional. If specified, Secret Manager will verify the integrity of the data received against the given CRC32. An error is returned if the CRC32 does not match. Otherwise, the CRC32 will be stored and returned along with the SecretVersion on futur accesses.
442
+
Region to target. If none is passed will use default region from the config.
443
+
"""
444
+
445
+
secret_id: str
446
+
"""
447
+
ID of the secret.
448
+
"""
449
+
450
+
description: Optional[str]
451
+
"""
452
+
Description of the version.
453
+
"""
454
+
455
+
disable_previous: Optional[bool]
456
+
"""
457
+
(Optional.) Disable the previous secret version.
458
+
This has no effect if there is no previous version or if the previous version was already disabled.
459
+
"""
460
+
461
+
length: int
462
+
"""
463
+
Length of the password to generate (between 1 and 1024 characters).
464
+
"""
465
+
466
+
no_lowercase_letters: Optional[bool]
467
+
"""
468
+
(Optional.) Exclude lower case letters by default in the password character set.
469
+
"""
470
+
471
+
no_uppercase_letters: Optional[bool]
472
+
"""
473
+
(Optional.) Exclude upper case letters by default in the password character set.
474
+
"""
475
+
476
+
no_digits: Optional[bool]
477
+
"""
478
+
(Optional.) Exclude digits by default in the password character set.
479
+
"""
480
+
481
+
additional_chars: Optional[str]
482
+
"""
483
+
(Optional.) Additional ASCII characters to be included in the password character set.
0 commit comments