code: public function getAssets(Query $query = null): ResourceArray
      {
          $queryData = $query ? $query->getQueryData() : [];
          if (!isset($queryData['locale'])) {
              $queryData['locale'] = $this->defaultLocale;
          }
  
          /** @var ResourceArray $assets */
          $assets = $this->request(
              'GET',
              '/spaces/'.$this->spaceId.'/environments/'.$this->environmentId.'/assets',
              ['query' => $queryData]
          );
  
          return $assets;
      }
docs: {@inheritdoc}