Naming an object

In Google Storage, individual data is saved in the form of objects. Object names must comply with the following rules:

  • They can contain any sequence of valid Unicode characters, of length 1-1,024 bytes when UTF-8 encoded
  • They cannot contain carriage return or line feed characters
  • They cannot start with well-known/acme-challenge

To eliminate the limitations given by the flat hierarchy, we can use the slash (/) character in the object names. For example, if we have to use the same name for two different objects we could name an object /NewYork/Stadium.jpg and another /Boston/Stadium.jpg. In this way it is possible to organize the objects as if they were inside directories and manage them as such. In fact, Google Storage sees ...

Get Hands-On Machine Learning on Google Cloud Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.