From 0278d5a5d345a6bede7835088d5d759d6d8700aa Mon Sep 17 00:00:00 2001 From: daspecster Date: Thu, 23 Mar 2017 11:55:51 -0400 Subject: [PATCH 1/2] Update 301 redirects for storage documentation. --- storage/google/cloud/storage/acl.py | 2 +- storage/google/cloud/storage/blob.py | 8 ++++---- storage/google/cloud/storage/bucket.py | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/storage/google/cloud/storage/acl.py b/storage/google/cloud/storage/acl.py index a133ad443dff..d1e477265ae0 100644 --- a/storage/google/cloud/storage/acl.py +++ b/storage/google/cloud/storage/acl.py @@ -196,7 +196,7 @@ class ACL(object): 'bucketOwnerFullControl', ]) """See: - https://cloud.google.com/storage/docs/access-control#predefined-acl + https://cloud.google.com/storage/docs/access-control/ """ loaded = False diff --git a/storage/google/cloud/storage/blob.py b/storage/google/cloud/storage/blob.py index c99555277e95..2c0ddc8d71e4 100644 --- a/storage/google/cloud/storage/blob.py +++ b/storage/google/cloud/storage/blob.py @@ -943,7 +943,7 @@ def update_storage_class(self, new_class, client=None): content_language = _scalar_property('contentLanguage') """HTTP 'Content-Language' header for this object. - See: http://tools.ietf.org/html/bcp47 and + See: https://tools.ietf.org/html/bcp47 and https://cloud.google.com/storage/docs/json_api/v1/objects If the property is not set locally, returns ``None``. @@ -965,7 +965,7 @@ def update_storage_class(self, new_class, client=None): crc32c = _scalar_property('crc32c') """CRC32C checksum for this object. - See: http://tools.ietf.org/html/rfc4960#appendix-B and + See: https://tools.ietf.org/html/rfc4960#appendix-B and https://cloud.google.com/storage/docs/json_api/v1/objects If the property is not set locally, returns ``None``. @@ -992,7 +992,7 @@ def component_count(self): def etag(self): """Retrieve the ETag for the object. - See: http://tools.ietf.org/html/rfc2616#section-3.11 and + See: https://tools.ietf.org/html/rfc2616#section-3.11 and https://cloud.google.com/storage/docs/json_api/v1/objects :rtype: str or ``NoneType`` @@ -1029,7 +1029,7 @@ def id(self): md5_hash = _scalar_property('md5Hash') """MD5 hash for this object. - See: http://tools.ietf.org/html/rfc4960#appendix-B and + See: https://tools.ietf.org/html/rfc4960#appendix-B and https://cloud.google.com/storage/docs/json_api/v1/objects If the property is not set locally, returns ``None``. diff --git a/storage/google/cloud/storage/bucket.py b/storage/google/cloud/storage/bucket.py index daf3d9fda8a2..0863fe48a803 100644 --- a/storage/google/cloud/storage/bucket.py +++ b/storage/google/cloud/storage/bucket.py @@ -552,7 +552,7 @@ def cors(self, entries): def etag(self): """Retrieve the ETag for the bucket. - See: http://tools.ietf.org/html/rfc2616#section-3.11 and + See: https://tools.ietf.org/html/rfc2616#section-3.11 and https://cloud.google.com/storage/docs/json_api/v1/buckets :rtype: str or ``NoneType`` @@ -594,7 +594,7 @@ def lifecycle_rules(self, rules): """Retrieve location configured for this bucket. See: https://cloud.google.com/storage/docs/json_api/v1/buckets and - https://cloud.google.com/storage/docs/concepts-techniques#specifyinglocations + https://cloud.google.com/storage/docs/bucket-locations If the property is not set locally, returns ``None``. @@ -604,7 +604,7 @@ def lifecycle_rules(self, rules): def get_logging(self): """Return info about access logging for this bucket. - See: https://cloud.google.com/storage/docs/accesslogs#status + See: https://cloud.google.com/storage/docs/access-logs#status :rtype: dict or None :returns: a dict w/ keys, ``logBucket`` and ``logObjectPrefix`` @@ -616,7 +616,7 @@ def get_logging(self): def enable_logging(self, bucket_name, object_prefix=''): """Enable access logging for this bucket. - See: https://cloud.google.com/storage/docs/accesslogs + See: https://cloud.google.com/storage/docs/access-logs :type bucket_name: str :param bucket_name: name of bucket in which to store access logs @@ -630,7 +630,7 @@ def enable_logging(self, bucket_name, object_prefix=''): def disable_logging(self): """Disable access logging for this bucket. - See: https://cloud.google.com/storage/docs/accesslogs#disabling + See: https://cloud.google.com/storage/docs/access-logs#disabling """ self._patch_property('logging', None) @@ -755,7 +755,7 @@ def versioning_enabled(self, value): def configure_website(self, main_page_suffix=None, not_found_page=None): """Configure website-related properties. - See: https://developers.google.com/storage/docs/website-configuration + See: https://cloud.google.com/storage/docs/hosting-static-website .. note:: This (apparently) only works From d2ccc81e6f5b0de2a56b58d7846c794ac2e86f9e Mon Sep 17 00:00:00 2001 From: daspecster Date: Thu, 23 Mar 2017 12:22:42 -0400 Subject: [PATCH 2/2] Update ACL link. --- storage/google/cloud/storage/acl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/google/cloud/storage/acl.py b/storage/google/cloud/storage/acl.py index d1e477265ae0..6270182cc0f0 100644 --- a/storage/google/cloud/storage/acl.py +++ b/storage/google/cloud/storage/acl.py @@ -196,7 +196,7 @@ class ACL(object): 'bucketOwnerFullControl', ]) """See: - https://cloud.google.com/storage/docs/access-control/ + https://cloud.google.com/storage/docs/access-control/lists#predefined-acl """ loaded = False