@@ -968,6 +968,7 @@ def get_blob(
968
968
.. literalinclude:: snippets.py
969
969
:start-after: [START get_blob]
970
970
:end-before: [END get_blob]
971
+ :dedent: 4
971
972
972
973
If :attr:`user_project` is set, bills the API request to that project.
973
974
@@ -1381,6 +1382,7 @@ def delete_blob(
1381
1382
.. literalinclude:: snippets.py
1382
1383
:start-after: [START delete_blob]
1383
1384
:end-before: [END delete_blob]
1385
+ :dedent: 4
1384
1386
1385
1387
If :attr:`user_project` is set, bills the API request to that project.
1386
1388
@@ -1431,6 +1433,7 @@ def delete_blob(
1431
1433
.. literalinclude:: snippets.py
1432
1434
:start-after: [START delete_blobs]
1433
1435
:end-before: [END delete_blobs]
1436
+ :dedent: 4
1434
1437
1435
1438
"""
1436
1439
client = self ._require_client (client )
@@ -2105,6 +2108,7 @@ def add_lifecycle_delete_rule(self, **kw):
2105
2108
.. literalinclude:: snippets.py
2106
2109
:start-after: [START add_lifecycle_delete_rule]
2107
2110
:end-before: [END add_lifecycle_delete_rule]
2111
+ :dedent: 4
2108
2112
2109
2113
:type kw: dict
2110
2114
:params kw: arguments passed to :class:`LifecycleRuleConditions`.
@@ -2122,6 +2126,7 @@ def add_lifecycle_set_storage_class_rule(self, storage_class, **kw):
2122
2126
.. literalinclude:: snippets.py
2123
2127
:start-after: [START add_lifecycle_set_storage_class_rule]
2124
2128
:end-before: [END add_lifecycle_set_storage_class_rule]
2129
+ :dedent: 4
2125
2130
2126
2131
:type storage_class: str, one of :attr:`STORAGE_CLASSES`.
2127
2132
:param storage_class: new storage class to assign to matching items.
@@ -2465,12 +2470,14 @@ def configure_website(self, main_page_suffix=None, not_found_page=None):
2465
2470
.. literalinclude:: snippets.py
2466
2471
:start-after: [START configure_website]
2467
2472
:end-before: [END configure_website]
2473
+ :dedent: 4
2468
2474
2469
2475
You probably should also make the whole bucket public:
2470
2476
2471
2477
.. literalinclude:: snippets.py
2472
2478
:start-after: [START make_public]
2473
2479
:end-before: [END make_public]
2480
+ :dedent: 4
2474
2481
2475
2482
This says: "Make the bucket public, and all the stuff already in
2476
2483
the bucket, and anything else I add to the bucket. Just make it
@@ -2804,6 +2811,7 @@ def generate_upload_policy(self, conditions, expiration=None, client=None):
2804
2811
.. literalinclude:: snippets.py
2805
2812
:start-after: [START policy_document]
2806
2813
:end-before: [END policy_document]
2814
+ :dedent: 4
2807
2815
2808
2816
.. _policy documents:
2809
2817
https://cloud.google.com/storage/docs/xml-api\
0 commit comments