Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,131 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class AggregateBucket extends \Google\Collection
{
protected $collection_key = 'dataset';
/**
* @var int
*/
public $activity;
protected $datasetType = Dataset::class;
protected $datasetDataType = 'array';
/**
* @var string
*/
public $endTimeMillis;
protected $sessionType = Session::class;
protected $sessionDataType = '';
/**
* @var string
*/
public $startTimeMillis;
/**
* @var string
*/
public $type;
/**
* @param int
*/
public function setActivity($activity)
{
$this->activity = $activity;
}
/**
* @return int
*/
public function getActivity()
{
return $this->activity;
}
/**
* @param Dataset[]
*/
public function setDataset($dataset)
{
$this->dataset = $dataset;
}
/**
* @return Dataset[]
*/
public function getDataset()
{
return $this->dataset;
}
/**
* @param string
*/
public function setEndTimeMillis($endTimeMillis)
{
$this->endTimeMillis = $endTimeMillis;
}
/**
* @return string
*/
public function getEndTimeMillis()
{
return $this->endTimeMillis;
}
/**
* @param Session
*/
public function setSession(Session $session)
{
$this->session = $session;
}
/**
* @return Session
*/
public function getSession()
{
return $this->session;
}
/**
* @param string
*/
public function setStartTimeMillis($startTimeMillis)
{
$this->startTimeMillis = $startTimeMillis;
}
/**
* @return string
*/
public function getStartTimeMillis()
{
return $this->startTimeMillis;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregateBucket::class, 'Google_Service_Fitness_AggregateBucket');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class AggregateBy extends \Google\Model
{
/**
* @var string
*/
public $dataSourceId;
/**
* @var string
*/
public $dataTypeName;
/**
* @param string
*/
public function setDataSourceId($dataSourceId)
{
$this->dataSourceId = $dataSourceId;
}
/**
* @return string
*/
public function getDataSourceId()
{
return $this->dataSourceId;
}
/**
* @param string
*/
public function setDataTypeName($dataTypeName)
{
$this->dataTypeName = $dataTypeName;
}
/**
* @return string
*/
public function getDataTypeName()
{
return $this->dataTypeName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregateBy::class, 'Google_Service_Fitness_AggregateBy');
@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class AggregateRequest extends \Google\Collection
{
protected $collection_key = 'filteredDataQualityStandard';
protected $aggregateByType = AggregateBy::class;
protected $aggregateByDataType = 'array';
protected $bucketByActivitySegmentType = BucketByActivity::class;
protected $bucketByActivitySegmentDataType = '';
protected $bucketByActivityTypeType = BucketByActivity::class;
protected $bucketByActivityTypeDataType = '';
protected $bucketBySessionType = BucketBySession::class;
protected $bucketBySessionDataType = '';
protected $bucketByTimeType = BucketByTime::class;
protected $bucketByTimeDataType = '';
/**
* @var string
*/
public $endTimeMillis;
/**
* @var string[]
*/
public $filteredDataQualityStandard;
/**
* @var string
*/
public $startTimeMillis;
/**
* @param AggregateBy[]
*/
public function setAggregateBy($aggregateBy)
{
$this->aggregateBy = $aggregateBy;
}
/**
* @return AggregateBy[]
*/
public function getAggregateBy()
{
return $this->aggregateBy;
}
/**
* @param BucketByActivity
*/
public function setBucketByActivitySegment(BucketByActivity $bucketByActivitySegment)
{
$this->bucketByActivitySegment = $bucketByActivitySegment;
}
/**
* @return BucketByActivity
*/
public function getBucketByActivitySegment()
{
return $this->bucketByActivitySegment;
}
/**
* @param BucketByActivity
*/
public function setBucketByActivityType(BucketByActivity $bucketByActivityType)
{
$this->bucketByActivityType = $bucketByActivityType;
}
/**
* @return BucketByActivity
*/
public function getBucketByActivityType()
{
return $this->bucketByActivityType;
}
/**
* @param BucketBySession
*/
public function setBucketBySession(BucketBySession $bucketBySession)
{
$this->bucketBySession = $bucketBySession;
}
/**
* @return BucketBySession
*/
public function getBucketBySession()
{
return $this->bucketBySession;
}
/**
* @param BucketByTime
*/
public function setBucketByTime(BucketByTime $bucketByTime)
{
$this->bucketByTime = $bucketByTime;
}
/**
* @return BucketByTime
*/
public function getBucketByTime()
{
return $this->bucketByTime;
}
/**
* @param string
*/
public function setEndTimeMillis($endTimeMillis)
{
$this->endTimeMillis = $endTimeMillis;
}
/**
* @return string
*/
public function getEndTimeMillis()
{
return $this->endTimeMillis;
}
/**
* @param string[]
*/
public function setFilteredDataQualityStandard($filteredDataQualityStandard)
{
$this->filteredDataQualityStandard = $filteredDataQualityStandard;
}
/**
* @return string[]
*/
public function getFilteredDataQualityStandard()
{
return $this->filteredDataQualityStandard;
}
/**
* @param string
*/
public function setStartTimeMillis($startTimeMillis)
{
$this->startTimeMillis = $startTimeMillis;
}
/**
* @return string
*/
public function getStartTimeMillis()
{
return $this->startTimeMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregateRequest::class, 'Google_Service_Fitness_AggregateRequest');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class AggregateResponse extends \Google\Collection
{
protected $collection_key = 'bucket';
protected $bucketType = AggregateBucket::class;
protected $bucketDataType = 'array';
/**
* @param AggregateBucket[]
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return AggregateBucket[]
*/
public function getBucket()
{
return $this->bucket;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregateResponse::class, 'Google_Service_Fitness_AggregateResponse');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class Application extends \Google\Model
{
/**
* @var string
*/
public $detailsUrl;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $packageName;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setDetailsUrl($detailsUrl)
{
$this->detailsUrl = $detailsUrl;
}
/**
* @return string
*/
public function getDetailsUrl()
{
return $this->detailsUrl;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Application::class, 'Google_Service_Fitness_Application');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class BucketByActivity extends \Google\Model
{
/**
* @var string
*/
public $activityDataSourceId;
/**
* @var string
*/
public $minDurationMillis;
/**
* @param string
*/
public function setActivityDataSourceId($activityDataSourceId)
{
$this->activityDataSourceId = $activityDataSourceId;
}
/**
* @return string
*/
public function getActivityDataSourceId()
{
return $this->activityDataSourceId;
}
/**
* @param string
*/
public function setMinDurationMillis($minDurationMillis)
{
$this->minDurationMillis = $minDurationMillis;
}
/**
* @return string
*/
public function getMinDurationMillis()
{
return $this->minDurationMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketByActivity::class, 'Google_Service_Fitness_BucketByActivity');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class BucketBySession extends \Google\Model
{
/**
* @var string
*/
public $minDurationMillis;
/**
* @param string
*/
public function setMinDurationMillis($minDurationMillis)
{
$this->minDurationMillis = $minDurationMillis;
}
/**
* @return string
*/
public function getMinDurationMillis()
{
return $this->minDurationMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketBySession::class, 'Google_Service_Fitness_BucketBySession');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class BucketByTime extends \Google\Model
{
/**
* @var string
*/
public $durationMillis;
protected $periodType = BucketByTimePeriod::class;
protected $periodDataType = '';
/**
* @param string
*/
public function setDurationMillis($durationMillis)
{
$this->durationMillis = $durationMillis;
}
/**
* @return string
*/
public function getDurationMillis()
{
return $this->durationMillis;
}
/**
* @param BucketByTimePeriod
*/
public function setPeriod(BucketByTimePeriod $period)
{
$this->period = $period;
}
/**
* @return BucketByTimePeriod
*/
public function getPeriod()
{
return $this->period;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketByTime::class, 'Google_Service_Fitness_BucketByTime');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class BucketByTimePeriod extends \Google\Model
{
/**
* @var string
*/
public $timeZoneId;
/**
* @var string
*/
public $type;
/**
* @var int
*/
public $value;
/**
* @param string
*/
public function setTimeZoneId($timeZoneId)
{
$this->timeZoneId = $timeZoneId;
}
/**
* @return string
*/
public function getTimeZoneId()
{
return $this->timeZoneId;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param int
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return int
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketByTimePeriod::class, 'Google_Service_Fitness_BucketByTimePeriod');
@@ -0,0 +1,169 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class DataPoint extends \Google\Collection
{
protected $collection_key = 'value';
/**
* @var string
*/
public $computationTimeMillis;
/**
* @var string
*/
public $dataTypeName;
/**
* @var string
*/
public $endTimeNanos;
/**
* @var string
*/
public $modifiedTimeMillis;
/**
* @var string
*/
public $originDataSourceId;
/**
* @var string
*/
public $rawTimestampNanos;
/**
* @var string
*/
public $startTimeNanos;
protected $valueType = Value::class;
protected $valueDataType = 'array';
/**
* @param string
*/
public function setComputationTimeMillis($computationTimeMillis)
{
$this->computationTimeMillis = $computationTimeMillis;
}
/**
* @return string
*/
public function getComputationTimeMillis()
{
return $this->computationTimeMillis;
}
/**
* @param string
*/
public function setDataTypeName($dataTypeName)
{
$this->dataTypeName = $dataTypeName;
}
/**
* @return string
*/
public function getDataTypeName()
{
return $this->dataTypeName;
}
/**
* @param string
*/
public function setEndTimeNanos($endTimeNanos)
{
$this->endTimeNanos = $endTimeNanos;
}
/**
* @return string
*/
public function getEndTimeNanos()
{
return $this->endTimeNanos;
}
/**
* @param string
*/
public function setModifiedTimeMillis($modifiedTimeMillis)
{
$this->modifiedTimeMillis = $modifiedTimeMillis;
}
/**
* @return string
*/
public function getModifiedTimeMillis()
{
return $this->modifiedTimeMillis;
}
/**
* @param string
*/
public function setOriginDataSourceId($originDataSourceId)
{
$this->originDataSourceId = $originDataSourceId;
}
/**
* @return string
*/
public function getOriginDataSourceId()
{
return $this->originDataSourceId;
}
/**
* @param string
*/
public function setRawTimestampNanos($rawTimestampNanos)
{
$this->rawTimestampNanos = $rawTimestampNanos;
}
/**
* @return string
*/
public function getRawTimestampNanos()
{
return $this->rawTimestampNanos;
}
/**
* @param string
*/
public function setStartTimeNanos($startTimeNanos)
{
$this->startTimeNanos = $startTimeNanos;
}
/**
* @return string
*/
public function getStartTimeNanos()
{
return $this->startTimeNanos;
}
/**
* @param Value[]
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return Value[]
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataPoint::class, 'Google_Service_Fitness_DataPoint');
@@ -0,0 +1,165 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class DataSource extends \Google\Collection
{
protected $collection_key = 'dataQualityStandard';
protected $applicationType = Application::class;
protected $applicationDataType = '';
/**
* @var string[]
*/
public $dataQualityStandard;
/**
* @var string
*/
public $dataStreamId;
/**
* @var string
*/
public $dataStreamName;
protected $dataTypeType = DataType::class;
protected $dataTypeDataType = '';
protected $deviceType = Device::class;
protected $deviceDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $type;
/**
* @param Application
*/
public function setApplication(Application $application)
{
$this->application = $application;
}
/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}
/**
* @param string[]
*/
public function setDataQualityStandard($dataQualityStandard)
{
$this->dataQualityStandard = $dataQualityStandard;
}
/**
* @return string[]
*/
public function getDataQualityStandard()
{
return $this->dataQualityStandard;
}
/**
* @param string
*/
public function setDataStreamId($dataStreamId)
{
$this->dataStreamId = $dataStreamId;
}
/**
* @return string
*/
public function getDataStreamId()
{
return $this->dataStreamId;
}
/**
* @param string
*/
public function setDataStreamName($dataStreamName)
{
$this->dataStreamName = $dataStreamName;
}
/**
* @return string
*/
public function getDataStreamName()
{
return $this->dataStreamName;
}
/**
* @param DataType
*/
public function setDataType(DataType $dataType)
{
$this->dataType = $dataType;
}
/**
* @return DataType
*/
public function getDataType()
{
return $this->dataType;
}
/**
* @param Device
*/
public function setDevice(Device $device)
{
$this->device = $device;
}
/**
* @return Device
*/
public function getDevice()
{
return $this->device;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataSource::class, 'Google_Service_Fitness_DataSource');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class DataType extends \Google\Collection
{
protected $collection_key = 'field';
protected $fieldType = DataTypeField::class;
protected $fieldDataType = 'array';
/**
* @var string
*/
public $name;
/**
* @param DataTypeField[]
*/
public function setField($field)
{
$this->field = $field;
}
/**
* @return DataTypeField[]
*/
public function getField()
{
return $this->field;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataType::class, 'Google_Service_Fitness_DataType');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class DataTypeField extends \Google\Model
{
/**
* @var string
*/
public $format;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $optional;
/**
* @param string
*/
public function setFormat($format)
{
$this->format = $format;
}
/**
* @return string
*/
public function getFormat()
{
return $this->format;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setOptional($optional)
{
$this->optional = $optional;
}
/**
* @return bool
*/
public function getOptional()
{
return $this->optional;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataTypeField::class, 'Google_Service_Fitness_DataTypeField');
@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class Dataset extends \Google\Collection
{
protected $collection_key = 'point';
/**
* @var string
*/
public $dataSourceId;
/**
* @var string
*/
public $maxEndTimeNs;
/**
* @var string
*/
public $minStartTimeNs;
/**
* @var string
*/
public $nextPageToken;
protected $pointType = DataPoint::class;
protected $pointDataType = 'array';
/**
* @param string
*/
public function setDataSourceId($dataSourceId)
{
$this->dataSourceId = $dataSourceId;
}
/**
* @return string
*/
public function getDataSourceId()
{
return $this->dataSourceId;
}
/**
* @param string
*/
public function setMaxEndTimeNs($maxEndTimeNs)
{
$this->maxEndTimeNs = $maxEndTimeNs;
}
/**
* @return string
*/
public function getMaxEndTimeNs()
{
return $this->maxEndTimeNs;
}
/**
* @param string
*/
public function setMinStartTimeNs($minStartTimeNs)
{
$this->minStartTimeNs = $minStartTimeNs;
}
/**
* @return string
*/
public function getMinStartTimeNs()
{
return $this->minStartTimeNs;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param DataPoint[]
*/
public function setPoint($point)
{
$this->point = $point;
}
/**
* @return DataPoint[]
*/
public function getPoint()
{
return $this->point;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Dataset::class, 'Google_Service_Fitness_Dataset');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class Device extends \Google\Model
{
/**
* @var string
*/
public $manufacturer;
/**
* @var string
*/
public $model;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setManufacturer($manufacturer)
{
$this->manufacturer = $manufacturer;
}
/**
* @return string
*/
public function getManufacturer()
{
return $this->manufacturer;
}
/**
* @param string
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Device::class, 'Google_Service_Fitness_Device');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class ListDataPointChangesResponse extends \Google\Collection
{
protected $collection_key = 'insertedDataPoint';
/**
* @var string
*/
public $dataSourceId;
protected $deletedDataPointType = DataPoint::class;
protected $deletedDataPointDataType = 'array';
protected $insertedDataPointType = DataPoint::class;
protected $insertedDataPointDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setDataSourceId($dataSourceId)
{
$this->dataSourceId = $dataSourceId;
}
/**
* @return string
*/
public function getDataSourceId()
{
return $this->dataSourceId;
}
/**
* @param DataPoint[]
*/
public function setDeletedDataPoint($deletedDataPoint)
{
$this->deletedDataPoint = $deletedDataPoint;
}
/**
* @return DataPoint[]
*/
public function getDeletedDataPoint()
{
return $this->deletedDataPoint;
}
/**
* @param DataPoint[]
*/
public function setInsertedDataPoint($insertedDataPoint)
{
$this->insertedDataPoint = $insertedDataPoint;
}
/**
* @return DataPoint[]
*/
public function getInsertedDataPoint()
{
return $this->insertedDataPoint;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDataPointChangesResponse::class, 'Google_Service_Fitness_ListDataPointChangesResponse');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class ListDataSourcesResponse extends \Google\Collection
{
protected $collection_key = 'dataSource';
protected $dataSourceType = DataSource::class;
protected $dataSourceDataType = 'array';
/**
* @param DataSource[]
*/
public function setDataSource($dataSource)
{
$this->dataSource = $dataSource;
}
/**
* @return DataSource[]
*/
public function getDataSource()
{
return $this->dataSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDataSourcesResponse::class, 'Google_Service_Fitness_ListDataSourcesResponse');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class ListSessionsResponse extends \Google\Collection
{
protected $collection_key = 'session';
protected $deletedSessionType = Session::class;
protected $deletedSessionDataType = 'array';
/**
* @var bool
*/
public $hasMoreData;
/**
* @var string
*/
public $nextPageToken;
protected $sessionType = Session::class;
protected $sessionDataType = 'array';
/**
* @param Session[]
*/
public function setDeletedSession($deletedSession)
{
$this->deletedSession = $deletedSession;
}
/**
* @return Session[]
*/
public function getDeletedSession()
{
return $this->deletedSession;
}
/**
* @param bool
*/
public function setHasMoreData($hasMoreData)
{
$this->hasMoreData = $hasMoreData;
}
/**
* @return bool
*/
public function getHasMoreData()
{
return $this->hasMoreData;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Session[]
*/
public function setSession($session)
{
$this->session = $session;
}
/**
* @return Session[]
*/
public function getSession()
{
return $this->session;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSessionsResponse::class, 'Google_Service_Fitness_ListSessionsResponse');
@@ -0,0 +1,35 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class MapValue extends \Google\Model
{
public $fpVal;
public function setFpVal($fpVal)
{
$this->fpVal = $fpVal;
}
public function getFpVal()
{
return $this->fpVal;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MapValue::class, 'Google_Service_Fitness_MapValue');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness\Resource;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $fitnessService = new Google\Service\Fitness(...);
* $users = $fitnessService->users;
* </code>
*/
class Users extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Users::class, 'Google_Service_Fitness_Resource_Users');
@@ -0,0 +1,151 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness\Resource;
use Google\Service\Fitness\DataSource;
use Google\Service\Fitness\ListDataSourcesResponse;
/**
* The "dataSources" collection of methods.
* Typical usage is:
* <code>
* $fitnessService = new Google\Service\Fitness(...);
* $dataSources = $fitnessService->users_dataSources;
* </code>
*/
class UsersDataSources extends \Google\Service\Resource
{
/**
* Creates a new data source that is unique across all data sources belonging to
* this user. A data source is a unique source of sensor data. Data sources can
* expose raw data coming from hardware sensors on local or companion devices.
* They can also expose derived data, created by transforming or merging other
* data sources. Multiple data sources can exist for the same data type. Every
* data point in every dataset inserted into or read from the Fitness API has an
* associated data source. Each data source produces a unique stream of dataset
* updates, with a unique data source identifier. Not all changes to data source
* affect the data stream ID, so that data collected by updated versions of the
* same application/device can still be considered to belong to the same data
* source. Data sources are identified using a string generated by the server,
* based on the contents of the source being created. The dataStreamId field
* should not be set when invoking this method. It will be automatically
* generated by the server with the correct format. If a dataStreamId is set, it
* must match the format that the server would generate. This format is a
* combination of some fields from the data source, and has a specific order. If
* it doesn't match, the request will fail with an error. Specifying a DataType
* which is not a known type (beginning with "com.google.") will create a
* DataSource with a *custom data type*. Custom data types are only readable by
* the application that created them. Custom data types are *deprecated*; use
* standard data types instead. In addition to the data source fields included
* in the data source ID, the developer project number that is authenticated
* when creating the data source is included. This developer project number is
* obfuscated when read by any other developer reading public data types.
* (dataSources.create)
*
* @param string $userId Create the data source for the person identified. Use
* me to indicate the authenticated user. Only me is supported at this time.
* @param DataSource $postBody
* @param array $optParams Optional parameters.
* @return DataSource
* @throws \Google\Service\Exception
*/
public function create($userId, DataSource $postBody, $optParams = [])
{
$params = ['userId' => $userId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], DataSource::class);
}
/**
* Deletes the specified data source. The request will fail if the data source
* contains any data points. (dataSources.delete)
*
* @param string $userId Retrieve a data source for the person identified. Use
* me to indicate the authenticated user. Only me is supported at this time.
* @param string $dataSourceId The data stream ID of the data source to delete.
* @param array $optParams Optional parameters.
* @return DataSource
* @throws \Google\Service\Exception
*/
public function delete($userId, $dataSourceId, $optParams = [])
{
$params = ['userId' => $userId, 'dataSourceId' => $dataSourceId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], DataSource::class);
}
/**
* Returns the specified data source. (dataSources.get)
*
* @param string $userId Retrieve a data source for the person identified. Use
* me to indicate the authenticated user. Only me is supported at this time.
* @param string $dataSourceId The data stream ID of the data source to
* retrieve.
* @param array $optParams Optional parameters.
* @return DataSource
* @throws \Google\Service\Exception
*/
public function get($userId, $dataSourceId, $optParams = [])
{
$params = ['userId' => $userId, 'dataSourceId' => $dataSourceId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DataSource::class);
}
/**
* Lists all data sources that are visible to the developer, using the OAuth
* scopes provided. The list is not exhaustive; the user may have private data
* sources that are only visible to other developers, or calls using other
* scopes. (dataSources.listUsersDataSources)
*
* @param string $userId List data sources for the person identified. Use me to
* indicate the authenticated user. Only me is supported at this time.
* @param array $optParams Optional parameters.
*
* @opt_param string dataTypeName The names of data types to include in the
* list. If not specified, all data sources will be returned.
* @return ListDataSourcesResponse
* @throws \Google\Service\Exception
*/
public function listUsersDataSources($userId, $optParams = [])
{
$params = ['userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDataSourcesResponse::class);
}
/**
* Updates the specified data source. The dataStreamId, dataType, type,
* dataStreamName, and device properties with the exception of version, cannot
* be modified. Data sources are identified by their dataStreamId.
* (dataSources.update)
*
* @param string $userId Update the data source for the person identified. Use
* me to indicate the authenticated user. Only me is supported at this time.
* @param string $dataSourceId The data stream ID of the data source to update.
* @param DataSource $postBody
* @param array $optParams Optional parameters.
* @return DataSource
* @throws \Google\Service\Exception
*/
public function update($userId, $dataSourceId, DataSource $postBody, $optParams = [])
{
$params = ['userId' => $userId, 'dataSourceId' => $dataSourceId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], DataSource::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersDataSources::class, 'Google_Service_Fitness_Resource_UsersDataSources');
@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness\Resource;
use Google\Service\Fitness\ListDataPointChangesResponse;
/**
* The "dataPointChanges" collection of methods.
* Typical usage is:
* <code>
* $fitnessService = new Google\Service\Fitness(...);
* $dataPointChanges = $fitnessService->users_dataSources_dataPointChanges;
* </code>
*/
class UsersDataSourcesDataPointChanges extends \Google\Service\Resource
{
/**
* Queries for user's data point changes for a particular data source.
* (dataPointChanges.listUsersDataSourcesDataPointChanges)
*
* @param string $userId List data points for the person identified. Use me to
* indicate the authenticated user. Only me is supported at this time.
* @param string $dataSourceId The data stream ID of the data source that
* created the dataset.
* @param array $optParams Optional parameters.
*
* @opt_param int limit If specified, no more than this many data point changes
* will be included in the response.
* @opt_param string pageToken The continuation token, which is used to page
* through large result sets. To get the next page of results, set this
* parameter to the value of nextPageToken from the previous response.
* @return ListDataPointChangesResponse
* @throws \Google\Service\Exception
*/
public function listUsersDataSourcesDataPointChanges($userId, $dataSourceId, $optParams = [])
{
$params = ['userId' => $userId, 'dataSourceId' => $dataSourceId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDataPointChangesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersDataSourcesDataPointChanges::class, 'Google_Service_Fitness_Resource_UsersDataSourcesDataPointChanges');
@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness\Resource;
use Google\Service\Fitness\Dataset;
/**
* The "datasets" collection of methods.
* Typical usage is:
* <code>
* $fitnessService = new Google\Service\Fitness(...);
* $datasets = $fitnessService->users_dataSources_datasets;
* </code>
*/
class UsersDataSourcesDatasets extends \Google\Service\Resource
{
/**
* Performs an inclusive delete of all data points whose start and end times
* have any overlap with the time range specified by the dataset ID. For most
* data types, the entire data point will be deleted. For data types where the
* time span represents a consistent value (such as
* com.google.activity.segment), and a data point straddles either end point of
* the dataset, only the overlapping portion of the data point will be deleted.
* (datasets.delete)
*
* @param string $userId Delete a dataset for the person identified. Use me to
* indicate the authenticated user. Only me is supported at this time.
* @param string $dataSourceId The data stream ID of the data source that
* created the dataset.
* @param string $datasetId Dataset identifier that is a composite of the
* minimum data point start time and maximum data point end time represented as
* nanoseconds from the epoch. The ID is formatted like: "startTime-endTime"
* where startTime and endTime are 64 bit integers.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($userId, $dataSourceId, $datasetId, $optParams = [])
{
$params = ['userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns a dataset containing all data points whose start and end times
* overlap with the specified range of the dataset minimum start time and
* maximum end time. Specifically, any data point whose start time is less than
* or equal to the dataset end time and whose end time is greater than or equal
* to the dataset start time. (datasets.get)
*
* @param string $userId Retrieve a dataset for the person identified. Use me to
* indicate the authenticated user. Only me is supported at this time.
* @param string $dataSourceId The data stream ID of the data source that
* created the dataset.
* @param string $datasetId Dataset identifier that is a composite of the
* minimum data point start time and maximum data point end time represented as
* nanoseconds from the epoch. The ID is formatted like: "startTime-endTime"
* where startTime and endTime are 64 bit integers.
* @param array $optParams Optional parameters.
*
* @opt_param int limit If specified, no more than this many data points will be
* included in the dataset. If there are more data points in the dataset,
* nextPageToken will be set in the dataset response. The limit is applied from
* the end of the time range. That is, if pageToken is absent, the limit most
* recent data points will be returned.
* @opt_param string pageToken The continuation token, which is used to page
* through large datasets. To get the next page of a dataset, set this parameter
* to the value of nextPageToken from the previous response. Each subsequent
* call will yield a partial dataset with data point end timestamps that are
* strictly smaller than those in the previous partial response.
* @return Dataset
* @throws \Google\Service\Exception
*/
public function get($userId, $dataSourceId, $datasetId, $optParams = [])
{
$params = ['userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Dataset::class);
}
/**
* Adds data points to a dataset. The dataset need not be previously created.
* All points within the given dataset will be returned with subsquent calls to
* retrieve this dataset. Data points can belong to more than one dataset. This
* method does not use patch semantics: the data points provided are merely
* inserted, with no existing data replaced. (datasets.patch)
*
* @param string $userId Patch a dataset for the person identified. Use me to
* indicate the authenticated user. Only me is supported at this time.
* @param string $dataSourceId The data stream ID of the data source that
* created the dataset.
* @param string $datasetId This field is not used, and can be safely omitted.
* @param Dataset $postBody
* @param array $optParams Optional parameters.
* @return Dataset
* @throws \Google\Service\Exception
*/
public function patch($userId, $dataSourceId, $datasetId, Dataset $postBody, $optParams = [])
{
$params = ['userId' => $userId, 'dataSourceId' => $dataSourceId, 'datasetId' => $datasetId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Dataset::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersDataSourcesDatasets::class, 'Google_Service_Fitness_Resource_UsersDataSourcesDatasets');
@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness\Resource;
use Google\Service\Fitness\AggregateRequest;
use Google\Service\Fitness\AggregateResponse;
/**
* The "dataset" collection of methods.
* Typical usage is:
* <code>
* $fitnessService = new Google\Service\Fitness(...);
* $dataset = $fitnessService->users_dataset;
* </code>
*/
class UsersDataset extends \Google\Service\Resource
{
/**
* Aggregates data of a certain type or stream into buckets divided by a given
* type of boundary. Multiple data sets of multiple types and from multiple
* sources can be aggregated into exactly one bucket type per request.
* (dataset.aggregate)
*
* @param string $userId Aggregate data for the person identified. Use me to
* indicate the authenticated user. Only me is supported at this time.
* @param AggregateRequest $postBody
* @param array $optParams Optional parameters.
* @return AggregateResponse
* @throws \Google\Service\Exception
*/
public function aggregate($userId, AggregateRequest $postBody, $optParams = [])
{
$params = ['userId' => $userId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('aggregate', [$params], AggregateResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersDataset::class, 'Google_Service_Fitness_Resource_UsersDataset');
@@ -0,0 +1,102 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness\Resource;
use Google\Service\Fitness\ListSessionsResponse;
use Google\Service\Fitness\Session;
/**
* The "sessions" collection of methods.
* Typical usage is:
* <code>
* $fitnessService = new Google\Service\Fitness(...);
* $sessions = $fitnessService->users_sessions;
* </code>
*/
class UsersSessions extends \Google\Service\Resource
{
/**
* Deletes a session specified by the given session ID. (sessions.delete)
*
* @param string $userId Delete a session for the person identified. Use me to
* indicate the authenticated user. Only me is supported at this time.
* @param string $sessionId The ID of the session to be deleted.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($userId, $sessionId, $optParams = [])
{
$params = ['userId' => $userId, 'sessionId' => $sessionId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Lists sessions previously created. (sessions.listUsersSessions)
*
* @param string $userId List sessions for the person identified. Use me to
* indicate the authenticated user. Only me is supported at this time.
* @param array $optParams Optional parameters.
*
* @opt_param int activityType If non-empty, only sessions with these activity
* types should be returned.
* @opt_param string endTime An RFC3339 timestamp. Only sessions ending between
* the start and end times will be included in the response. If this time is
* omitted but startTime is specified, all sessions from startTime to the end of
* time will be returned.
* @opt_param bool includeDeleted If true, and if both startTime and endTime are
* omitted, session deletions will be returned.
* @opt_param string pageToken The continuation token, which is used for
* incremental syncing. To get the next batch of changes, set this parameter to
* the value of nextPageToken from the previous response. The page token is
* ignored if either start or end time is specified. If none of start time, end
* time, and the page token is specified, sessions modified in the last 30 days
* are returned.
* @opt_param string startTime An RFC3339 timestamp. Only sessions ending
* between the start and end times will be included in the response. If this
* time is omitted but endTime is specified, all sessions from the start of time
* up to endTime will be returned.
* @return ListSessionsResponse
* @throws \Google\Service\Exception
*/
public function listUsersSessions($userId, $optParams = [])
{
$params = ['userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSessionsResponse::class);
}
/**
* Updates or insert a given session. (sessions.update)
*
* @param string $userId Create sessions for the person identified. Use me to
* indicate the authenticated user. Only me is supported at this time.
* @param string $sessionId The ID of the session to be created.
* @param Session $postBody
* @param array $optParams Optional parameters.
* @return Session
* @throws \Google\Service\Exception
*/
public function update($userId, $sessionId, Session $postBody, $optParams = [])
{
$params = ['userId' => $userId, 'sessionId' => $sessionId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Session::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersSessions::class, 'Google_Service_Fitness_Resource_UsersSessions');
@@ -0,0 +1,186 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class Session extends \Google\Model
{
/**
* @var string
*/
public $activeTimeMillis;
/**
* @var int
*/
public $activityType;
protected $applicationType = Application::class;
protected $applicationDataType = '';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $endTimeMillis;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $modifiedTimeMillis;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $startTimeMillis;
/**
* @param string
*/
public function setActiveTimeMillis($activeTimeMillis)
{
$this->activeTimeMillis = $activeTimeMillis;
}
/**
* @return string
*/
public function getActiveTimeMillis()
{
return $this->activeTimeMillis;
}
/**
* @param int
*/
public function setActivityType($activityType)
{
$this->activityType = $activityType;
}
/**
* @return int
*/
public function getActivityType()
{
return $this->activityType;
}
/**
* @param Application
*/
public function setApplication(Application $application)
{
$this->application = $application;
}
/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEndTimeMillis($endTimeMillis)
{
$this->endTimeMillis = $endTimeMillis;
}
/**
* @return string
*/
public function getEndTimeMillis()
{
return $this->endTimeMillis;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setModifiedTimeMillis($modifiedTimeMillis)
{
$this->modifiedTimeMillis = $modifiedTimeMillis;
}
/**
* @return string
*/
public function getModifiedTimeMillis()
{
return $this->modifiedTimeMillis;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setStartTimeMillis($startTimeMillis)
{
$this->startTimeMillis = $startTimeMillis;
}
/**
* @return string
*/
public function getStartTimeMillis()
{
return $this->startTimeMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Session::class, 'Google_Service_Fitness_Session');
@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class Value extends \Google\Collection
{
protected $collection_key = 'mapVal';
public $fpVal;
/**
* @var int
*/
public $intVal;
protected $mapValType = ValueMapValEntry::class;
protected $mapValDataType = 'array';
/**
* @var string
*/
public $stringVal;
public function setFpVal($fpVal)
{
$this->fpVal = $fpVal;
}
public function getFpVal()
{
return $this->fpVal;
}
/**
* @param int
*/
public function setIntVal($intVal)
{
$this->intVal = $intVal;
}
/**
* @return int
*/
public function getIntVal()
{
return $this->intVal;
}
/**
* @param ValueMapValEntry[]
*/
public function setMapVal($mapVal)
{
$this->mapVal = $mapVal;
}
/**
* @return ValueMapValEntry[]
*/
public function getMapVal()
{
return $this->mapVal;
}
/**
* @param string
*/
public function setStringVal($stringVal)
{
$this->stringVal = $stringVal;
}
/**
* @return string
*/
public function getStringVal()
{
return $this->stringVal;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Value::class, 'Google_Service_Fitness_Value');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Fitness;
class ValueMapValEntry extends \Google\Model
{
/**
* @var string
*/
public $key;
protected $valueType = MapValue::class;
protected $valueDataType = '';
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param MapValue
*/
public function setValue(MapValue $value)
{
$this->value = $value;
}
/**
* @return MapValue
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValueMapValEntry::class, 'Google_Service_Fitness_ValueMapValEntry');