|
@@ -79,7 +79,8 @@ public class GAAdminService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public List<GAPropertyDTO> listProperties(String accountResourceName) throws DataException {
|
|
|
+ public List<GAPropertyDTO> listProperties(String accountResourceName, boolean withDataStreams)
|
|
|
+ throws DataException {
|
|
|
try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
|
|
|
AnalyticsAdminServiceClient.create(adminServiceSettings)) {
|
|
|
List<GAPropertyDTO> gaProperties = Lists.newArrayList();
|
|
@@ -108,7 +109,10 @@ public class GAAdminService {
|
|
|
.createTime(property.getCreateTime().getSeconds())
|
|
|
.updateTime(property.getUpdateTime().getSeconds())
|
|
|
// Omits data streams for list request to reduce payload size.
|
|
|
- .dataStreams(this.listDataStreams(property.getName()))
|
|
|
+ .dataStreams(
|
|
|
+ withDataStreams
|
|
|
+ ? listDataStreams(property.getName())
|
|
|
+ : Collections.EMPTY_LIST)
|
|
|
.build();
|
|
|
|
|
|
// Adds into the list;
|