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

View File

@@ -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\VersionHistory;
class Channel extends \Google\Model
{
/**
* @var string
*/
public $channelType;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setChannelType($channelType)
{
$this->channelType = $channelType;
}
/**
* @return string
*/
public function getChannelType()
{
return $this->channelType;
}
/**
* @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(Channel::class, 'Google_Service_VersionHistory_Channel');

View File

@@ -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\VersionHistory;
class Interval extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Interval::class, 'Google_Service_VersionHistory_Interval');

View File

@@ -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\VersionHistory;
class ListChannelsResponse extends \Google\Collection
{
protected $collection_key = 'channels';
protected $channelsType = Channel::class;
protected $channelsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Channel[]
*/
public function setChannels($channels)
{
$this->channels = $channels;
}
/**
* @return Channel[]
*/
public function getChannels()
{
return $this->channels;
}
/**
* @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(ListChannelsResponse::class, 'Google_Service_VersionHistory_ListChannelsResponse');

View File

@@ -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\VersionHistory;
class ListPlatformsResponse extends \Google\Collection
{
protected $collection_key = 'platforms';
/**
* @var string
*/
public $nextPageToken;
protected $platformsType = Platform::class;
protected $platformsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Platform[]
*/
public function setPlatforms($platforms)
{
$this->platforms = $platforms;
}
/**
* @return Platform[]
*/
public function getPlatforms()
{
return $this->platforms;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPlatformsResponse::class, 'Google_Service_VersionHistory_ListPlatformsResponse');

View File

@@ -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\VersionHistory;
class ListReleasesResponse extends \Google\Collection
{
protected $collection_key = 'releases';
/**
* @var string
*/
public $nextPageToken;
protected $releasesType = Release::class;
protected $releasesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Release[]
*/
public function setReleases($releases)
{
$this->releases = $releases;
}
/**
* @return Release[]
*/
public function getReleases()
{
return $this->releases;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListReleasesResponse::class, 'Google_Service_VersionHistory_ListReleasesResponse');

View File

@@ -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\VersionHistory;
class ListVersionsResponse extends \Google\Collection
{
protected $collection_key = 'versions';
/**
* @var string
*/
public $nextPageToken;
protected $versionsType = Version::class;
protected $versionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Version[]
*/
public function setVersions($versions)
{
$this->versions = $versions;
}
/**
* @return Version[]
*/
public function getVersions()
{
return $this->versions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVersionsResponse::class, 'Google_Service_VersionHistory_ListVersionsResponse');

View File

@@ -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\VersionHistory;
class Platform extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $platformType;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Platform::class, 'Google_Service_VersionHistory_Platform');

View File

@@ -0,0 +1,123 @@
<?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\VersionHistory;
class Release extends \Google\Model
{
public $fraction;
/**
* @var string
*/
public $fractionGroup;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $pinnable;
protected $servingType = Interval::class;
protected $servingDataType = '';
/**
* @var string
*/
public $version;
public function setFraction($fraction)
{
$this->fraction = $fraction;
}
public function getFraction()
{
return $this->fraction;
}
/**
* @param string
*/
public function setFractionGroup($fractionGroup)
{
$this->fractionGroup = $fractionGroup;
}
/**
* @return string
*/
public function getFractionGroup()
{
return $this->fractionGroup;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setPinnable($pinnable)
{
$this->pinnable = $pinnable;
}
/**
* @return bool
*/
public function getPinnable()
{
return $this->pinnable;
}
/**
* @param Interval
*/
public function setServing(Interval $serving)
{
$this->serving = $serving;
}
/**
* @return Interval
*/
public function getServing()
{
return $this->serving;
}
/**
* @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(Release::class, 'Google_Service_VersionHistory_Release');

View File

@@ -0,0 +1,58 @@
<?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\VersionHistory\Resource;
use Google\Service\VersionHistory\ListPlatformsResponse;
/**
* The "platforms" collection of methods.
* Typical usage is:
* <code>
* $versionhistoryService = new Google\Service\VersionHistory(...);
* $platforms = $versionhistoryService->platforms;
* </code>
*/
class Platforms extends \Google\Service\Resource
{
/**
* Returns list of platforms that are available for a given product. The
* resource "product" has no resource name in its name.
* (platforms.listPlatforms)
*
* @param string $parent Required. The product, which owns this collection of
* platforms. Format: {product}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Optional limit on the number of channels to
* include in the response. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListChannels` call. Provide this to retrieve the subsequent page.
* @return ListPlatformsResponse
* @throws \Google\Service\Exception
*/
public function listPlatforms($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPlatformsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Platforms::class, 'Google_Service_VersionHistory_Resource_Platforms');

View File

@@ -0,0 +1,57 @@
<?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\VersionHistory\Resource;
use Google\Service\VersionHistory\ListChannelsResponse;
/**
* The "channels" collection of methods.
* Typical usage is:
* <code>
* $versionhistoryService = new Google\Service\VersionHistory(...);
* $channels = $versionhistoryService->platforms_channels;
* </code>
*/
class PlatformsChannels extends \Google\Service\Resource
{
/**
* Returns list of channels that are available for a given platform.
* (channels.listPlatformsChannels)
*
* @param string $parent Required. The platform, which owns this collection of
* channels. Format: {product}/platforms/{platform}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Optional limit on the number of channels to
* include in the response. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListChannels` call. Provide this to retrieve the subsequent page.
* @return ListChannelsResponse
* @throws \Google\Service\Exception
*/
public function listPlatformsChannels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListChannelsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlatformsChannels::class, 'Google_Service_VersionHistory_Resource_PlatformsChannels');

View File

@@ -0,0 +1,77 @@
<?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\VersionHistory\Resource;
use Google\Service\VersionHistory\ListVersionsResponse;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $versionhistoryService = new Google\Service\VersionHistory(...);
* $versions = $versionhistoryService->platforms_channels_versions;
* </code>
*/
class PlatformsChannelsVersions extends \Google\Service\Resource
{
/**
* Returns list of version for the given platform/channel.
* (versions.listPlatformsChannelsVersions)
*
* @param string $parent Required. The channel, which owns this collection of
* versions. Format: {product}/platforms/{platform}/channels/{channel}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter string. Format is a comma separated
* list of All comma separated filter clauses are conjoined with a logical
* "and". Valid field_names are "version", "name", "platform", and "channel".
* Valid operators are "<", "<=", "=", ">=", and ">". Channel comparison is done
* by distance from stable. Ex) stable < beta, beta < dev, canary < canary_asan.
* Version comparison is done numerically. If version is not entirely written,
* the version will be appended with 0 in missing fields. Ex) version > 80
* becoms version > 80.0.0.0 Name and platform are filtered by string
* comparison. Ex) "...?filter=channel<=beta, version >= 80 Ex)
* "...?filter=version > 80, version < 81
* @opt_param string orderBy Optional. Ordering string. Valid order_by strings
* are "version", "name", "platform", and "channel". Optionally, you can append
* " desc" or " asc" to specify the sorting order. Multiple order_by strings can
* be used in a comma separated list. Ordering by channel will sort by distance
* from the stable channel (not alphabetically). A list of channels sorted in
* this order is: stable, beta, dev, canary, and canary_asan. Sorting by name
* may cause unexpected behaviour as it is a naive string sort. For example,
* 1.0.0.8 will be before 1.0.0.10 in descending order. If order_by is not
* specified the response will be sorted by version in descending order. Ex)
* "...?order_by=version asc" Ex) "...?order_by=platform desc, channel, version"
* @opt_param int pageSize Optional. Optional limit on the number of versions to
* include in the response. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListVersions` call. Provide this to retrieve the subsequent page.
* @return ListVersionsResponse
* @throws \Google\Service\Exception
*/
public function listPlatformsChannelsVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlatformsChannelsVersions::class, 'Google_Service_VersionHistory_Resource_PlatformsChannelsVersions');

View File

@@ -0,0 +1,82 @@
<?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\VersionHistory\Resource;
use Google\Service\VersionHistory\ListReleasesResponse;
/**
* The "releases" collection of methods.
* Typical usage is:
* <code>
* $versionhistoryService = new Google\Service\VersionHistory(...);
* $releases = $versionhistoryService->platforms_channels_versions_releases;
* </code>
*/
class PlatformsChannelsVersionsReleases extends \Google\Service\Resource
{
/**
* Returns list of releases of the given version.
* (releases.listPlatformsChannelsVersionsReleases)
*
* @param string $parent Required. The version, which owns this collection of
* releases. Format:
* {product}/platforms/{platform}/channels/{channel}/versions/{version}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter string. Format is a comma separated
* list of All comma separated filter clauses are conjoined with a logical
* "and". Valid field_names are "version", "name", "platform", "channel",
* "fraction" "starttime", and "endtime". Valid operators are "<", "<=", "=",
* ">=", and ">". Channel comparison is done by distance from stable. must be a
* valid channel when filtering by channel. Ex) stable < beta, beta < dev,
* canary < canary_asan. Version comparison is done numerically. Ex) 1.0.0.8 <
* 1.0.0.10. If version is not entirely written, the version will be appended
* with 0 for the missing fields. Ex) version > 80 becoms version > 80.0.0.0
* When filtering by starttime or endtime, string must be in RFC 3339 date
* string format. Name and platform are filtered by string comparison. Ex)
* "...?filter=channel<=beta, version >= 80 Ex) "...?filter=version > 80,
* version < 81 Ex) "...?filter=starttime>2020-01-01T00:00:00Z
* @opt_param string orderBy Optional. Ordering string. Valid order_by strings
* are "version", "name", "starttime", "endtime", "platform", "channel", and
* "fraction". Optionally, you can append "desc" or "asc" to specify the sorting
* order. Multiple order_by strings can be used in a comma separated list.
* Ordering by channel will sort by distance from the stable channel (not
* alphabetically). A list of channels sorted in this order is: stable, beta,
* dev, canary, and canary_asan. Sorting by name may cause unexpected behaviour
* as it is a naive string sort. For example, 1.0.0.8 will be before 1.0.0.10 in
* descending order. If order_by is not specified the response will be sorted by
* starttime in descending order. Ex) "...?order_by=starttime asc" Ex)
* "...?order_by=platform desc, channel, startime desc"
* @opt_param int pageSize Optional. Optional limit on the number of releases to
* include in the response. If unspecified, the server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListReleases` call. Provide this to retrieve the subsequent page.
* @return ListReleasesResponse
* @throws \Google\Service\Exception
*/
public function listPlatformsChannelsVersionsReleases($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReleasesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlatformsChannelsVersionsReleases::class, 'Google_Service_VersionHistory_Resource_PlatformsChannelsVersionsReleases');

View File

@@ -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\VersionHistory;
class Version extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @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(Version::class, 'Google_Service_VersionHistory_Version');