|
51 | 51 | from google.cloud.storage.constants import MULTI_REGIONAL_LEGACY_STORAGE_CLASS |
52 | 52 | from google.cloud.storage.constants import MULTI_REGION_LOCATION_TYPE |
53 | 53 | from google.cloud.storage.constants import NEARLINE_STORAGE_CLASS |
54 | | -from google.cloud.storage.constants import PUBLIC_ACCESS_PREVENTION_UNSPECIFIED |
| 54 | +from google.cloud.storage.constants import PUBLIC_ACCESS_PREVENTION_INHERITED |
55 | 55 | from google.cloud.storage.constants import REGIONAL_LEGACY_STORAGE_CLASS |
56 | 56 | from google.cloud.storage.constants import REGION_LOCATION_TYPE |
57 | 57 | from google.cloud.storage.constants import STANDARD_STORAGE_CLASS |
@@ -387,8 +387,7 @@ class IAMConfiguration(dict): |
387 | 387 |
|
388 | 388 | :type public_access_prevention: str |
389 | 389 | :params public_access_prevention: |
390 | | - (Optional) Whether the public access prevention policy is 'unspecified' (default) or 'enforced' |
391 | | - See: https://cloud.google.com/storage/docs/public-access-prevention |
| 390 | + (Optional) Whether the public access prevention policy is 'inherited' (default) or 'enforced' |
392 | 391 | See: https://cloud.google.com/storage/docs/public-access-prevention |
393 | 392 |
|
394 | 393 | :type uniform_bucket_level_access_enabled: bool |
@@ -438,7 +437,7 @@ def __init__( |
438 | 437 | uniform_bucket_level_access_enabled = False |
439 | 438 |
|
440 | 439 | if public_access_prevention is _default: |
441 | | - public_access_prevention = PUBLIC_ACCESS_PREVENTION_UNSPECIFIED |
| 440 | + public_access_prevention = PUBLIC_ACCESS_PREVENTION_INHERITED |
442 | 441 |
|
443 | 442 | data = { |
444 | 443 | "uniformBucketLevelAccess": { |
@@ -481,11 +480,12 @@ def bucket(self): |
481 | 480 |
|
482 | 481 | @property |
483 | 482 | def public_access_prevention(self): |
484 | | - """Setting for public access prevention policy. Options are 'unspecified' (default) or 'enforced'. |
485 | | - More information can be found at https://cloud.google.com/storage/docs/public-access-prevention |
| 483 | + """Setting for public access prevention policy. Options are 'inherited' (default) or 'enforced'. |
| 484 | +
|
| 485 | + See: https://cloud.google.com/storage/docs/public-access-prevention |
486 | 486 |
|
487 | 487 | :rtype: string |
488 | | - :returns: the public access prevention status, either 'enforced' or 'unspecified'. |
| 488 | + :returns: the public access prevention status, either 'enforced' or 'inherited'. |
489 | 489 | """ |
490 | 490 | return self["publicAccessPrevention"] |
491 | 491 |
|
|
0 commit comments