gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -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\YouTubeAnalytics;
class EmptyResponse extends \Google\Model
{
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* Apiary error details
*
* @param Errors $errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EmptyResponse::class, 'Google_Service_YouTubeAnalytics_EmptyResponse');
@@ -0,0 +1,221 @@
<?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\YouTubeAnalytics;
class ErrorProto extends \Google\Collection
{
/**
* location is an xpath-like path pointing to the request field that caused
* the error.
*/
public const LOCATION_TYPE_PATH = 'PATH';
/**
* other location type which can safely be shared externally.
*/
public const LOCATION_TYPE_OTHER = 'OTHER';
/**
* Location is request parameter. This maps to the {@link PARAMETERS} in
* {@link MessageLocation}.
*/
public const LOCATION_TYPE_PARAMETER = 'PARAMETER';
protected $collection_key = 'argument';
/**
* Error arguments, to be used when building user-friendly error messages
* given the error domain and code. Different error codes require different
* arguments.
*
* @var string[]
*/
public $argument;
/**
* Error code in the error domain. This should correspond to a value of the
* enum type whose name is in domain. See the core error domain in
* error_domain.proto.
*
* @var string
*/
public $code;
/**
* Debugging information, which should not be shared externally.
*
* @var string
*/
public $debugInfo;
/**
* Error domain. RoSy services can define their own domain and error codes.
* This should normally be the name of an enum type, such as:
* gdata.CoreErrorDomain
*
* @var string
*/
public $domain;
/**
* A short explanation for the error, which can be shared outside Google.
* Please set domain, code and arguments whenever possible instead of this
* error message so that external APIs can build safe error messages
* themselves. External messages built in a RoSy interface will most likely
* refer to information and concepts that are not available externally and
* should not be exposed. It is safer if external APIs can understand the
* errors and decide what the error message should look like.
*
* @var string
*/
public $externalErrorMessage;
/**
* Location of the error, as specified by the location type. If location_type
* is PATH, this should be a path to a field that's relative to the request,
* using FieldPath notation (net/proto2/util/public/field_path.h). Examples:
* authenticated_user.gaia_id resource.address[2].country
*
* @var string
*/
public $location;
/**
* @var string
*/
public $locationType;
/**
* Error arguments, to be used when building user-friendly error messages
* given the error domain and code. Different error codes require different
* arguments.
*
* @param string[] $argument
*/
public function setArgument($argument)
{
$this->argument = $argument;
}
/**
* @return string[]
*/
public function getArgument()
{
return $this->argument;
}
/**
* Error code in the error domain. This should correspond to a value of the
* enum type whose name is in domain. See the core error domain in
* error_domain.proto.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* Debugging information, which should not be shared externally.
*
* @param string $debugInfo
*/
public function setDebugInfo($debugInfo)
{
$this->debugInfo = $debugInfo;
}
/**
* @return string
*/
public function getDebugInfo()
{
return $this->debugInfo;
}
/**
* Error domain. RoSy services can define their own domain and error codes.
* This should normally be the name of an enum type, such as:
* gdata.CoreErrorDomain
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* A short explanation for the error, which can be shared outside Google.
* Please set domain, code and arguments whenever possible instead of this
* error message so that external APIs can build safe error messages
* themselves. External messages built in a RoSy interface will most likely
* refer to information and concepts that are not available externally and
* should not be exposed. It is safer if external APIs can understand the
* errors and decide what the error message should look like.
*
* @param string $externalErrorMessage
*/
public function setExternalErrorMessage($externalErrorMessage)
{
$this->externalErrorMessage = $externalErrorMessage;
}
/**
* @return string
*/
public function getExternalErrorMessage()
{
return $this->externalErrorMessage;
}
/**
* Location of the error, as specified by the location type. If location_type
* is PATH, this should be a path to a field that's relative to the request,
* using FieldPath notation (net/proto2/util/public/field_path.h). Examples:
* authenticated_user.gaia_id resource.address[2].country
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param self::LOCATION_TYPE_* $locationType
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return self::LOCATION_TYPE_*
*/
public function getLocationType()
{
return $this->locationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorProto::class, 'Google_Service_YouTubeAnalytics_ErrorProto');
@@ -0,0 +1,107 @@
<?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\YouTubeAnalytics;
class Errors extends \Google\Collection
{
public const CODE_BAD_REQUEST = 'BAD_REQUEST';
public const CODE_FORBIDDEN = 'FORBIDDEN';
public const CODE_NOT_FOUND = 'NOT_FOUND';
public const CODE_CONFLICT = 'CONFLICT';
public const CODE_GONE = 'GONE';
public const CODE_PRECONDITION_FAILED = 'PRECONDITION_FAILED';
public const CODE_INTERNAL_ERROR = 'INTERNAL_ERROR';
public const CODE_SERVICE_UNAVAILABLE = 'SERVICE_UNAVAILABLE';
protected $collection_key = 'error';
/**
* Global error code. Deprecated and ignored. Set custom error codes in
* ErrorProto.domain and ErrorProto.code instead.
*
* @deprecated
* @var string
*/
public $code;
protected $errorType = ErrorProto::class;
protected $errorDataType = 'array';
/**
* Request identifier generated by the service, which can be used to identify
* the error in the logs
*
* @var string
*/
public $requestId;
/**
* Global error code. Deprecated and ignored. Set custom error codes in
* ErrorProto.domain and ErrorProto.code instead.
*
* Accepted values: BAD_REQUEST, FORBIDDEN, NOT_FOUND, CONFLICT, GONE,
* PRECONDITION_FAILED, INTERNAL_ERROR, SERVICE_UNAVAILABLE
*
* @deprecated
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @deprecated
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* Specific error description and codes
*
* @param ErrorProto[] $error
*/
public function setError($error)
{
$this->error = $error;
}
/**
* @return ErrorProto[]
*/
public function getError()
{
return $this->error;
}
/**
* Request identifier generated by the service, which can be used to identify
* the error in the logs
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Errors::class, 'Google_Service_YouTubeAnalytics_Errors');
@@ -0,0 +1,148 @@
<?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\YouTubeAnalytics;
class Group extends \Google\Model
{
protected $contentDetailsType = GroupContentDetails::class;
protected $contentDetailsDataType = '';
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* The Etag of this resource.
*
* @var string
*/
public $etag;
/**
* The ID that YouTube uses to uniquely identify the group.
*
* @var string
*/
public $id;
/**
* Identifies the API resource's type. The value will be `youtube#group`.
*
* @var string
*/
public $kind;
protected $snippetType = GroupSnippet::class;
protected $snippetDataType = '';
/**
* The `contentDetails` object contains additional information about the
* group, such as the number and type of items that it contains.
*
* @param GroupContentDetails $contentDetails
*/
public function setContentDetails(GroupContentDetails $contentDetails)
{
$this->contentDetails = $contentDetails;
}
/**
* @return GroupContentDetails
*/
public function getContentDetails()
{
return $this->contentDetails;
}
/**
* Apiary error details
*
* @param Errors $errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* The Etag of this resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The ID that YouTube uses to uniquely identify the group.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies the API resource's type. The value will be `youtube#group`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The `snippet` object contains basic information about the group, including
* its creation date and name.
*
* @param GroupSnippet $snippet
*/
public function setSnippet(GroupSnippet $snippet)
{
$this->snippet = $snippet;
}
/**
* @return GroupSnippet
*/
public function getSnippet()
{
return $this->snippet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Group::class, 'Google_Service_YouTubeAnalytics_Group');
@@ -0,0 +1,74 @@
<?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\YouTubeAnalytics;
class GroupContentDetails extends \Google\Model
{
/**
* The number of items in the group.
*
* @var string
*/
public $itemCount;
/**
* The type of resources that the group contains. Valid values for this
* property are: * `youtube#channel` * `youtube#playlist` * `youtube#video` *
* `youtubePartner#asset`
*
* @var string
*/
public $itemType;
/**
* The number of items in the group.
*
* @param string $itemCount
*/
public function setItemCount($itemCount)
{
$this->itemCount = $itemCount;
}
/**
* @return string
*/
public function getItemCount()
{
return $this->itemCount;
}
/**
* The type of resources that the group contains. Valid values for this
* property are: * `youtube#channel` * `youtube#playlist` * `youtube#video` *
* `youtubePartner#asset`
*
* @param string $itemType
*/
public function setItemType($itemType)
{
$this->itemType = $itemType;
}
/**
* @return string
*/
public function getItemType()
{
return $this->itemType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupContentDetails::class, 'Google_Service_YouTubeAnalytics_GroupContentDetails');
@@ -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\YouTubeAnalytics;
class GroupItem extends \Google\Model
{
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* The Etag of this resource.
*
* @var string
*/
public $etag;
/**
* The ID that YouTube uses to uniquely identify the group that contains the
* item.
*
* @var string
*/
public $groupId;
/**
* The ID that YouTube uses to uniquely identify the `channel`, `video`,
* `playlist`, or `asset` resource that is included in the group. Note that
* this ID refers specifically to the inclusion of that resource in a
* particular group and is different than the channel ID, video ID, playlist
* ID, or asset ID that uniquely identifies the resource itself. The
* `resource.id` property's value specifies the unique channel, video,
* playlist, or asset ID.
*
* @var string
*/
public $id;
/**
* Identifies the API resource's type. The value will be `youtube#groupItem`.
*
* @var string
*/
public $kind;
protected $resourceType = GroupItemResource::class;
protected $resourceDataType = '';
/**
* Apiary error details
*
* @param Errors $errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* The Etag of this resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The ID that YouTube uses to uniquely identify the group that contains the
* item.
*
* @param string $groupId
*/
public function setGroupId($groupId)
{
$this->groupId = $groupId;
}
/**
* @return string
*/
public function getGroupId()
{
return $this->groupId;
}
/**
* The ID that YouTube uses to uniquely identify the `channel`, `video`,
* `playlist`, or `asset` resource that is included in the group. Note that
* this ID refers specifically to the inclusion of that resource in a
* particular group and is different than the channel ID, video ID, playlist
* ID, or asset ID that uniquely identifies the resource itself. The
* `resource.id` property's value specifies the unique channel, video,
* playlist, or asset ID.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies the API resource's type. The value will be `youtube#groupItem`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The `resource` object contains information that identifies the item being
* added to the group.
*
* @param GroupItemResource $resource
*/
public function setResource(GroupItemResource $resource)
{
$this->resource = $resource;
}
/**
* @return GroupItemResource
*/
public function getResource()
{
return $this->resource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupItem::class, 'Google_Service_YouTubeAnalytics_GroupItem');
@@ -0,0 +1,76 @@
<?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\YouTubeAnalytics;
class GroupItemResource extends \Google\Model
{
/**
* The channel, video, playlist, or asset ID that YouTube uses to uniquely
* identify the item that is being added to the group.
*
* @var string
*/
public $id;
/**
* Identifies the type of resource being added to the group. Valid values for
* this property are: * `youtube#channel` * `youtube#playlist` *
* `youtube#video` * `youtubePartner#asset`
*
* @var string
*/
public $kind;
/**
* The channel, video, playlist, or asset ID that YouTube uses to uniquely
* identify the item that is being added to the group.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies the type of resource being added to the group. Valid values for
* this property are: * `youtube#channel` * `youtube#playlist` *
* `youtube#video` * `youtubePartner#asset`
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupItemResource::class, 'Google_Service_YouTubeAnalytics_GroupItemResource');
@@ -0,0 +1,72 @@
<?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\YouTubeAnalytics;
class GroupSnippet extends \Google\Model
{
/**
* The date and time that the group was created. The value is specified in ISO
* 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
*
* @var string
*/
public $publishedAt;
/**
* The group name. The value must be a non-empty string.
*
* @var string
*/
public $title;
/**
* The date and time that the group was created. The value is specified in ISO
* 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
*
* @param string $publishedAt
*/
public function setPublishedAt($publishedAt)
{
$this->publishedAt = $publishedAt;
}
/**
* @return string
*/
public function getPublishedAt()
{
return $this->publishedAt;
}
/**
* The group name. The value must be a non-empty string.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupSnippet::class, 'Google_Service_YouTubeAnalytics_GroupSnippet');
@@ -0,0 +1,110 @@
<?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\YouTubeAnalytics;
class ListGroupItemsResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* The Etag of this resource.
*
* @var string
*/
public $etag;
protected $itemsType = GroupItem::class;
protected $itemsDataType = 'array';
/**
* Identifies the API resource's type. The value will be
* `youtube#groupItemListResponse`.
*
* @var string
*/
public $kind;
/**
* Apiary error details
*
* @param Errors $errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* The Etag of this resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* A list of groups that match the API request parameters. Each item in the
* list represents a `groupItem` resource.
*
* @param GroupItem[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return GroupItem[]
*/
public function getItems()
{
return $this->items;
}
/**
* Identifies the API resource's type. The value will be
* `youtube#groupItemListResponse`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListGroupItemsResponse::class, 'Google_Service_YouTubeAnalytics_ListGroupItemsResponse');
@@ -0,0 +1,134 @@
<?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\YouTubeAnalytics;
class ListGroupsResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* The Etag of this resource.
*
* @var string
*/
public $etag;
protected $itemsType = Group::class;
protected $itemsDataType = 'array';
/**
* Identifies the API resource's type. The value will be
* `youtube#groupListResponse`.
*
* @var string
*/
public $kind;
/**
* The token that can be used as the value of the `pageToken` parameter to
* retrieve the next page in the result set.
*
* @var string
*/
public $nextPageToken;
/**
* Apiary error details
*
* @param Errors $errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* The Etag of this resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* A list of groups that match the API request parameters. Each item in the
* list represents a `group` resource.
*
* @param Group[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Group[]
*/
public function getItems()
{
return $this->items;
}
/**
* Identifies the API resource's type. The value will be
* `youtube#groupListResponse`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The token that can be used as the value of the `pageToken` parameter to
* retrieve the next page in the result set.
*
* @param string $nextPageToken
*/
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(ListGroupsResponse::class, 'Google_Service_YouTubeAnalytics_ListGroupsResponse');
@@ -0,0 +1,132 @@
<?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\YouTubeAnalytics;
class QueryResponse extends \Google\Collection
{
protected $collection_key = 'rows';
protected $columnHeadersType = ResultTableColumnHeader::class;
protected $columnHeadersDataType = 'array';
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* This value specifies the type of data included in the API response. For the
* query method, the kind property value will be
* `youtubeAnalytics#resultTable`.
*
* @var string
*/
public $kind;
/**
* The list contains all rows of the result table. Each item in the list is an
* array that contains comma-delimited data corresponding to a single row of
* data. The order of the comma-delimited data fields will match the order of
* the columns listed in the `columnHeaders` field. If no data is available
* for the given query, the `rows` element will be omitted from the response.
* The response for a query with the `day` dimension will not contain rows for
* the most recent days.
*
* @var array[]
*/
public $rows;
/**
* This value specifies information about the data returned in the `rows`
* fields. Each item in the `columnHeaders` list identifies a field returned
* in the `rows` value, which contains a list of comma-delimited data. The
* `columnHeaders` list will begin with the dimensions specified in the API
* request, which will be followed by the metrics specified in the API
* request. The order of both dimensions and metrics will match the ordering
* in the API request. For example, if the API request contains the parameters
* `dimensions=ageGroup,gender&metrics=viewerPercentage`, the API response
* will return columns in this order: `ageGroup`, `gender`,
* `viewerPercentage`.
*
* @param ResultTableColumnHeader[] $columnHeaders
*/
public function setColumnHeaders($columnHeaders)
{
$this->columnHeaders = $columnHeaders;
}
/**
* @return ResultTableColumnHeader[]
*/
public function getColumnHeaders()
{
return $this->columnHeaders;
}
/**
* When set, indicates that the operation failed.
*
* @param Errors $errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* This value specifies the type of data included in the API response. For the
* query method, the kind property value will be
* `youtubeAnalytics#resultTable`.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The list contains all rows of the result table. Each item in the list is an
* array that contains comma-delimited data corresponding to a single row of
* data. The order of the comma-delimited data fields will match the order of
* the columns listed in the `columnHeaders` field. If no data is available
* for the given query, the `rows` element will be omitted from the response.
* The response for a query with the `day` dimension will not contain rows for
* the most recent days.
*
* @param array[] $rows
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return array[]
*/
public function getRows()
{
return $this->rows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryResponse::class, 'Google_Service_YouTubeAnalytics_QueryResponse');
@@ -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\YouTubeAnalytics\Resource;
use Google\Service\YouTubeAnalytics\EmptyResponse;
use Google\Service\YouTubeAnalytics\GroupItem;
use Google\Service\YouTubeAnalytics\ListGroupItemsResponse;
/**
* The "groupItems" collection of methods.
* Typical usage is:
* <code>
* $youtubeAnalyticsService = new Google\Service\YouTubeAnalytics(...);
* $groupItems = $youtubeAnalyticsService->groupItems;
* </code>
*/
class GroupItems extends \Google\Service\Resource
{
/**
* Removes an item from a group. (groupItems.delete)
*
* @param array $optParams Optional parameters.
*
* @opt_param string id The `id` parameter specifies the YouTube group item ID
* of the group item that is being deleted.
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return EmptyResponse
* @throws \Google\Service\Exception
*/
public function delete($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], EmptyResponse::class);
}
/**
* Creates a group item. (groupItems.insert)
*
* @param GroupItem $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return GroupItem
* @throws \Google\Service\Exception
*/
public function insert(GroupItem $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], GroupItem::class);
}
/**
* Returns a collection of group items that match the API request parameters.
* (groupItems.listGroupItems)
*
* @param array $optParams Optional parameters.
*
* @opt_param string groupId The `groupId` parameter specifies the unique ID of
* the group for which you want to retrieve group items.
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return ListGroupItemsResponse
* @throws \Google\Service\Exception
*/
public function listGroupItems($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGroupItemsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupItems::class, 'Google_Service_YouTubeAnalytics_Resource_GroupItems');
@@ -0,0 +1,152 @@
<?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\YouTubeAnalytics\Resource;
use Google\Service\YouTubeAnalytics\EmptyResponse;
use Google\Service\YouTubeAnalytics\Group;
use Google\Service\YouTubeAnalytics\ListGroupsResponse;
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $youtubeAnalyticsService = new Google\Service\YouTubeAnalytics(...);
* $groups = $youtubeAnalyticsService->groups;
* </code>
*/
class Groups extends \Google\Service\Resource
{
/**
* Deletes a group. (groups.delete)
*
* @param array $optParams Optional parameters.
*
* @opt_param string id The `id` parameter specifies the YouTube group ID of the
* group that is being deleted.
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return EmptyResponse
* @throws \Google\Service\Exception
*/
public function delete($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], EmptyResponse::class);
}
/**
* Creates a group. (groups.insert)
*
* @param Group $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return Group
* @throws \Google\Service\Exception
*/
public function insert(Group $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Group::class);
}
/**
* Returns a collection of groups that match the API request parameters. For
* example, you can retrieve all groups that the authenticated user owns, or you
* can retrieve one or more groups by their unique IDs. (groups.listGroups)
*
* @param array $optParams Optional parameters.
*
* @opt_param string id The `id` parameter specifies a comma-separated list of
* the YouTube group ID(s) for the resource(s) that are being retrieved. Each
* group must be owned by the authenticated user. In a `group` resource, the
* `id` property specifies the group's YouTube group ID. Note that if you do not
* specify a value for the `id` parameter, then you must set the `mine`
* parameter to `true`.
* @opt_param bool mine This parameter can only be used in a properly authorized
* request. Set this parameter's value to true to retrieve all groups owned by
* the authenticated user.
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @opt_param string pageToken The `pageToken` parameter identifies a specific
* page in the result set that should be returned. In an API response, the
* `nextPageToken` property identifies the next page that can be retrieved.
* @return ListGroupsResponse
* @throws \Google\Service\Exception
*/
public function listGroups($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGroupsResponse::class);
}
/**
* Modifies a group. For example, you could change a group's title.
* (groups.update)
*
* @param Group $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string onBehalfOfContentOwner This parameter can only be used in a
* properly authorized request. **Note:** This parameter is intended exclusively
* for YouTube content partners that own and manage many different YouTube
* channels. The `onBehalfOfContentOwner` parameter indicates that the request's
* authorization credentials identify a YouTube user who is acting on behalf of
* the content owner specified in the parameter value. It allows content owners
* to authenticate once and get access to all their video and channel data,
* without having to provide authentication credentials for each individual
* channel. The account that the user authenticates with must be linked to the
* specified YouTube content owner.
* @return Group
* @throws \Google\Service\Exception
*/
public function update(Group $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Group::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Groups::class, 'Google_Service_YouTubeAnalytics_Resource_Groups');
@@ -0,0 +1,99 @@
<?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\YouTubeAnalytics\Resource;
use Google\Service\YouTubeAnalytics\QueryResponse;
/**
* The "reports" collection of methods.
* Typical usage is:
* <code>
* $youtubeAnalyticsService = new Google\Service\YouTubeAnalytics(...);
* $reports = $youtubeAnalyticsService->reports;
* </code>
*/
class Reports extends \Google\Service\Resource
{
/**
* Retrieve your YouTube Analytics reports. (reports.query)
*
* @param array $optParams Optional parameters.
*
* @opt_param string currency The currency to which financial metrics should be
* converted. The default is US Dollar (USD). If the result contains no
* financial metrics, this flag will be ignored. Responds with an error if the
* specified currency is not recognized.", pattern: [A-Z]{3}
* @opt_param string dimensions A comma-separated list of YouTube Analytics
* dimensions, such as `views` or `ageGroup,gender`. See the [Available
* Reports](/youtube/analytics/v2/available_reports) document for a list of the
* reports that you can retrieve and the dimensions used for those reports. Also
* see the [Dimensions](/youtube/analytics/v2/dimsmets/dims) document for
* definitions of those dimensions." pattern: [0-9a-zA-Z,]+
* @opt_param string endDate The end date for fetching YouTube Analytics data.
* The value should be in `YYYY-MM-DD` format. required: true, pattern:
* [0-9]{4}-[0-9]{2}-[0-9]{2}
* @opt_param string filters A list of filters that should be applied when
* retrieving YouTube Analytics data. The [Available
* Reports](/youtube/analytics/v2/available_reports) document identifies the
* dimensions that can be used to filter each report, and the
* [Dimensions](/youtube/analytics/v2/dimsmets/dims) document defines those
* dimensions. If a request uses multiple filters, join them together with a
* semicolon (`;`), and the returned result table will satisfy both filters. For
* example, a filters parameter value of `video==dMH0bHeiRNg;country==IT`
* restricts the result set to include data for the given video in Italy.",
* @opt_param string ids Identifies the YouTube channel or content owner for
* which you are retrieving YouTube Analytics data. - To request data for a
* YouTube user, set the `ids` parameter value to `channel==CHANNEL_ID`, where
* `CHANNEL_ID` specifies the unique YouTube channel ID. - To request data for a
* YouTube CMS content owner, set the `ids` parameter value to
* `contentOwner==OWNER_NAME`, where `OWNER_NAME` is the CMS name of the content
* owner. required: true, pattern: [a-zA-Z]+==[a-zA-Z0-9_+-]+
* @opt_param bool includeHistoricalChannelData If set to true historical data
* (i.e. channel data from before the linking of the channel to the content
* owner) will be retrieved.",
* @opt_param int maxResults The maximum number of rows to include in the
* response.", minValue: 1
* @opt_param string metrics A comma-separated list of YouTube Analytics
* metrics, such as `views` or `likes,dislikes`. See the [Available
* Reports](/youtube/analytics/v2/available_reports) document for a list of the
* reports that you can retrieve and the metrics available in each report, and
* see the [Metrics](/youtube/analytics/v2/dimsmets/mets) document for
* definitions of those metrics. required: true, pattern: [0-9a-zA-Z,]+
* @opt_param string sort A comma-separated list of dimensions or metrics that
* determine the sort order for YouTube Analytics data. By default the sort
* order is ascending. The '`-`' prefix causes descending sort order.", pattern:
* [-0-9a-zA-Z,]+
* @opt_param string startDate The start date for fetching YouTube Analytics
* data. The value should be in `YYYY-MM-DD` format. required: true, pattern:
* "[0-9]{4}-[0-9]{2}-[0-9]{2}
* @opt_param int startIndex An index of the first entity to retrieve. Use this
* parameter as a pagination mechanism along with the max-results parameter
* (one-based, inclusive).", minValue: 1
* @return QueryResponse
* @throws \Google\Service\Exception
*/
public function query($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('query', [$params], QueryResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Reports::class, 'Google_Service_YouTubeAnalytics_Resource_Reports');
@@ -0,0 +1,92 @@
<?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\YouTubeAnalytics;
class ResultTableColumnHeader extends \Google\Model
{
/**
* The type of the column (`DIMENSION` or `METRIC`).
*
* @var string
*/
public $columnType;
/**
* The type of the data in the column (`STRING`, `INTEGER`, `FLOAT`, etc.).
*
* @var string
*/
public $dataType;
/**
* The name of the dimension or metric.
*
* @var string
*/
public $name;
/**
* The type of the column (`DIMENSION` or `METRIC`).
*
* @param string $columnType
*/
public function setColumnType($columnType)
{
$this->columnType = $columnType;
}
/**
* @return string
*/
public function getColumnType()
{
return $this->columnType;
}
/**
* The type of the data in the column (`STRING`, `INTEGER`, `FLOAT`, etc.).
*
* @param string $dataType
*/
public function setDataType($dataType)
{
$this->dataType = $dataType;
}
/**
* @return string
*/
public function getDataType()
{
return $this->dataType;
}
/**
* The name of the dimension or metric.
*
* @param string $name
*/
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(ResultTableColumnHeader::class, 'Google_Service_YouTubeAnalytics_ResultTableColumnHeader');