| OLD | NEW |
| 1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
| 2 # Copyright 2011 Google Inc. All Rights Reserved. | 2 # Copyright 2011 Google Inc. All Rights Reserved. |
| 3 # | 3 # |
| 4 # Licensed under the Apache License, Version 2.0 (the "License"); | 4 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 # you may not use this file except in compliance with the License. | 5 # you may not use this file except in compliance with the License. |
| 6 # You may obtain a copy of the License at | 6 # You may obtain a copy of the License at |
| 7 # | 7 # |
| 8 # http://www.apache.org/licenses/LICENSE-2.0 | 8 # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 # | 9 # |
| 10 # Unless required by applicable law or agreed to in writing, software | 10 # Unless required by applicable law or agreed to in writing, software |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 - ASIA (Asia) | 92 - ASIA (Asia) |
| 93 - EU (European Union) | 93 - EU (European Union) |
| 94 - US (United States) | 94 - US (United States) |
| 95 | 95 |
| 96 Example: | 96 Example: |
| 97 gsutil mb -l ASIA gs://some-bucket | 97 gsutil mb -l ASIA gs://some-bucket |
| 98 | 98 |
| 99 If you specify the Durable Reduced Availability storage class (-c DRA), you | 99 If you specify the Durable Reduced Availability storage class (-c DRA), you |
| 100 can specify one of the continental locations above or one of the regional | 100 can specify one of the continental locations above or one of the regional |
| 101 locations below: | 101 locations below: [1]_ |
| 102 | 102 |
| 103 - ASIA-EAST1 (Eastern Asia-Pacific) | 103 - ASIA-EAST1 (Eastern Asia-Pacific) |
| 104 - US-EAST1 (Eastern United States) [1]_ | 104 - US-EAST1 (Eastern United States) |
| 105 - US-EAST2 (Eastern United States) [1]_ | 105 - US-EAST2 (Eastern United States) |
| 106 - US-EAST3 (Eastern United States) [1]_ | 106 - US-EAST3 (Eastern United States) |
| 107 - US-CENTRAL1 (Central United States) [1]_ | 107 - US-CENTRAL1 (Central United States) |
| 108 - US-CENTRAL2 (Central United States) [1]_ | 108 - US-CENTRAL2 (Central United States) |
| 109 - US-WEST1 (Western United States) [1]_ | 109 - US-WEST1 (Western United States) |
| 110 | 110 |
| 111 Example: | 111 Example: |
| 112 gsutil mb -c DRA -l US-CENTRAL1 gs://some-bucket | 112 gsutil mb -c DRA -l US-CENTRAL1 gs://some-bucket |
| 113 | 113 |
| 114 .. [1] These locations are for `Regional Buckets <https://developers.google.co
m/storage/docs/regional-buckets>`_. | 114 .. [1] These locations are for `Regional Buckets <https://developers.google.co
m/storage/docs/regional-buckets>`_. |
| 115 Regional Buckets is an experimental feature and data stored in these | 115 Regional Buckets is an experimental feature and data stored in these |
| 116 locations is not subject to the usual SLA. See the documentation for | 116 locations is not subject to the usual SLA. See the documentation for |
| 117 additional information. | 117 additional information. |
| 118 | 118 |
| 119 | 119 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 def _Normalize_Storage_Class(self, sc): | 209 def _Normalize_Storage_Class(self, sc): |
| 210 sc = sc.upper() | 210 sc = sc.upper() |
| 211 if sc in ('DRA', 'DURABLE_REDUCED_AVAILABILITY'): | 211 if sc in ('DRA', 'DURABLE_REDUCED_AVAILABILITY'): |
| 212 return 'DURABLE_REDUCED_AVAILABILITY' | 212 return 'DURABLE_REDUCED_AVAILABILITY' |
| 213 if sc in ('S', 'STD', 'STANDARD'): | 213 if sc in ('S', 'STD', 'STANDARD'): |
| 214 return 'STANDARD' | 214 return 'STANDARD' |
| 215 if sc in ('NL', 'NEARLINE'): | 215 if sc in ('NL', 'NEARLINE'): |
| 216 return 'NEARLINE' | 216 return 'NEARLINE' |
| 217 return sc | 217 return sc |
| OLD | NEW |