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,254 @@
<?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\Blogger;
class Blog extends \Google\Model
{
/**
* @var string
*/
public $customMetaData;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
protected $localeType = BlogLocale::class;
protected $localeDataType = '';
/**
* @var string
*/
public $name;
protected $pagesType = BlogPages::class;
protected $pagesDataType = '';
protected $postsType = BlogPosts::class;
protected $postsDataType = '';
/**
* @var string
*/
public $published;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $updated;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setCustomMetaData($customMetaData)
{
$this->customMetaData = $customMetaData;
}
/**
* @return string
*/
public function getCustomMetaData()
{
return $this->customMetaData;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param BlogLocale
*/
public function setLocale(BlogLocale $locale)
{
$this->locale = $locale;
}
/**
* @return BlogLocale
*/
public function getLocale()
{
return $this->locale;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param BlogPages
*/
public function setPages(BlogPages $pages)
{
$this->pages = $pages;
}
/**
* @return BlogPages
*/
public function getPages()
{
return $this->pages;
}
/**
* @param BlogPosts
*/
public function setPosts(BlogPosts $posts)
{
$this->posts = $posts;
}
/**
* @return BlogPosts
*/
public function getPosts()
{
return $this->posts;
}
/**
* @param string
*/
public function setPublished($published)
{
$this->published = $published;
}
/**
* @return string
*/
public function getPublished()
{
return $this->published;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Blog::class, 'Google_Service_Blogger_Blog');

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\Blogger;
class BlogList extends \Google\Collection
{
protected $collection_key = 'items';
protected $blogUserInfosType = BlogUserInfo::class;
protected $blogUserInfosDataType = 'array';
protected $itemsType = Blog::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @param BlogUserInfo[]
*/
public function setBlogUserInfos($blogUserInfos)
{
$this->blogUserInfos = $blogUserInfos;
}
/**
* @return BlogUserInfo[]
*/
public function getBlogUserInfos()
{
return $this->blogUserInfos;
}
/**
* @param Blog[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Blog[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
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(BlogList::class, 'Google_Service_Blogger_BlogList');

View File

@@ -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\Blogger;
class BlogLocale extends \Google\Model
{
/**
* @var string
*/
public $country;
/**
* @var string
*/
public $language;
/**
* @var string
*/
public $variant;
/**
* @param string
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* @param string
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* @param string
*/
public function setVariant($variant)
{
$this->variant = $variant;
}
/**
* @return string
*/
public function getVariant()
{
return $this->variant;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogLocale::class, 'Google_Service_Blogger_BlogLocale');

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\Blogger;
class BlogPages extends \Google\Model
{
/**
* @var string
*/
public $selfLink;
/**
* @var int
*/
public $totalItems;
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param int
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return int
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogPages::class, 'Google_Service_Blogger_BlogPages');

View File

@@ -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\Blogger;
class BlogPerUserInfo extends \Google\Model
{
/**
* @var string
*/
public $blogId;
/**
* @var bool
*/
public $hasAdminAccess;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $photosAlbumKey;
/**
* @var string
*/
public $role;
/**
* @var string
*/
public $userId;
/**
* @param string
*/
public function setBlogId($blogId)
{
$this->blogId = $blogId;
}
/**
* @return string
*/
public function getBlogId()
{
return $this->blogId;
}
/**
* @param bool
*/
public function setHasAdminAccess($hasAdminAccess)
{
$this->hasAdminAccess = $hasAdminAccess;
}
/**
* @return bool
*/
public function getHasAdminAccess()
{
return $this->hasAdminAccess;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPhotosAlbumKey($photosAlbumKey)
{
$this->photosAlbumKey = $photosAlbumKey;
}
/**
* @return string
*/
public function getPhotosAlbumKey()
{
return $this->photosAlbumKey;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* @param string
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogPerUserInfo::class, 'Google_Service_Blogger_BlogPerUserInfo');

View File

@@ -0,0 +1,79 @@
<?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\Blogger;
class BlogPosts extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Post::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $selfLink;
/**
* @var int
*/
public $totalItems;
/**
* @param Post[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Post[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param int
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return int
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogPosts::class, 'Google_Service_Blogger_BlogPosts');

View File

@@ -0,0 +1,79 @@
<?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\Blogger;
class BlogUserInfo extends \Google\Model
{
protected $internal_gapi_mappings = [
"blogUserInfo" => "blog_user_info",
];
protected $blogType = Blog::class;
protected $blogDataType = '';
protected $blogUserInfoType = BlogPerUserInfo::class;
protected $blogUserInfoDataType = '';
/**
* @var string
*/
public $kind;
/**
* @param Blog
*/
public function setBlog(Blog $blog)
{
$this->blog = $blog;
}
/**
* @return Blog
*/
public function getBlog()
{
return $this->blog;
}
/**
* @param BlogPerUserInfo
*/
public function setBlogUserInfo(BlogPerUserInfo $blogUserInfo)
{
$this->blogUserInfo = $blogUserInfo;
}
/**
* @return BlogPerUserInfo
*/
public function getBlogUserInfo()
{
return $this->blogUserInfo;
}
/**
* @param string
*/
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(BlogUserInfo::class, 'Google_Service_Blogger_BlogUserInfo');

View File

@@ -0,0 +1,216 @@
<?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\Blogger;
class Comment extends \Google\Model
{
protected $authorType = CommentAuthor::class;
protected $authorDataType = '';
protected $blogType = CommentBlog::class;
protected $blogDataType = '';
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $id;
protected $inReplyToType = CommentInReplyTo::class;
protected $inReplyToDataType = '';
/**
* @var string
*/
public $kind;
protected $postType = CommentPost::class;
protected $postDataType = '';
/**
* @var string
*/
public $published;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $updated;
/**
* @param CommentAuthor
*/
public function setAuthor(CommentAuthor $author)
{
$this->author = $author;
}
/**
* @return CommentAuthor
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param CommentBlog
*/
public function setBlog(CommentBlog $blog)
{
$this->blog = $blog;
}
/**
* @return CommentBlog
*/
public function getBlog()
{
return $this->blog;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param CommentInReplyTo
*/
public function setInReplyTo(CommentInReplyTo $inReplyTo)
{
$this->inReplyTo = $inReplyTo;
}
/**
* @return CommentInReplyTo
*/
public function getInReplyTo()
{
return $this->inReplyTo;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param CommentPost
*/
public function setPost(CommentPost $post)
{
$this->post = $post;
}
/**
* @return CommentPost
*/
public function getPost()
{
return $this->post;
}
/**
* @param string
*/
public function setPublished($published)
{
$this->published = $published;
}
/**
* @return string
*/
public function getPublished()
{
return $this->published;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Comment::class, 'Google_Service_Blogger_Comment');

View File

@@ -0,0 +1,96 @@
<?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\Blogger;
class CommentAuthor extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $id;
protected $imageType = CommentAuthorImage::class;
protected $imageDataType = '';
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param CommentAuthorImage
*/
public function setImage(CommentAuthorImage $image)
{
$this->image = $image;
}
/**
* @return CommentAuthorImage
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentAuthor::class, 'Google_Service_Blogger_CommentAuthor');

View File

@@ -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\Blogger;
class CommentAuthorImage extends \Google\Model
{
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentAuthorImage::class, 'Google_Service_Blogger_CommentAuthorImage');

View File

@@ -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\Blogger;
class CommentBlog extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentBlog::class, 'Google_Service_Blogger_CommentBlog');

View File

@@ -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\Blogger;
class CommentInReplyTo extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentInReplyTo::class, 'Google_Service_Blogger_CommentInReplyTo');

View File

@@ -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\Blogger;
class CommentList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = Comment::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $prevPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param Comment[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Comment[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setPrevPageToken($prevPageToken)
{
$this->prevPageToken = $prevPageToken;
}
/**
* @return string
*/
public function getPrevPageToken()
{
return $this->prevPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentList::class, 'Google_Service_Blogger_CommentList');

View File

@@ -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\Blogger;
class CommentPost extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommentPost::class, 'Google_Service_Blogger_CommentPost');

View File

@@ -0,0 +1,256 @@
<?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\Blogger;
class Page extends \Google\Model
{
protected $authorType = PageAuthor::class;
protected $authorDataType = '';
protected $blogType = PageBlog::class;
protected $blogDataType = '';
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $published;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $trashed;
/**
* @var string
*/
public $updated;
/**
* @var string
*/
public $url;
/**
* @param PageAuthor
*/
public function setAuthor(PageAuthor $author)
{
$this->author = $author;
}
/**
* @return PageAuthor
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param PageBlog
*/
public function setBlog(PageBlog $blog)
{
$this->blog = $blog;
}
/**
* @return PageBlog
*/
public function getBlog()
{
return $this->blog;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPublished($published)
{
$this->published = $published;
}
/**
* @return string
*/
public function getPublished()
{
return $this->published;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setTrashed($trashed)
{
$this->trashed = $trashed;
}
/**
* @return string
*/
public function getTrashed()
{
return $this->trashed;
}
/**
* @param string
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Page::class, 'Google_Service_Blogger_Page');

View File

@@ -0,0 +1,96 @@
<?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\Blogger;
class PageAuthor extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $id;
protected $imageType = PageAuthorImage::class;
protected $imageDataType = '';
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param PageAuthorImage
*/
public function setImage(PageAuthorImage $image)
{
$this->image = $image;
}
/**
* @return PageAuthorImage
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageAuthor::class, 'Google_Service_Blogger_PageAuthor');

View File

@@ -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\Blogger;
class PageAuthorImage extends \Google\Model
{
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageAuthorImage::class, 'Google_Service_Blogger_PageAuthorImage');

View File

@@ -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\Blogger;
class PageBlog extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageBlog::class, 'Google_Service_Blogger_PageBlog');

View File

@@ -0,0 +1,97 @@
<?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\Blogger;
class PageList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = Page::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param Page[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Page[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(PageList::class, 'Google_Service_Blogger_PageList');

View File

@@ -0,0 +1,79 @@
<?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\Blogger;
class Pageviews extends \Google\Collection
{
protected $collection_key = 'counts';
/**
* @var string
*/
public $blogId;
protected $countsType = PageviewsCounts::class;
protected $countsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setBlogId($blogId)
{
$this->blogId = $blogId;
}
/**
* @return string
*/
public function getBlogId()
{
return $this->blogId;
}
/**
* @param PageviewsCounts[]
*/
public function setCounts($counts)
{
$this->counts = $counts;
}
/**
* @return PageviewsCounts[]
*/
public function getCounts()
{
return $this->counts;
}
/**
* @param string
*/
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(Pageviews::class, 'Google_Service_Blogger_Pageviews');

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\Blogger;
class PageviewsCounts extends \Google\Model
{
/**
* @var string
*/
public $count;
/**
* @var string
*/
public $timeRange;
/**
* @param string
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setTimeRange($timeRange)
{
$this->timeRange = $timeRange;
}
/**
* @return string
*/
public function getTimeRange()
{
return $this->timeRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageviewsCounts::class, 'Google_Service_Blogger_PageviewsCounts');

View File

@@ -0,0 +1,377 @@
<?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\Blogger;
class Post extends \Google\Collection
{
protected $collection_key = 'labels';
protected $authorType = PostAuthor::class;
protected $authorDataType = '';
protected $blogType = PostBlog::class;
protected $blogDataType = '';
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $customMetaData;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $id;
protected $imagesType = PostImages::class;
protected $imagesDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $labels;
protected $locationType = PostLocation::class;
protected $locationDataType = '';
/**
* @var string
*/
public $published;
/**
* @var string
*/
public $readerComments;
protected $repliesType = PostReplies::class;
protected $repliesDataType = '';
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $titleLink;
/**
* @var string
*/
public $trashed;
/**
* @var string
*/
public $updated;
/**
* @var string
*/
public $url;
/**
* @param PostAuthor
*/
public function setAuthor(PostAuthor $author)
{
$this->author = $author;
}
/**
* @return PostAuthor
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param PostBlog
*/
public function setBlog(PostBlog $blog)
{
$this->blog = $blog;
}
/**
* @return PostBlog
*/
public function getBlog()
{
return $this->blog;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setCustomMetaData($customMetaData)
{
$this->customMetaData = $customMetaData;
}
/**
* @return string
*/
public function getCustomMetaData()
{
return $this->customMetaData;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param PostImages[]
*/
public function setImages($images)
{
$this->images = $images;
}
/**
* @return PostImages[]
*/
public function getImages()
{
return $this->images;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param PostLocation
*/
public function setLocation(PostLocation $location)
{
$this->location = $location;
}
/**
* @return PostLocation
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setPublished($published)
{
$this->published = $published;
}
/**
* @return string
*/
public function getPublished()
{
return $this->published;
}
/**
* @param string
*/
public function setReaderComments($readerComments)
{
$this->readerComments = $readerComments;
}
/**
* @return string
*/
public function getReaderComments()
{
return $this->readerComments;
}
/**
* @param PostReplies
*/
public function setReplies(PostReplies $replies)
{
$this->replies = $replies;
}
/**
* @return PostReplies
*/
public function getReplies()
{
return $this->replies;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setTitleLink($titleLink)
{
$this->titleLink = $titleLink;
}
/**
* @return string
*/
public function getTitleLink()
{
return $this->titleLink;
}
/**
* @param string
*/
public function setTrashed($trashed)
{
$this->trashed = $trashed;
}
/**
* @return string
*/
public function getTrashed()
{
return $this->trashed;
}
/**
* @param string
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Post::class, 'Google_Service_Blogger_Post');

View File

@@ -0,0 +1,96 @@
<?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\Blogger;
class PostAuthor extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $id;
protected $imageType = PostAuthorImage::class;
protected $imageDataType = '';
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param PostAuthorImage
*/
public function setImage(PostAuthorImage $image)
{
$this->image = $image;
}
/**
* @return PostAuthorImage
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostAuthor::class, 'Google_Service_Blogger_PostAuthor');

View File

@@ -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\Blogger;
class PostAuthorImage extends \Google\Model
{
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostAuthorImage::class, 'Google_Service_Blogger_PostAuthorImage');

View File

@@ -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\Blogger;
class PostBlog extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostBlog::class, 'Google_Service_Blogger_PostBlog');

View File

@@ -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\Blogger;
class PostImages extends \Google\Model
{
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostImages::class, 'Google_Service_Blogger_PostImages');

View File

@@ -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\Blogger;
class PostList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = Post::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $prevPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param Post[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Post[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setPrevPageToken($prevPageToken)
{
$this->prevPageToken = $prevPageToken;
}
/**
* @return string
*/
public function getPrevPageToken()
{
return $this->prevPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostList::class, 'Google_Service_Blogger_PostList');

View File

@@ -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\Blogger;
class PostLocation extends \Google\Model
{
public $lat;
public $lng;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $span;
public function setLat($lat)
{
$this->lat = $lat;
}
public function getLat()
{
return $this->lat;
}
public function setLng($lng)
{
$this->lng = $lng;
}
public function getLng()
{
return $this->lng;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setSpan($span)
{
$this->span = $span;
}
/**
* @return string
*/
public function getSpan()
{
return $this->span;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostLocation::class, 'Google_Service_Blogger_PostLocation');

View File

@@ -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\Blogger;
class PostPerUserInfo extends \Google\Model
{
/**
* @var string
*/
public $blogId;
/**
* @var bool
*/
public $hasEditAccess;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $postId;
/**
* @var string
*/
public $userId;
/**
* @param string
*/
public function setBlogId($blogId)
{
$this->blogId = $blogId;
}
/**
* @return string
*/
public function getBlogId()
{
return $this->blogId;
}
/**
* @param bool
*/
public function setHasEditAccess($hasEditAccess)
{
$this->hasEditAccess = $hasEditAccess;
}
/**
* @return bool
*/
public function getHasEditAccess()
{
return $this->hasEditAccess;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPostId($postId)
{
$this->postId = $postId;
}
/**
* @return string
*/
public function getPostId()
{
return $this->postId;
}
/**
* @param string
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* @return string
*/
public function getUserId()
{
return $this->userId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostPerUserInfo::class, 'Google_Service_Blogger_PostPerUserInfo');

View File

@@ -0,0 +1,79 @@
<?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\Blogger;
class PostReplies extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Comment::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $totalItems;
/**
* @param Comment[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Comment[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return string
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostReplies::class, 'Google_Service_Blogger_PostReplies');

View File

@@ -0,0 +1,79 @@
<?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\Blogger;
class PostUserInfo extends \Google\Model
{
protected $internal_gapi_mappings = [
"postUserInfo" => "post_user_info",
];
/**
* @var string
*/
public $kind;
protected $postType = Post::class;
protected $postDataType = '';
protected $postUserInfoType = PostPerUserInfo::class;
protected $postUserInfoDataType = '';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param Post
*/
public function setPost(Post $post)
{
$this->post = $post;
}
/**
* @return Post
*/
public function getPost()
{
return $this->post;
}
/**
* @param PostPerUserInfo
*/
public function setPostUserInfo(PostPerUserInfo $postUserInfo)
{
$this->postUserInfo = $postUserInfo;
}
/**
* @return PostPerUserInfo
*/
public function getPostUserInfo()
{
return $this->postUserInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostUserInfo::class, 'Google_Service_Blogger_PostUserInfo');

View File

@@ -0,0 +1,79 @@
<?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\Blogger;
class PostUserInfosList extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = PostUserInfo::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param PostUserInfo[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return PostUserInfo[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(PostUserInfosList::class, 'Google_Service_Blogger_PostUserInfosList');

View File

@@ -0,0 +1,52 @@
<?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\Blogger\Resource;
use Google\Service\Blogger\BlogUserInfo;
/**
* The "blogUserInfos" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $blogUserInfos = $bloggerService->blogUserInfos;
* </code>
*/
class BlogUserInfos extends \Google\Service\Resource
{
/**
* Gets one blog and user info pair by blog id and user id. (blogUserInfos.get)
*
* @param string $userId
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string maxPosts
* @return BlogUserInfo
* @throws \Google\Service\Exception
*/
public function get($userId, $blogId, $optParams = [])
{
$params = ['userId' => $userId, 'blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BlogUserInfo::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlogUserInfos::class, 'Google_Service_Blogger_Resource_BlogUserInfos');

View File

@@ -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\Blogger\Resource;
use Google\Service\Blogger\Blog;
use Google\Service\Blogger\BlogList;
/**
* The "blogs" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $blogs = $bloggerService->blogs;
* </code>
*/
class Blogs extends \Google\Service\Resource
{
/**
* Gets a blog by id. (blogs.get)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string maxPosts
* @opt_param string view
* @return Blog
* @throws \Google\Service\Exception
*/
public function get($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Blog::class);
}
/**
* Gets a blog by url. (blogs.getByUrl)
*
* @param string $url
* @param array $optParams Optional parameters.
*
* @opt_param string view
* @return Blog
* @throws \Google\Service\Exception
*/
public function getByUrl($url, $optParams = [])
{
$params = ['url' => $url];
$params = array_merge($params, $optParams);
return $this->call('getByUrl', [$params], Blog::class);
}
/**
* Lists blogs by user. (blogs.listByUser)
*
* @param string $userId
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchUserInfo
* @opt_param string role
* @opt_param string status Default value of status is LIVE.
* @opt_param string view
* @return BlogList
* @throws \Google\Service\Exception
*/
public function listByUser($userId, $optParams = [])
{
$params = ['userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('listByUser', [$params], BlogList::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Blogs::class, 'Google_Service_Blogger_Resource_Blogs');

View File

@@ -0,0 +1,164 @@
<?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\Blogger\Resource;
use Google\Service\Blogger\Comment;
use Google\Service\Blogger\CommentList;
/**
* The "comments" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $comments = $bloggerService->comments;
* </code>
*/
class Comments extends \Google\Service\Resource
{
/**
* Marks a comment as not spam by blog id, post id and comment id.
* (comments.approve)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function approve($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params], Comment::class);
}
/**
* Deletes a comment by blog id, post id and comment id. (comments.delete)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a comment by id. (comments.get)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
*
* @opt_param string view
* @return Comment
* @throws \Google\Service\Exception
*/
public function get($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Comment::class);
}
/**
* Lists comments. (comments.listComments)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param string endDate
* @opt_param bool fetchBodies
* @opt_param string maxResults
* @opt_param string pageToken
* @opt_param string startDate
* @opt_param string status
* @opt_param string view
* @return CommentList
* @throws \Google\Service\Exception
*/
public function listComments($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], CommentList::class);
}
/**
* Lists comments by blog. (comments.listByBlog)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string endDate
* @opt_param bool fetchBodies
* @opt_param string maxResults
* @opt_param string pageToken
* @opt_param string startDate
* @opt_param string status
* @return CommentList
* @throws \Google\Service\Exception
*/
public function listByBlog($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('listByBlog', [$params], CommentList::class);
}
/**
* Marks a comment as spam by blog id, post id and comment id.
* (comments.markAsSpam)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function markAsSpam($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('markAsSpam', [$params], Comment::class);
}
/**
* Removes the content of a comment by blog id, post id and comment id.
* (comments.removeContent)
*
* @param string $blogId
* @param string $postId
* @param string $commentId
* @param array $optParams Optional parameters.
* @return Comment
* @throws \Google\Service\Exception
*/
public function removeContent($blogId, $postId, $commentId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId];
$params = array_merge($params, $optParams);
return $this->call('removeContent', [$params], Comment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Comments::class, 'Google_Service_Blogger_Resource_Comments');

View File

@@ -0,0 +1,51 @@
<?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\Blogger\Resource;
use Google\Service\Blogger\Pageviews as PageviewsModel;
/**
* The "pageViews" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $pageViews = $bloggerService->pageViews;
* </code>
*/
class PageViews extends \Google\Service\Resource
{
/**
* Gets page views by blog id. (pageViews.get)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string range
* @return PageviewsModel
* @throws \Google\Service\Exception
*/
public function get($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PageviewsModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PageViews::class, 'Google_Service_Blogger_Resource_PageViews');

View File

@@ -0,0 +1,174 @@
<?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\Blogger\Resource;
use Google\Service\Blogger\Page;
use Google\Service\Blogger\PageList;
/**
* The "pages" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $pages = $bloggerService->pages;
* </code>
*/
class Pages extends \Google\Service\Resource
{
/**
* Deletes a page by blog id and page id. (pages.delete)
*
* @param string $blogId
* @param string $pageId
* @param array $optParams Optional parameters.
*
* @opt_param bool useTrash Move to Trash if possible
* @throws \Google\Service\Exception
*/
public function delete($blogId, $pageId, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a page by blog id and page id. (pages.get)
*
* @param string $blogId
* @param string $pageId
* @param array $optParams Optional parameters.
*
* @opt_param string view
* @return Page
* @throws \Google\Service\Exception
*/
public function get($blogId, $pageId, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Page::class);
}
/**
* Inserts a page. (pages.insert)
*
* @param string $blogId
* @param Page $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool isDraft
* @return Page
* @throws \Google\Service\Exception
*/
public function insert($blogId, Page $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Page::class);
}
/**
* Lists pages. (pages.listPages)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBodies
* @opt_param string maxResults
* @opt_param string pageToken
* @opt_param string status
* @opt_param string view
* @return PageList
* @throws \Google\Service\Exception
*/
public function listPages($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PageList::class);
}
/**
* Patches a page. (pages.patch)
*
* @param string $blogId
* @param string $pageId
* @param Page $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool publish
* @opt_param bool revert
* @return Page
* @throws \Google\Service\Exception
*/
public function patch($blogId, $pageId, Page $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Page::class);
}
/**
* Publishes a page. (pages.publish)
*
* @param string $blogId
* @param string $pageId
* @param array $optParams Optional parameters.
* @return Page
* @throws \Google\Service\Exception
*/
public function publish($blogId, $pageId, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], Page::class);
}
/**
* Reverts a published or scheduled page to draft state. (pages.revert)
*
* @param string $blogId
* @param string $pageId
* @param array $optParams Optional parameters.
* @return Page
* @throws \Google\Service\Exception
*/
public function revert($blogId, $pageId, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId];
$params = array_merge($params, $optParams);
return $this->call('revert', [$params], Page::class);
}
/**
* Updates a page by blog id and page id. (pages.update)
*
* @param string $blogId
* @param string $pageId
* @param Page $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool publish
* @opt_param bool revert
* @return Page
* @throws \Google\Service\Exception
*/
public function update($blogId, $pageId, Page $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Page::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Pages::class, 'Google_Service_Blogger_Resource_Pages');

View File

@@ -0,0 +1,79 @@
<?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\Blogger\Resource;
use Google\Service\Blogger\PostUserInfo;
use Google\Service\Blogger\PostUserInfosList;
/**
* The "postUserInfos" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $postUserInfos = $bloggerService->postUserInfos;
* </code>
*/
class PostUserInfos extends \Google\Service\Resource
{
/**
* Gets one post and user info pair, by post_id and user_id. (postUserInfos.get)
*
* @param string $userId
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param string maxComments
* @return PostUserInfo
* @throws \Google\Service\Exception
*/
public function get($userId, $blogId, $postId, $optParams = [])
{
$params = ['userId' => $userId, 'blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PostUserInfo::class);
}
/**
* Lists post and user info pairs. (postUserInfos.listPostUserInfos)
*
* @param string $userId
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string endDate
* @opt_param bool fetchBodies
* @opt_param string labels
* @opt_param string maxResults
* @opt_param string orderBy
* @opt_param string pageToken
* @opt_param string startDate
* @opt_param string status
* @opt_param string view
* @return PostUserInfosList
* @throws \Google\Service\Exception
*/
public function listPostUserInfos($userId, $blogId, $optParams = [])
{
$params = ['userId' => $userId, 'blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PostUserInfosList::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PostUserInfos::class, 'Google_Service_Blogger_Resource_PostUserInfos');

View File

@@ -0,0 +1,230 @@
<?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\Blogger\Resource;
use Google\Service\Blogger\Post;
use Google\Service\Blogger\PostList;
/**
* The "posts" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $posts = $bloggerService->posts;
* </code>
*/
class Posts extends \Google\Service\Resource
{
/**
* Deletes a post by blog id and post id. (posts.delete)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param bool useTrash Move to Trash if possible
* @throws \Google\Service\Exception
*/
public function delete($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Gets a post by blog id and post id (posts.get)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBody
* @opt_param bool fetchImages
* @opt_param string maxComments
* @opt_param string view
* @return Post
* @throws \Google\Service\Exception
*/
public function get($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Post::class);
}
/**
* Gets a post by path. (posts.getByPath)
*
* @param string $blogId
* @param string $path
* @param array $optParams Optional parameters.
*
* @opt_param string maxComments
* @opt_param string view
* @return Post
* @throws \Google\Service\Exception
*/
public function getByPath($blogId, $path, $optParams = [])
{
$params = ['blogId' => $blogId, 'path' => $path];
$params = array_merge($params, $optParams);
return $this->call('getByPath', [$params], Post::class);
}
/**
* Inserts a post. (posts.insert)
*
* @param string $blogId
* @param Post $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBody
* @opt_param bool fetchImages
* @opt_param bool isDraft
* @return Post
* @throws \Google\Service\Exception
*/
public function insert($blogId, Post $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Post::class);
}
/**
* Lists posts. (posts.listPosts)
*
* @param string $blogId
* @param array $optParams Optional parameters.
*
* @opt_param string endDate
* @opt_param bool fetchBodies
* @opt_param bool fetchImages
* @opt_param string labels
* @opt_param string maxResults
* @opt_param string orderBy
* @opt_param string pageToken
* @opt_param string sortOption Sort direction applied to post list.
* @opt_param string startDate
* @opt_param string status
* @opt_param string view
* @return PostList
* @throws \Google\Service\Exception
*/
public function listPosts($blogId, $optParams = [])
{
$params = ['blogId' => $blogId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PostList::class);
}
/**
* Patches a post. (posts.patch)
*
* @param string $blogId
* @param string $postId
* @param Post $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBody
* @opt_param bool fetchImages
* @opt_param string maxComments
* @opt_param bool publish
* @opt_param bool revert
* @return Post
* @throws \Google\Service\Exception
*/
public function patch($blogId, $postId, Post $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Post::class);
}
/**
* Publishes a post. (posts.publish)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
*
* @opt_param string publishDate
* @return Post
* @throws \Google\Service\Exception
*/
public function publish($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], Post::class);
}
/**
* Reverts a published or scheduled post to draft state. (posts.revert)
*
* @param string $blogId
* @param string $postId
* @param array $optParams Optional parameters.
* @return Post
* @throws \Google\Service\Exception
*/
public function revert($blogId, $postId, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId];
$params = array_merge($params, $optParams);
return $this->call('revert', [$params], Post::class);
}
/**
* Searches for posts matching given query terms in the specified blog.
* (posts.search)
*
* @param string $blogId
* @param string $q
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBodies
* @opt_param string orderBy
* @return PostList
* @throws \Google\Service\Exception
*/
public function search($blogId, $q, $optParams = [])
{
$params = ['blogId' => $blogId, 'q' => $q];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], PostList::class);
}
/**
* Updates a post by blog id and post id. (posts.update)
*
* @param string $blogId
* @param string $postId
* @param Post $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool fetchBody
* @opt_param bool fetchImages
* @opt_param string maxComments
* @opt_param bool publish
* @opt_param bool revert
* @return Post
* @throws \Google\Service\Exception
*/
public function update($blogId, $postId, Post $postBody, $optParams = [])
{
$params = ['blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Post::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Posts::class, 'Google_Service_Blogger_Resource_Posts');

View File

@@ -0,0 +1,49 @@
<?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\Blogger\Resource;
use Google\Service\Blogger\User;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $bloggerService = new Google\Service\Blogger(...);
* $users = $bloggerService->users;
* </code>
*/
class Users extends \Google\Service\Resource
{
/**
* Gets one user by user_id. (users.get)
*
* @param string $userId
* @param array $optParams Optional parameters.
* @return User
* @throws \Google\Service\Exception
*/
public function get($userId, $optParams = [])
{
$params = ['userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], User::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Users::class, 'Google_Service_Blogger_Resource_Users');

View File

@@ -0,0 +1,184 @@
<?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\Blogger;
class User extends \Google\Model
{
/**
* @var string
*/
public $about;
protected $blogsType = UserBlogs::class;
protected $blogsDataType = '';
/**
* @var string
*/
public $created;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
protected $localeType = UserLocale::class;
protected $localeDataType = '';
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setAbout($about)
{
$this->about = $about;
}
/**
* @return string
*/
public function getAbout()
{
return $this->about;
}
/**
* @param UserBlogs
*/
public function setBlogs(UserBlogs $blogs)
{
$this->blogs = $blogs;
}
/**
* @return UserBlogs
*/
public function getBlogs()
{
return $this->blogs;
}
/**
* @param string
*/
public function setCreated($created)
{
$this->created = $created;
}
/**
* @return string
*/
public function getCreated()
{
return $this->created;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param UserLocale
*/
public function setLocale(UserLocale $locale)
{
$this->locale = $locale;
}
/**
* @return UserLocale
*/
public function getLocale()
{
return $this->locale;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(User::class, 'Google_Service_Blogger_User');

View File

@@ -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\Blogger;
class UserBlogs extends \Google\Model
{
/**
* @var string
*/
public $selfLink;
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserBlogs::class, 'Google_Service_Blogger_UserBlogs');

View File

@@ -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\Blogger;
class UserLocale extends \Google\Model
{
/**
* @var string
*/
public $country;
/**
* @var string
*/
public $language;
/**
* @var string
*/
public $variant;
/**
* @param string
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* @param string
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* @param string
*/
public function setVariant($variant)
{
$this->variant = $variant;
}
/**
* @return string
*/
public function getVariant()
{
return $this->variant;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserLocale::class, 'Google_Service_Blogger_UserLocale');