Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 402] [Versions 310 and 403]

   1  <?php
   2  /*
   3   * Copyright 2010 Google Inc.
   4   *
   5   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   6   * use this file except in compliance with the License. You may obtain a copy of
   7   * the License at
   8   *
   9   * http://www.apache.org/licenses/LICENSE-2.0
  10   *
  11   * Unless required by applicable law or agreed to in writing, software
  12   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14   * License for the specific language governing permissions and limitations under
  15   * the License.
  16   */
  17  
  18  /**
  19   * Service definition for Blogger (v3).
  20   *
  21   * <p>
  22   * API for access to the data within Blogger.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/blogger/docs/3.0/getting_started" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  class Google_Service_Blogger extends Google_Service
  32  {
  33    /** Manage your Blogger account. */
  34    const BLOGGER =
  35        "https://www.googleapis.com/auth/blogger";
  36    /** View your Blogger account. */
  37    const BLOGGER_READONLY =
  38        "https://www.googleapis.com/auth/blogger.readonly";
  39  
  40    public $blogUserInfos;
  41    public $blogs;
  42    public $comments;
  43    public $pageViews;
  44    public $pages;
  45    public $postUserInfos;
  46    public $posts;
  47    public $users;
  48    
  49  
  50    /**
  51     * Constructs the internal representation of the Blogger service.
  52     *
  53     * @param Google_Client $client
  54     */
  55    public function __construct(Google_Client $client)
  56    {
  57      parent::__construct($client);
  58      $this->rootUrl = 'https://www.googleapis.com/';
  59      $this->servicePath = 'blogger/v3/';
  60      $this->version = 'v3';
  61      $this->serviceName = 'blogger';
  62  
  63      $this->blogUserInfos = new Google_Service_Blogger_BlogUserInfos_Resource(
  64          $this,
  65          $this->serviceName,
  66          'blogUserInfos',
  67          array(
  68            'methods' => array(
  69              'get' => array(
  70                'path' => 'users/{userId}/blogs/{blogId}',
  71                'httpMethod' => 'GET',
  72                'parameters' => array(
  73                  'userId' => array(
  74                    'location' => 'path',
  75                    'type' => 'string',
  76                    'required' => true,
  77                  ),
  78                  'blogId' => array(
  79                    'location' => 'path',
  80                    'type' => 'string',
  81                    'required' => true,
  82                  ),
  83                  'maxPosts' => array(
  84                    'location' => 'query',
  85                    'type' => 'integer',
  86                  ),
  87                ),
  88              ),
  89            )
  90          )
  91      );
  92      $this->blogs = new Google_Service_Blogger_Blogs_Resource(
  93          $this,
  94          $this->serviceName,
  95          'blogs',
  96          array(
  97            'methods' => array(
  98              'get' => array(
  99                'path' => 'blogs/{blogId}',
 100                'httpMethod' => 'GET',
 101                'parameters' => array(
 102                  'blogId' => array(
 103                    'location' => 'path',
 104                    'type' => 'string',
 105                    'required' => true,
 106                  ),
 107                  'maxPosts' => array(
 108                    'location' => 'query',
 109                    'type' => 'integer',
 110                  ),
 111                  'view' => array(
 112                    'location' => 'query',
 113                    'type' => 'string',
 114                  ),
 115                ),
 116              ),'getByUrl' => array(
 117                'path' => 'blogs/byurl',
 118                'httpMethod' => 'GET',
 119                'parameters' => array(
 120                  'url' => array(
 121                    'location' => 'query',
 122                    'type' => 'string',
 123                    'required' => true,
 124                  ),
 125                  'view' => array(
 126                    'location' => 'query',
 127                    'type' => 'string',
 128                  ),
 129                ),
 130              ),'listByUser' => array(
 131                'path' => 'users/{userId}/blogs',
 132                'httpMethod' => 'GET',
 133                'parameters' => array(
 134                  'userId' => array(
 135                    'location' => 'path',
 136                    'type' => 'string',
 137                    'required' => true,
 138                  ),
 139                  'fetchUserInfo' => array(
 140                    'location' => 'query',
 141                    'type' => 'boolean',
 142                  ),
 143                  'status' => array(
 144                    'location' => 'query',
 145                    'type' => 'string',
 146                    'repeated' => true,
 147                  ),
 148                  'role' => array(
 149                    'location' => 'query',
 150                    'type' => 'string',
 151                    'repeated' => true,
 152                  ),
 153                  'view' => array(
 154                    'location' => 'query',
 155                    'type' => 'string',
 156                  ),
 157                ),
 158              ),
 159            )
 160          )
 161      );
 162      $this->comments = new Google_Service_Blogger_Comments_Resource(
 163          $this,
 164          $this->serviceName,
 165          'comments',
 166          array(
 167            'methods' => array(
 168              'approve' => array(
 169                'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve',
 170                'httpMethod' => 'POST',
 171                'parameters' => array(
 172                  'blogId' => array(
 173                    'location' => 'path',
 174                    'type' => 'string',
 175                    'required' => true,
 176                  ),
 177                  'postId' => array(
 178                    'location' => 'path',
 179                    'type' => 'string',
 180                    'required' => true,
 181                  ),
 182                  'commentId' => array(
 183                    'location' => 'path',
 184                    'type' => 'string',
 185                    'required' => true,
 186                  ),
 187                ),
 188              ),'delete' => array(
 189                'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}',
 190                'httpMethod' => 'DELETE',
 191                'parameters' => array(
 192                  'blogId' => array(
 193                    'location' => 'path',
 194                    'type' => 'string',
 195                    'required' => true,
 196                  ),
 197                  'postId' => array(
 198                    'location' => 'path',
 199                    'type' => 'string',
 200                    'required' => true,
 201                  ),
 202                  'commentId' => array(
 203                    'location' => 'path',
 204                    'type' => 'string',
 205                    'required' => true,
 206                  ),
 207                ),
 208              ),'get' => array(
 209                'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}',
 210                'httpMethod' => 'GET',
 211                'parameters' => array(
 212                  'blogId' => array(
 213                    'location' => 'path',
 214                    'type' => 'string',
 215                    'required' => true,
 216                  ),
 217                  'postId' => array(
 218                    'location' => 'path',
 219                    'type' => 'string',
 220                    'required' => true,
 221                  ),
 222                  'commentId' => array(
 223                    'location' => 'path',
 224                    'type' => 'string',
 225                    'required' => true,
 226                  ),
 227                  'view' => array(
 228                    'location' => 'query',
 229                    'type' => 'string',
 230                  ),
 231                ),
 232              ),'list' => array(
 233                'path' => 'blogs/{blogId}/posts/{postId}/comments',
 234                'httpMethod' => 'GET',
 235                'parameters' => array(
 236                  'blogId' => array(
 237                    'location' => 'path',
 238                    'type' => 'string',
 239                    'required' => true,
 240                  ),
 241                  'postId' => array(
 242                    'location' => 'path',
 243                    'type' => 'string',
 244                    'required' => true,
 245                  ),
 246                  'status' => array(
 247                    'location' => 'query',
 248                    'type' => 'string',
 249                    'repeated' => true,
 250                  ),
 251                  'startDate' => array(
 252                    'location' => 'query',
 253                    'type' => 'string',
 254                  ),
 255                  'endDate' => array(
 256                    'location' => 'query',
 257                    'type' => 'string',
 258                  ),
 259                  'maxResults' => array(
 260                    'location' => 'query',
 261                    'type' => 'integer',
 262                  ),
 263                  'pageToken' => array(
 264                    'location' => 'query',
 265                    'type' => 'string',
 266                  ),
 267                  'fetchBodies' => array(
 268                    'location' => 'query',
 269                    'type' => 'boolean',
 270                  ),
 271                  'view' => array(
 272                    'location' => 'query',
 273                    'type' => 'string',
 274                  ),
 275                ),
 276              ),'listByBlog' => array(
 277                'path' => 'blogs/{blogId}/comments',
 278                'httpMethod' => 'GET',
 279                'parameters' => array(
 280                  'blogId' => array(
 281                    'location' => 'path',
 282                    'type' => 'string',
 283                    'required' => true,
 284                  ),
 285                  'status' => array(
 286                    'location' => 'query',
 287                    'type' => 'string',
 288                    'repeated' => true,
 289                  ),
 290                  'startDate' => array(
 291                    'location' => 'query',
 292                    'type' => 'string',
 293                  ),
 294                  'endDate' => array(
 295                    'location' => 'query',
 296                    'type' => 'string',
 297                  ),
 298                  'maxResults' => array(
 299                    'location' => 'query',
 300                    'type' => 'integer',
 301                  ),
 302                  'pageToken' => array(
 303                    'location' => 'query',
 304                    'type' => 'string',
 305                  ),
 306                  'fetchBodies' => array(
 307                    'location' => 'query',
 308                    'type' => 'boolean',
 309                  ),
 310                ),
 311              ),'markAsSpam' => array(
 312                'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam',
 313                'httpMethod' => 'POST',
 314                'parameters' => array(
 315                  'blogId' => array(
 316                    'location' => 'path',
 317                    'type' => 'string',
 318                    'required' => true,
 319                  ),
 320                  'postId' => array(
 321                    'location' => 'path',
 322                    'type' => 'string',
 323                    'required' => true,
 324                  ),
 325                  'commentId' => array(
 326                    'location' => 'path',
 327                    'type' => 'string',
 328                    'required' => true,
 329                  ),
 330                ),
 331              ),'removeContent' => array(
 332                'path' => 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent',
 333                'httpMethod' => 'POST',
 334                'parameters' => array(
 335                  'blogId' => array(
 336                    'location' => 'path',
 337                    'type' => 'string',
 338                    'required' => true,
 339                  ),
 340                  'postId' => array(
 341                    'location' => 'path',
 342                    'type' => 'string',
 343                    'required' => true,
 344                  ),
 345                  'commentId' => array(
 346                    'location' => 'path',
 347                    'type' => 'string',
 348                    'required' => true,
 349                  ),
 350                ),
 351              ),
 352            )
 353          )
 354      );
 355      $this->pageViews = new Google_Service_Blogger_PageViews_Resource(
 356          $this,
 357          $this->serviceName,
 358          'pageViews',
 359          array(
 360            'methods' => array(
 361              'get' => array(
 362                'path' => 'blogs/{blogId}/pageviews',
 363                'httpMethod' => 'GET',
 364                'parameters' => array(
 365                  'blogId' => array(
 366                    'location' => 'path',
 367                    'type' => 'string',
 368                    'required' => true,
 369                  ),
 370                  'range' => array(
 371                    'location' => 'query',
 372                    'type' => 'string',
 373                    'repeated' => true,
 374                  ),
 375                ),
 376              ),
 377            )
 378          )
 379      );
 380      $this->pages = new Google_Service_Blogger_Pages_Resource(
 381          $this,
 382          $this->serviceName,
 383          'pages',
 384          array(
 385            'methods' => array(
 386              'delete' => array(
 387                'path' => 'blogs/{blogId}/pages/{pageId}',
 388                'httpMethod' => 'DELETE',
 389                'parameters' => array(
 390                  'blogId' => array(
 391                    'location' => 'path',
 392                    'type' => 'string',
 393                    'required' => true,
 394                  ),
 395                  'pageId' => array(
 396                    'location' => 'path',
 397                    'type' => 'string',
 398                    'required' => true,
 399                  ),
 400                ),
 401              ),'get' => array(
 402                'path' => 'blogs/{blogId}/pages/{pageId}',
 403                'httpMethod' => 'GET',
 404                'parameters' => array(
 405                  'blogId' => array(
 406                    'location' => 'path',
 407                    'type' => 'string',
 408                    'required' => true,
 409                  ),
 410                  'pageId' => array(
 411                    'location' => 'path',
 412                    'type' => 'string',
 413                    'required' => true,
 414                  ),
 415                  'view' => array(
 416                    'location' => 'query',
 417                    'type' => 'string',
 418                  ),
 419                ),
 420              ),'insert' => array(
 421                'path' => 'blogs/{blogId}/pages',
 422                'httpMethod' => 'POST',
 423                'parameters' => array(
 424                  'blogId' => array(
 425                    'location' => 'path',
 426                    'type' => 'string',
 427                    'required' => true,
 428                  ),
 429                  'isDraft' => array(
 430                    'location' => 'query',
 431                    'type' => 'boolean',
 432                  ),
 433                ),
 434              ),'list' => array(
 435                'path' => 'blogs/{blogId}/pages',
 436                'httpMethod' => 'GET',
 437                'parameters' => array(
 438                  'blogId' => array(
 439                    'location' => 'path',
 440                    'type' => 'string',
 441                    'required' => true,
 442                  ),
 443                  'status' => array(
 444                    'location' => 'query',
 445                    'type' => 'string',
 446                    'repeated' => true,
 447                  ),
 448                  'maxResults' => array(
 449                    'location' => 'query',
 450                    'type' => 'integer',
 451                  ),
 452                  'pageToken' => array(
 453                    'location' => 'query',
 454                    'type' => 'string',
 455                  ),
 456                  'fetchBodies' => array(
 457                    'location' => 'query',
 458                    'type' => 'boolean',
 459                  ),
 460                  'view' => array(
 461                    'location' => 'query',
 462                    'type' => 'string',
 463                  ),
 464                ),
 465              ),'patch' => array(
 466                'path' => 'blogs/{blogId}/pages/{pageId}',
 467                'httpMethod' => 'PATCH',
 468                'parameters' => array(
 469                  'blogId' => array(
 470                    'location' => 'path',
 471                    'type' => 'string',
 472                    'required' => true,
 473                  ),
 474                  'pageId' => array(
 475                    'location' => 'path',
 476                    'type' => 'string',
 477                    'required' => true,
 478                  ),
 479                  'revert' => array(
 480                    'location' => 'query',
 481                    'type' => 'boolean',
 482                  ),
 483                  'publish' => array(
 484                    'location' => 'query',
 485                    'type' => 'boolean',
 486                  ),
 487                ),
 488              ),'publish' => array(
 489                'path' => 'blogs/{blogId}/pages/{pageId}/publish',
 490                'httpMethod' => 'POST',
 491                'parameters' => array(
 492                  'blogId' => array(
 493                    'location' => 'path',
 494                    'type' => 'string',
 495                    'required' => true,
 496                  ),
 497                  'pageId' => array(
 498                    'location' => 'path',
 499                    'type' => 'string',
 500                    'required' => true,
 501                  ),
 502                ),
 503              ),'revert' => array(
 504                'path' => 'blogs/{blogId}/pages/{pageId}/revert',
 505                'httpMethod' => 'POST',
 506                'parameters' => array(
 507                  'blogId' => array(
 508                    'location' => 'path',
 509                    'type' => 'string',
 510                    'required' => true,
 511                  ),
 512                  'pageId' => array(
 513                    'location' => 'path',
 514                    'type' => 'string',
 515                    'required' => true,
 516                  ),
 517                ),
 518              ),'update' => array(
 519                'path' => 'blogs/{blogId}/pages/{pageId}',
 520                'httpMethod' => 'PUT',
 521                'parameters' => array(
 522                  'blogId' => array(
 523                    'location' => 'path',
 524                    'type' => 'string',
 525                    'required' => true,
 526                  ),
 527                  'pageId' => array(
 528                    'location' => 'path',
 529                    'type' => 'string',
 530                    'required' => true,
 531                  ),
 532                  'revert' => array(
 533                    'location' => 'query',
 534                    'type' => 'boolean',
 535                  ),
 536                  'publish' => array(
 537                    'location' => 'query',
 538                    'type' => 'boolean',
 539                  ),
 540                ),
 541              ),
 542            )
 543          )
 544      );
 545      $this->postUserInfos = new Google_Service_Blogger_PostUserInfos_Resource(
 546          $this,
 547          $this->serviceName,
 548          'postUserInfos',
 549          array(
 550            'methods' => array(
 551              'get' => array(
 552                'path' => 'users/{userId}/blogs/{blogId}/posts/{postId}',
 553                'httpMethod' => 'GET',
 554                'parameters' => array(
 555                  'userId' => array(
 556                    'location' => 'path',
 557                    'type' => 'string',
 558                    'required' => true,
 559                  ),
 560                  'blogId' => array(
 561                    'location' => 'path',
 562                    'type' => 'string',
 563                    'required' => true,
 564                  ),
 565                  'postId' => array(
 566                    'location' => 'path',
 567                    'type' => 'string',
 568                    'required' => true,
 569                  ),
 570                  'maxComments' => array(
 571                    'location' => 'query',
 572                    'type' => 'integer',
 573                  ),
 574                ),
 575              ),'list' => array(
 576                'path' => 'users/{userId}/blogs/{blogId}/posts',
 577                'httpMethod' => 'GET',
 578                'parameters' => array(
 579                  'userId' => array(
 580                    'location' => 'path',
 581                    'type' => 'string',
 582                    'required' => true,
 583                  ),
 584                  'blogId' => array(
 585                    'location' => 'path',
 586                    'type' => 'string',
 587                    'required' => true,
 588                  ),
 589                  'orderBy' => array(
 590                    'location' => 'query',
 591                    'type' => 'string',
 592                  ),
 593                  'startDate' => array(
 594                    'location' => 'query',
 595                    'type' => 'string',
 596                  ),
 597                  'endDate' => array(
 598                    'location' => 'query',
 599                    'type' => 'string',
 600                  ),
 601                  'labels' => array(
 602                    'location' => 'query',
 603                    'type' => 'string',
 604                  ),
 605                  'maxResults' => array(
 606                    'location' => 'query',
 607                    'type' => 'integer',
 608                  ),
 609                  'pageToken' => array(
 610                    'location' => 'query',
 611                    'type' => 'string',
 612                  ),
 613                  'status' => array(
 614                    'location' => 'query',
 615                    'type' => 'string',
 616                    'repeated' => true,
 617                  ),
 618                  'fetchBodies' => array(
 619                    'location' => 'query',
 620                    'type' => 'boolean',
 621                  ),
 622                  'view' => array(
 623                    'location' => 'query',
 624                    'type' => 'string',
 625                  ),
 626                ),
 627              ),
 628            )
 629          )
 630      );
 631      $this->posts = new Google_Service_Blogger_Posts_Resource(
 632          $this,
 633          $this->serviceName,
 634          'posts',
 635          array(
 636            'methods' => array(
 637              'delete' => array(
 638                'path' => 'blogs/{blogId}/posts/{postId}',
 639                'httpMethod' => 'DELETE',
 640                'parameters' => array(
 641                  'blogId' => array(
 642                    'location' => 'path',
 643                    'type' => 'string',
 644                    'required' => true,
 645                  ),
 646                  'postId' => array(
 647                    'location' => 'path',
 648                    'type' => 'string',
 649                    'required' => true,
 650                  ),
 651                ),
 652              ),'get' => array(
 653                'path' => 'blogs/{blogId}/posts/{postId}',
 654                'httpMethod' => 'GET',
 655                'parameters' => array(
 656                  'blogId' => array(
 657                    'location' => 'path',
 658                    'type' => 'string',
 659                    'required' => true,
 660                  ),
 661                  'postId' => array(
 662                    'location' => 'path',
 663                    'type' => 'string',
 664                    'required' => true,
 665                  ),
 666                  'fetchBody' => array(
 667                    'location' => 'query',
 668                    'type' => 'boolean',
 669                  ),
 670                  'maxComments' => array(
 671                    'location' => 'query',
 672                    'type' => 'integer',
 673                  ),
 674                  'fetchImages' => array(
 675                    'location' => 'query',
 676                    'type' => 'boolean',
 677                  ),
 678                  'view' => array(
 679                    'location' => 'query',
 680                    'type' => 'string',
 681                  ),
 682                ),
 683              ),'getByPath' => array(
 684                'path' => 'blogs/{blogId}/posts/bypath',
 685                'httpMethod' => 'GET',
 686                'parameters' => array(
 687                  'blogId' => array(
 688                    'location' => 'path',
 689                    'type' => 'string',
 690                    'required' => true,
 691                  ),
 692                  'path' => array(
 693                    'location' => 'query',
 694                    'type' => 'string',
 695                    'required' => true,
 696                  ),
 697                  'maxComments' => array(
 698                    'location' => 'query',
 699                    'type' => 'integer',
 700                  ),
 701                  'view' => array(
 702                    'location' => 'query',
 703                    'type' => 'string',
 704                  ),
 705                ),
 706              ),'insert' => array(
 707                'path' => 'blogs/{blogId}/posts',
 708                'httpMethod' => 'POST',
 709                'parameters' => array(
 710                  'blogId' => array(
 711                    'location' => 'path',
 712                    'type' => 'string',
 713                    'required' => true,
 714                  ),
 715                  'fetchImages' => array(
 716                    'location' => 'query',
 717                    'type' => 'boolean',
 718                  ),
 719                  'isDraft' => array(
 720                    'location' => 'query',
 721                    'type' => 'boolean',
 722                  ),
 723                  'fetchBody' => array(
 724                    'location' => 'query',
 725                    'type' => 'boolean',
 726                  ),
 727                ),
 728              ),'list' => array(
 729                'path' => 'blogs/{blogId}/posts',
 730                'httpMethod' => 'GET',
 731                'parameters' => array(
 732                  'blogId' => array(
 733                    'location' => 'path',
 734                    'type' => 'string',
 735                    'required' => true,
 736                  ),
 737                  'orderBy' => array(
 738                    'location' => 'query',
 739                    'type' => 'string',
 740                  ),
 741                  'startDate' => array(
 742                    'location' => 'query',
 743                    'type' => 'string',
 744                  ),
 745                  'endDate' => array(
 746                    'location' => 'query',
 747                    'type' => 'string',
 748                  ),
 749                  'labels' => array(
 750                    'location' => 'query',
 751                    'type' => 'string',
 752                  ),
 753                  'maxResults' => array(
 754                    'location' => 'query',
 755                    'type' => 'integer',
 756                  ),
 757                  'fetchImages' => array(
 758                    'location' => 'query',
 759                    'type' => 'boolean',
 760                  ),
 761                  'pageToken' => array(
 762                    'location' => 'query',
 763                    'type' => 'string',
 764                  ),
 765                  'status' => array(
 766                    'location' => 'query',
 767                    'type' => 'string',
 768                    'repeated' => true,
 769                  ),
 770                  'fetchBodies' => array(
 771                    'location' => 'query',
 772                    'type' => 'boolean',
 773                  ),
 774                  'view' => array(
 775                    'location' => 'query',
 776                    'type' => 'string',
 777                  ),
 778                ),
 779              ),'patch' => array(
 780                'path' => 'blogs/{blogId}/posts/{postId}',
 781                'httpMethod' => 'PATCH',
 782                'parameters' => array(
 783                  'blogId' => array(
 784                    'location' => 'path',
 785                    'type' => 'string',
 786                    'required' => true,
 787                  ),
 788                  'postId' => array(
 789                    'location' => 'path',
 790                    'type' => 'string',
 791                    'required' => true,
 792                  ),
 793                  'revert' => array(
 794                    'location' => 'query',
 795                    'type' => 'boolean',
 796                  ),
 797                  'publish' => array(
 798                    'location' => 'query',
 799                    'type' => 'boolean',
 800                  ),
 801                  'fetchBody' => array(
 802                    'location' => 'query',
 803                    'type' => 'boolean',
 804                  ),
 805                  'maxComments' => array(
 806                    'location' => 'query',
 807                    'type' => 'integer',
 808                  ),
 809                  'fetchImages' => array(
 810                    'location' => 'query',
 811                    'type' => 'boolean',
 812                  ),
 813                ),
 814              ),'publish' => array(
 815                'path' => 'blogs/{blogId}/posts/{postId}/publish',
 816                'httpMethod' => 'POST',
 817                'parameters' => array(
 818                  'blogId' => array(
 819                    'location' => 'path',
 820                    'type' => 'string',
 821                    'required' => true,
 822                  ),
 823                  'postId' => array(
 824                    'location' => 'path',
 825                    'type' => 'string',
 826                    'required' => true,
 827                  ),
 828                  'publishDate' => array(
 829                    'location' => 'query',
 830                    'type' => 'string',
 831                  ),
 832                ),
 833              ),'revert' => array(
 834                'path' => 'blogs/{blogId}/posts/{postId}/revert',
 835                'httpMethod' => 'POST',
 836                'parameters' => array(
 837                  'blogId' => array(
 838                    'location' => 'path',
 839                    'type' => 'string',
 840                    'required' => true,
 841                  ),
 842                  'postId' => array(
 843                    'location' => 'path',
 844                    'type' => 'string',
 845                    'required' => true,
 846                  ),
 847                ),
 848              ),'search' => array(
 849                'path' => 'blogs/{blogId}/posts/search',
 850                'httpMethod' => 'GET',
 851                'parameters' => array(
 852                  'blogId' => array(
 853                    'location' => 'path',
 854                    'type' => 'string',
 855                    'required' => true,
 856                  ),
 857                  'q' => array(
 858                    'location' => 'query',
 859                    'type' => 'string',
 860                    'required' => true,
 861                  ),
 862                  'orderBy' => array(
 863                    'location' => 'query',
 864                    'type' => 'string',
 865                  ),
 866                  'fetchBodies' => array(
 867                    'location' => 'query',
 868                    'type' => 'boolean',
 869                  ),
 870                ),
 871              ),'update' => array(
 872                'path' => 'blogs/{blogId}/posts/{postId}',
 873                'httpMethod' => 'PUT',
 874                'parameters' => array(
 875                  'blogId' => array(
 876                    'location' => 'path',
 877                    'type' => 'string',
 878                    'required' => true,
 879                  ),
 880                  'postId' => array(
 881                    'location' => 'path',
 882                    'type' => 'string',
 883                    'required' => true,
 884                  ),
 885                  'revert' => array(
 886                    'location' => 'query',
 887                    'type' => 'boolean',
 888                  ),
 889                  'publish' => array(
 890                    'location' => 'query',
 891                    'type' => 'boolean',
 892                  ),
 893                  'fetchBody' => array(
 894                    'location' => 'query',
 895                    'type' => 'boolean',
 896                  ),
 897                  'maxComments' => array(
 898                    'location' => 'query',
 899                    'type' => 'integer',
 900                  ),
 901                  'fetchImages' => array(
 902                    'location' => 'query',
 903                    'type' => 'boolean',
 904                  ),
 905                ),
 906              ),
 907            )
 908          )
 909      );
 910      $this->users = new Google_Service_Blogger_Users_Resource(
 911          $this,
 912          $this->serviceName,
 913          'users',
 914          array(
 915            'methods' => array(
 916              'get' => array(
 917                'path' => 'users/{userId}',
 918                'httpMethod' => 'GET',
 919                'parameters' => array(
 920                  'userId' => array(
 921                    'location' => 'path',
 922                    'type' => 'string',
 923                    'required' => true,
 924                  ),
 925                ),
 926              ),
 927            )
 928          )
 929      );
 930    }
 931  }
 932  
 933  
 934  /**
 935   * The "blogUserInfos" collection of methods.
 936   * Typical usage is:
 937   *  <code>
 938   *   $bloggerService = new Google_Service_Blogger(...);
 939   *   $blogUserInfos = $bloggerService->blogUserInfos;
 940   *  </code>
 941   */
 942  class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resource
 943  {
 944  
 945    /**
 946     * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get)
 947     *
 948     * @param string $userId ID of the user whose blogs are to be fetched. Either
 949     * the word 'self' (sans quote marks) or the user's profile identifier.
 950     * @param string $blogId The ID of the blog to get.
 951     * @param array $optParams Optional parameters.
 952     *
 953     * @opt_param string maxPosts Maximum number of posts to pull back with the
 954     * blog.
 955     * @return Google_Service_Blogger_BlogUserInfo
 956     */
 957    public function get($userId, $blogId, $optParams = array())
 958    {
 959      $params = array('userId' => $userId, 'blogId' => $blogId);
 960      $params = array_merge($params, $optParams);
 961      return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo");
 962    }
 963  }
 964  
 965  /**
 966   * The "blogs" collection of methods.
 967   * Typical usage is:
 968   *  <code>
 969   *   $bloggerService = new Google_Service_Blogger(...);
 970   *   $blogs = $bloggerService->blogs;
 971   *  </code>
 972   */
 973  class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource
 974  {
 975  
 976    /**
 977     * Gets one blog by ID. (blogs.get)
 978     *
 979     * @param string $blogId The ID of the blog to get.
 980     * @param array $optParams Optional parameters.
 981     *
 982     * @opt_param string maxPosts Maximum number of posts to pull back with the
 983     * blog.
 984     * @opt_param string view Access level with which to view the blog. Note that
 985     * some fields require elevated access.
 986     * @return Google_Service_Blogger_Blog
 987     */
 988    public function get($blogId, $optParams = array())
 989    {
 990      $params = array('blogId' => $blogId);
 991      $params = array_merge($params, $optParams);
 992      return $this->call('get', array($params), "Google_Service_Blogger_Blog");
 993    }
 994  
 995    /**
 996     * Retrieve a Blog by URL. (blogs.getByUrl)
 997     *
 998     * @param string $url The URL of the blog to retrieve.
 999     * @param array $optParams Optional parameters.
1000     *
1001     * @opt_param string view Access level with which to view the blog. Note that
1002     * some fields require elevated access.
1003     * @return Google_Service_Blogger_Blog
1004     */
1005    public function getByUrl($url, $optParams = array())
1006    {
1007      $params = array('url' => $url);
1008      $params = array_merge($params, $optParams);
1009      return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog");
1010    }
1011  
1012    /**
1013     * Retrieves a list of blogs, possibly filtered. (blogs.listByUser)
1014     *
1015     * @param string $userId ID of the user whose blogs are to be fetched. Either
1016     * the word 'self' (sans quote marks) or the user's profile identifier.
1017     * @param array $optParams Optional parameters.
1018     *
1019     * @opt_param bool fetchUserInfo Whether the response is a list of blogs with
1020     * per-user information instead of just blogs.
1021     * @opt_param string status Blog statuses to include in the result (default:
1022     * Live blogs only). Note that ADMIN access is required to view deleted blogs.
1023     * @opt_param string role User access types for blogs to include in the results,
1024     * e.g. AUTHOR will return blogs where the user has author level access. If no
1025     * roles are specified, defaults to ADMIN and AUTHOR roles.
1026     * @opt_param string view Access level with which to view the blogs. Note that
1027     * some fields require elevated access.
1028     * @return Google_Service_Blogger_BlogList
1029     */
1030    public function listByUser($userId, $optParams = array())
1031    {
1032      $params = array('userId' => $userId);
1033      $params = array_merge($params, $optParams);
1034      return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList");
1035    }
1036  }
1037  
1038  /**
1039   * The "comments" collection of methods.
1040   * Typical usage is:
1041   *  <code>
1042   *   $bloggerService = new Google_Service_Blogger(...);
1043   *   $comments = $bloggerService->comments;
1044   *  </code>
1045   */
1046  class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
1047  {
1048  
1049    /**
1050     * Marks a comment as not spam. (comments.approve)
1051     *
1052     * @param string $blogId The ID of the Blog.
1053     * @param string $postId The ID of the Post.
1054     * @param string $commentId The ID of the comment to mark as not spam.
1055     * @param array $optParams Optional parameters.
1056     * @return Google_Service_Blogger_Comment
1057     */
1058    public function approve($blogId, $postId, $commentId, $optParams = array())
1059    {
1060      $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1061      $params = array_merge($params, $optParams);
1062      return $this->call('approve', array($params), "Google_Service_Blogger_Comment");
1063    }
1064  
1065    /**
1066     * Delete a comment by ID. (comments.delete)
1067     *
1068     * @param string $blogId The ID of the Blog.
1069     * @param string $postId The ID of the Post.
1070     * @param string $commentId The ID of the comment to delete.
1071     * @param array $optParams Optional parameters.
1072     */
1073    public function delete($blogId, $postId, $commentId, $optParams = array())
1074    {
1075      $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1076      $params = array_merge($params, $optParams);
1077      return $this->call('delete', array($params));
1078    }
1079  
1080    /**
1081     * Gets one comment by ID. (comments.get)
1082     *
1083     * @param string $blogId ID of the blog to containing the comment.
1084     * @param string $postId ID of the post to fetch posts from.
1085     * @param string $commentId The ID of the comment to get.
1086     * @param array $optParams Optional parameters.
1087     *
1088     * @opt_param string view Access level for the requested comment (default:
1089     * READER). Note that some comments will require elevated permissions, for
1090     * example comments where the parent posts which is in a draft state, or
1091     * comments that are pending moderation.
1092     * @return Google_Service_Blogger_Comment
1093     */
1094    public function get($blogId, $postId, $commentId, $optParams = array())
1095    {
1096      $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1097      $params = array_merge($params, $optParams);
1098      return $this->call('get', array($params), "Google_Service_Blogger_Comment");
1099    }
1100  
1101    /**
1102     * Retrieves the comments for a post, possibly filtered. (comments.listComments)
1103     *
1104     * @param string $blogId ID of the blog to fetch comments from.
1105     * @param string $postId ID of the post to fetch posts from.
1106     * @param array $optParams Optional parameters.
1107     *
1108     * @opt_param string status
1109     * @opt_param string startDate Earliest date of comment to fetch, a date-time
1110     * with RFC 3339 formatting.
1111     * @opt_param string endDate Latest date of comment to fetch, a date-time with
1112     * RFC 3339 formatting.
1113     * @opt_param string maxResults Maximum number of comments to include in the
1114     * result.
1115     * @opt_param string pageToken Continuation token if request is paged.
1116     * @opt_param bool fetchBodies Whether the body content of the comments is
1117     * included.
1118     * @opt_param string view Access level with which to view the returned result.
1119     * Note that some fields require elevated access.
1120     * @return Google_Service_Blogger_CommentList
1121     */
1122    public function listComments($blogId, $postId, $optParams = array())
1123    {
1124      $params = array('blogId' => $blogId, 'postId' => $postId);
1125      $params = array_merge($params, $optParams);
1126      return $this->call('list', array($params), "Google_Service_Blogger_CommentList");
1127    }
1128  
1129    /**
1130     * Retrieves the comments for a blog, across all posts, possibly filtered.
1131     * (comments.listByBlog)
1132     *
1133     * @param string $blogId ID of the blog to fetch comments from.
1134     * @param array $optParams Optional parameters.
1135     *
1136     * @opt_param string status
1137     * @opt_param string startDate Earliest date of comment to fetch, a date-time
1138     * with RFC 3339 formatting.
1139     * @opt_param string endDate Latest date of comment to fetch, a date-time with
1140     * RFC 3339 formatting.
1141     * @opt_param string maxResults Maximum number of comments to include in the
1142     * result.
1143     * @opt_param string pageToken Continuation token if request is paged.
1144     * @opt_param bool fetchBodies Whether the body content of the comments is
1145     * included.
1146     * @return Google_Service_Blogger_CommentList
1147     */
1148    public function listByBlog($blogId, $optParams = array())
1149    {
1150      $params = array('blogId' => $blogId);
1151      $params = array_merge($params, $optParams);
1152      return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList");
1153    }
1154  
1155    /**
1156     * Marks a comment as spam. (comments.markAsSpam)
1157     *
1158     * @param string $blogId The ID of the Blog.
1159     * @param string $postId The ID of the Post.
1160     * @param string $commentId The ID of the comment to mark as spam.
1161     * @param array $optParams Optional parameters.
1162     * @return Google_Service_Blogger_Comment
1163     */
1164    public function markAsSpam($blogId, $postId, $commentId, $optParams = array())
1165    {
1166      $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1167      $params = array_merge($params, $optParams);
1168      return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment");
1169    }
1170  
1171    /**
1172     * Removes the content of a comment. (comments.removeContent)
1173     *
1174     * @param string $blogId The ID of the Blog.
1175     * @param string $postId The ID of the Post.
1176     * @param string $commentId The ID of the comment to delete content from.
1177     * @param array $optParams Optional parameters.
1178     * @return Google_Service_Blogger_Comment
1179     */
1180    public function removeContent($blogId, $postId, $commentId, $optParams = array())
1181    {
1182      $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1183      $params = array_merge($params, $optParams);
1184      return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment");
1185    }
1186  }
1187  
1188  /**
1189   * The "pageViews" collection of methods.
1190   * Typical usage is:
1191   *  <code>
1192   *   $bloggerService = new Google_Service_Blogger(...);
1193   *   $pageViews = $bloggerService->pageViews;
1194   *  </code>
1195   */
1196  class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource
1197  {
1198  
1199    /**
1200     * Retrieve pageview stats for a Blog. (pageViews.get)
1201     *
1202     * @param string $blogId The ID of the blog to get.
1203     * @param array $optParams Optional parameters.
1204     *
1205     * @opt_param string range
1206     * @return Google_Service_Blogger_Pageviews
1207     */
1208    public function get($blogId, $optParams = array())
1209    {
1210      $params = array('blogId' => $blogId);
1211      $params = array_merge($params, $optParams);
1212      return $this->call('get', array($params), "Google_Service_Blogger_Pageviews");
1213    }
1214  }
1215  
1216  /**
1217   * The "pages" collection of methods.
1218   * Typical usage is:
1219   *  <code>
1220   *   $bloggerService = new Google_Service_Blogger(...);
1221   *   $pages = $bloggerService->pages;
1222   *  </code>
1223   */
1224  class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource
1225  {
1226  
1227    /**
1228     * Delete a page by ID. (pages.delete)
1229     *
1230     * @param string $blogId The ID of the Blog.
1231     * @param string $pageId The ID of the Page.
1232     * @param array $optParams Optional parameters.
1233     */
1234    public function delete($blogId, $pageId, $optParams = array())
1235    {
1236      $params = array('blogId' => $blogId, 'pageId' => $pageId);
1237      $params = array_merge($params, $optParams);
1238      return $this->call('delete', array($params));
1239    }
1240  
1241    /**
1242     * Gets one blog page by ID. (pages.get)
1243     *
1244     * @param string $blogId ID of the blog containing the page.
1245     * @param string $pageId The ID of the page to get.
1246     * @param array $optParams Optional parameters.
1247     *
1248     * @opt_param string view
1249     * @return Google_Service_Blogger_Page
1250     */
1251    public function get($blogId, $pageId, $optParams = array())
1252    {
1253      $params = array('blogId' => $blogId, 'pageId' => $pageId);
1254      $params = array_merge($params, $optParams);
1255      return $this->call('get', array($params), "Google_Service_Blogger_Page");
1256    }
1257  
1258    /**
1259     * Add a page. (pages.insert)
1260     *
1261     * @param string $blogId ID of the blog to add the page to.
1262     * @param Google_Page $postBody
1263     * @param array $optParams Optional parameters.
1264     *
1265     * @opt_param bool isDraft Whether to create the page as a draft (default:
1266     * false).
1267     * @return Google_Service_Blogger_Page
1268     */
1269    public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array())
1270    {
1271      $params = array('blogId' => $blogId, 'postBody' => $postBody);
1272      $params = array_merge($params, $optParams);
1273      return $this->call('insert', array($params), "Google_Service_Blogger_Page");
1274    }
1275  
1276    /**
1277     * Retrieves the pages for a blog, optionally including non-LIVE statuses.
1278     * (pages.listPages)
1279     *
1280     * @param string $blogId ID of the blog to fetch Pages from.
1281     * @param array $optParams Optional parameters.
1282     *
1283     * @opt_param string status
1284     * @opt_param string maxResults Maximum number of Pages to fetch.
1285     * @opt_param string pageToken Continuation token if the request is paged.
1286     * @opt_param bool fetchBodies Whether to retrieve the Page bodies.
1287     * @opt_param string view Access level with which to view the returned result.
1288     * Note that some fields require elevated access.
1289     * @return Google_Service_Blogger_PageList
1290     */
1291    public function listPages($blogId, $optParams = array())
1292    {
1293      $params = array('blogId' => $blogId);
1294      $params = array_merge($params, $optParams);
1295      return $this->call('list', array($params), "Google_Service_Blogger_PageList");
1296    }
1297  
1298    /**
1299     * Update a page. This method supports patch semantics. (pages.patch)
1300     *
1301     * @param string $blogId The ID of the Blog.
1302     * @param string $pageId The ID of the Page.
1303     * @param Google_Page $postBody
1304     * @param array $optParams Optional parameters.
1305     *
1306     * @opt_param bool revert Whether a revert action should be performed when the
1307     * page is updated (default: false).
1308     * @opt_param bool publish Whether a publish action should be performed when the
1309     * page is updated (default: false).
1310     * @return Google_Service_Blogger_Page
1311     */
1312    public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array())
1313    {
1314      $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody);
1315      $params = array_merge($params, $optParams);
1316      return $this->call('patch', array($params), "Google_Service_Blogger_Page");
1317    }
1318  
1319    /**
1320     * Publishes a draft page. (pages.publish)
1321     *
1322     * @param string $blogId The ID of the blog.
1323     * @param string $pageId The ID of the page.
1324     * @param array $optParams Optional parameters.
1325     * @return Google_Service_Blogger_Page
1326     */
1327    public function publish($blogId, $pageId, $optParams = array())
1328    {
1329      $params = array('blogId' => $blogId, 'pageId' => $pageId);
1330      $params = array_merge($params, $optParams);
1331      return $this->call('publish', array($params), "Google_Service_Blogger_Page");
1332    }
1333  
1334    /**
1335     * Revert a published or scheduled page to draft state. (pages.revert)
1336     *
1337     * @param string $blogId The ID of the blog.
1338     * @param string $pageId The ID of the page.
1339     * @param array $optParams Optional parameters.
1340     * @return Google_Service_Blogger_Page
1341     */
1342    public function revert($blogId, $pageId, $optParams = array())
1343    {
1344      $params = array('blogId' => $blogId, 'pageId' => $pageId);
1345      $params = array_merge($params, $optParams);
1346      return $this->call('revert', array($params), "Google_Service_Blogger_Page");
1347    }
1348  
1349    /**
1350     * Update a page. (pages.update)
1351     *
1352     * @param string $blogId The ID of the Blog.
1353     * @param string $pageId The ID of the Page.
1354     * @param Google_Page $postBody
1355     * @param array $optParams Optional parameters.
1356     *
1357     * @opt_param bool revert Whether a revert action should be performed when the
1358     * page is updated (default: false).
1359     * @opt_param bool publish Whether a publish action should be performed when the
1360     * page is updated (default: false).
1361     * @return Google_Service_Blogger_Page
1362     */
1363    public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array())
1364    {
1365      $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody);
1366      $params = array_merge($params, $optParams);
1367      return $this->call('update', array($params), "Google_Service_Blogger_Page");
1368    }
1369  }
1370  
1371  /**
1372   * The "postUserInfos" collection of methods.
1373   * Typical usage is:
1374   *  <code>
1375   *   $bloggerService = new Google_Service_Blogger(...);
1376   *   $postUserInfos = $bloggerService->postUserInfos;
1377   *  </code>
1378   */
1379  class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resource
1380  {
1381  
1382    /**
1383     * Gets one post and user info pair, by post ID and user ID. The post user info
1384     * contains per-user information about the post, such as access rights, specific
1385     * to the user. (postUserInfos.get)
1386     *
1387     * @param string $userId ID of the user for the per-user information to be
1388     * fetched. Either the word 'self' (sans quote marks) or the user's profile
1389     * identifier.
1390     * @param string $blogId The ID of the blog.
1391     * @param string $postId The ID of the post to get.
1392     * @param array $optParams Optional parameters.
1393     *
1394     * @opt_param string maxComments Maximum number of comments to pull back on a
1395     * post.
1396     * @return Google_Service_Blogger_PostUserInfo
1397     */
1398    public function get($userId, $blogId, $postId, $optParams = array())
1399    {
1400      $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId);
1401      $params = array_merge($params, $optParams);
1402      return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo");
1403    }
1404  
1405    /**
1406     * Retrieves a list of post and post user info pairs, possibly filtered. The
1407     * post user info contains per-user information about the post, such as access
1408     * rights, specific to the user. (postUserInfos.listPostUserInfos)
1409     *
1410     * @param string $userId ID of the user for the per-user information to be
1411     * fetched. Either the word 'self' (sans quote marks) or the user's profile
1412     * identifier.
1413     * @param string $blogId ID of the blog to fetch posts from.
1414     * @param array $optParams Optional parameters.
1415     *
1416     * @opt_param string orderBy Sort order applied to search results. Default is
1417     * published.
1418     * @opt_param string startDate Earliest post date to fetch, a date-time with RFC
1419     * 3339 formatting.
1420     * @opt_param string endDate Latest post date to fetch, a date-time with RFC
1421     * 3339 formatting.
1422     * @opt_param string labels Comma-separated list of labels to search for.
1423     * @opt_param string maxResults Maximum number of posts to fetch.
1424     * @opt_param string pageToken Continuation token if the request is paged.
1425     * @opt_param string status
1426     * @opt_param bool fetchBodies Whether the body content of posts is included.
1427     * Default is false.
1428     * @opt_param string view Access level with which to view the returned result.
1429     * Note that some fields require elevated access.
1430     * @return Google_Service_Blogger_PostUserInfosList
1431     */
1432    public function listPostUserInfos($userId, $blogId, $optParams = array())
1433    {
1434      $params = array('userId' => $userId, 'blogId' => $blogId);
1435      $params = array_merge($params, $optParams);
1436      return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList");
1437    }
1438  }
1439  
1440  /**
1441   * The "posts" collection of methods.
1442   * Typical usage is:
1443   *  <code>
1444   *   $bloggerService = new Google_Service_Blogger(...);
1445   *   $posts = $bloggerService->posts;
1446   *  </code>
1447   */
1448  class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1449  {
1450  
1451    /**
1452     * Delete a post by ID. (posts.delete)
1453     *
1454     * @param string $blogId The ID of the Blog.
1455     * @param string $postId The ID of the Post.
1456     * @param array $optParams Optional parameters.
1457     */
1458    public function delete($blogId, $postId, $optParams = array())
1459    {
1460      $params = array('blogId' => $blogId, 'postId' => $postId);
1461      $params = array_merge($params, $optParams);
1462      return $this->call('delete', array($params));
1463    }
1464  
1465    /**
1466     * Get a post by ID. (posts.get)
1467     *
1468     * @param string $blogId ID of the blog to fetch the post from.
1469     * @param string $postId The ID of the post
1470     * @param array $optParams Optional parameters.
1471     *
1472     * @opt_param bool fetchBody Whether the body content of the post is included
1473     * (default: true). This should be set to false when the post bodies are not
1474     * required, to help minimize traffic.
1475     * @opt_param string maxComments Maximum number of comments to pull back on a
1476     * post.
1477     * @opt_param bool fetchImages Whether image URL metadata for each post is
1478     * included (default: false).
1479     * @opt_param string view Access level with which to view the returned result.
1480     * Note that some fields require elevated access.
1481     * @return Google_Service_Blogger_Post
1482     */
1483    public function get($blogId, $postId, $optParams = array())
1484    {
1485      $params = array('blogId' => $blogId, 'postId' => $postId);
1486      $params = array_merge($params, $optParams);
1487      return $this->call('get', array($params), "Google_Service_Blogger_Post");
1488    }
1489  
1490    /**
1491     * Retrieve a Post by Path. (posts.getByPath)
1492     *
1493     * @param string $blogId ID of the blog to fetch the post from.
1494     * @param string $path Path of the Post to retrieve.
1495     * @param array $optParams Optional parameters.
1496     *
1497     * @opt_param string maxComments Maximum number of comments to pull back on a
1498     * post.
1499     * @opt_param string view Access level with which to view the returned result.
1500     * Note that some fields require elevated access.
1501     * @return Google_Service_Blogger_Post
1502     */
1503    public function getByPath($blogId, $path, $optParams = array())
1504    {
1505      $params = array('blogId' => $blogId, 'path' => $path);
1506      $params = array_merge($params, $optParams);
1507      return $this->call('getByPath', array($params), "Google_Service_Blogger_Post");
1508    }
1509  
1510    /**
1511     * Add a post. (posts.insert)
1512     *
1513     * @param string $blogId ID of the blog to add the post to.
1514     * @param Google_Post $postBody
1515     * @param array $optParams Optional parameters.
1516     *
1517     * @opt_param bool fetchImages Whether image URL metadata for each post is
1518     * included in the returned result (default: false).
1519     * @opt_param bool isDraft Whether to create the post as a draft (default:
1520     * false).
1521     * @opt_param bool fetchBody Whether the body content of the post is included
1522     * with the result (default: true).
1523     * @return Google_Service_Blogger_Post
1524     */
1525    public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array())
1526    {
1527      $params = array('blogId' => $blogId, 'postBody' => $postBody);
1528      $params = array_merge($params, $optParams);
1529      return $this->call('insert', array($params), "Google_Service_Blogger_Post");
1530    }
1531  
1532    /**
1533     * Retrieves a list of posts, possibly filtered. (posts.listPosts)
1534     *
1535     * @param string $blogId ID of the blog to fetch posts from.
1536     * @param array $optParams Optional parameters.
1537     *
1538     * @opt_param string orderBy Sort search results
1539     * @opt_param string startDate Earliest post date to fetch, a date-time with RFC
1540     * 3339 formatting.
1541     * @opt_param string endDate Latest post date to fetch, a date-time with RFC
1542     * 3339 formatting.
1543     * @opt_param string labels Comma-separated list of labels to search for.
1544     * @opt_param string maxResults Maximum number of posts to fetch.
1545     * @opt_param bool fetchImages Whether image URL metadata for each post is
1546     * included.
1547     * @opt_param string pageToken Continuation token if the request is paged.
1548     * @opt_param string status Statuses to include in the results.
1549     * @opt_param bool fetchBodies Whether the body content of posts is included
1550     * (default: true). This should be set to false when the post bodies are not
1551     * required, to help minimize traffic.
1552     * @opt_param string view Access level with which to view the returned result.
1553     * Note that some fields require escalated access.
1554     * @return Google_Service_Blogger_PostList
1555     */
1556    public function listPosts($blogId, $optParams = array())
1557    {
1558      $params = array('blogId' => $blogId);
1559      $params = array_merge($params, $optParams);
1560      return $this->call('list', array($params), "Google_Service_Blogger_PostList");
1561    }
1562  
1563    /**
1564     * Update a post. This method supports patch semantics. (posts.patch)
1565     *
1566     * @param string $blogId The ID of the Blog.
1567     * @param string $postId The ID of the Post.
1568     * @param Google_Post $postBody
1569     * @param array $optParams Optional parameters.
1570     *
1571     * @opt_param bool revert Whether a revert action should be performed when the
1572     * post is updated (default: false).
1573     * @opt_param bool publish Whether a publish action should be performed when the
1574     * post is updated (default: false).
1575     * @opt_param bool fetchBody Whether the body content of the post is included
1576     * with the result (default: true).
1577     * @opt_param string maxComments Maximum number of comments to retrieve with the
1578     * returned post.
1579     * @opt_param bool fetchImages Whether image URL metadata for each post is
1580     * included in the returned result (default: false).
1581     * @return Google_Service_Blogger_Post
1582     */
1583    public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array())
1584    {
1585      $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
1586      $params = array_merge($params, $optParams);
1587      return $this->call('patch', array($params), "Google_Service_Blogger_Post");
1588    }
1589  
1590    /**
1591     * Publishes a draft post, optionally at the specific time of the given
1592     * publishDate parameter. (posts.publish)
1593     *
1594     * @param string $blogId The ID of the Blog.
1595     * @param string $postId The ID of the Post.
1596     * @param array $optParams Optional parameters.
1597     *
1598     * @opt_param string publishDate Optional date and time to schedule the
1599     * publishing of the Blog. If no publishDate parameter is given, the post is
1600     * either published at the a previously saved schedule date (if present), or the
1601     * current time. If a future date is given, the post will be scheduled to be
1602     * published.
1603     * @return Google_Service_Blogger_Post
1604     */
1605    public function publish($blogId, $postId, $optParams = array())
1606    {
1607      $params = array('blogId' => $blogId, 'postId' => $postId);
1608      $params = array_merge($params, $optParams);
1609      return $this->call('publish', array($params), "Google_Service_Blogger_Post");
1610    }
1611  
1612    /**
1613     * Revert a published or scheduled post to draft state. (posts.revert)
1614     *
1615     * @param string $blogId The ID of the Blog.
1616     * @param string $postId The ID of the Post.
1617     * @param array $optParams Optional parameters.
1618     * @return Google_Service_Blogger_Post
1619     */
1620    public function revert($blogId, $postId, $optParams = array())
1621    {
1622      $params = array('blogId' => $blogId, 'postId' => $postId);
1623      $params = array_merge($params, $optParams);
1624      return $this->call('revert', array($params), "Google_Service_Blogger_Post");
1625    }
1626  
1627    /**
1628     * Search for a post. (posts.search)
1629     *
1630     * @param string $blogId ID of the blog to fetch the post from.
1631     * @param string $q Query terms to search this blog for matching posts.
1632     * @param array $optParams Optional parameters.
1633     *
1634     * @opt_param string orderBy Sort search results
1635     * @opt_param bool fetchBodies Whether the body content of posts is included
1636     * (default: true). This should be set to false when the post bodies are not
1637     * required, to help minimize traffic.
1638     * @return Google_Service_Blogger_PostList
1639     */
1640    public function search($blogId, $q, $optParams = array())
1641    {
1642      $params = array('blogId' => $blogId, 'q' => $q);
1643      $params = array_merge($params, $optParams);
1644      return $this->call('search', array($params), "Google_Service_Blogger_PostList");
1645    }
1646  
1647    /**
1648     * Update a post. (posts.update)
1649     *
1650     * @param string $blogId The ID of the Blog.
1651     * @param string $postId The ID of the Post.
1652     * @param Google_Post $postBody
1653     * @param array $optParams Optional parameters.
1654     *
1655     * @opt_param bool revert Whether a revert action should be performed when the
1656     * post is updated (default: false).
1657     * @opt_param bool publish Whether a publish action should be performed when the
1658     * post is updated (default: false).
1659     * @opt_param bool fetchBody Whether the body content of the post is included
1660     * with the result (default: true).
1661     * @opt_param string maxComments Maximum number of comments to retrieve with the
1662     * returned post.
1663     * @opt_param bool fetchImages Whether image URL metadata for each post is
1664     * included in the returned result (default: false).
1665     * @return Google_Service_Blogger_Post
1666     */
1667    public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array())
1668    {
1669      $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
1670      $params = array_merge($params, $optParams);
1671      return $this->call('update', array($params), "Google_Service_Blogger_Post");
1672    }
1673  }
1674  
1675  /**
1676   * The "users" collection of methods.
1677   * Typical usage is:
1678   *  <code>
1679   *   $bloggerService = new Google_Service_Blogger(...);
1680   *   $users = $bloggerService->users;
1681   *  </code>
1682   */
1683  class Google_Service_Blogger_Users_Resource extends Google_Service_Resource
1684  {
1685  
1686    /**
1687     * Gets one user by ID. (users.get)
1688     *
1689     * @param string $userId The ID of the user to get.
1690     * @param array $optParams Optional parameters.
1691     * @return Google_Service_Blogger_User
1692     */
1693    public function get($userId, $optParams = array())
1694    {
1695      $params = array('userId' => $userId);
1696      $params = array_merge($params, $optParams);
1697      return $this->call('get', array($params), "Google_Service_Blogger_User");
1698    }
1699  }
1700  
1701  
1702  
1703  
1704  class Google_Service_Blogger_Blog extends Google_Model
1705  {
1706    protected $internal_gapi_mappings = array(
1707    );
1708    public $customMetaData;
1709    public $description;
1710    public $id;
1711    public $kind;
1712    protected $localeType = 'Google_Service_Blogger_BlogLocale';
1713    protected $localeDataType = '';
1714    public $name;
1715    protected $pagesType = 'Google_Service_Blogger_BlogPages';
1716    protected $pagesDataType = '';
1717    protected $postsType = 'Google_Service_Blogger_BlogPosts';
1718    protected $postsDataType = '';
1719    public $published;
1720    public $selfLink;
1721    public $status;
1722    public $updated;
1723    public $url;
1724  
1725  
1726    public function setCustomMetaData($customMetaData)
1727    {
1728      $this->customMetaData = $customMetaData;
1729    }
1730    public function getCustomMetaData()
1731    {
1732      return $this->customMetaData;
1733    }
1734    public function setDescription($description)
1735    {
1736      $this->description = $description;
1737    }
1738    public function getDescription()
1739    {
1740      return $this->description;
1741    }
1742    public function setId($id)
1743    {
1744      $this->id = $id;
1745    }
1746    public function getId()
1747    {
1748      return $this->id;
1749    }
1750    public function setKind($kind)
1751    {
1752      $this->kind = $kind;
1753    }
1754    public function getKind()
1755    {
1756      return $this->kind;
1757    }
1758    public function setLocale(Google_Service_Blogger_BlogLocale $locale)
1759    {
1760      $this->locale = $locale;
1761    }
1762    public function getLocale()
1763    {
1764      return $this->locale;
1765    }
1766    public function setName($name)
1767    {
1768      $this->name = $name;
1769    }
1770    public function getName()
1771    {
1772      return $this->name;
1773    }
1774    public function setPages(Google_Service_Blogger_BlogPages $pages)
1775    {
1776      $this->pages = $pages;
1777    }
1778    public function getPages()
1779    {
1780      return $this->pages;
1781    }
1782    public function setPosts(Google_Service_Blogger_BlogPosts $posts)
1783    {
1784      $this->posts = $posts;
1785    }
1786    public function getPosts()
1787    {
1788      return $this->posts;
1789    }
1790    public function setPublished($published)
1791    {
1792      $this->published = $published;
1793    }
1794    public function getPublished()
1795    {
1796      return $this->published;
1797    }
1798    public function setSelfLink($selfLink)
1799    {
1800      $this->selfLink = $selfLink;
1801    }
1802    public function getSelfLink()
1803    {
1804      return $this->selfLink;
1805    }
1806    public function setStatus($status)
1807    {
1808      $this->status = $status;
1809    }
1810    public function getStatus()
1811    {
1812      return $this->status;
1813    }
1814    public function setUpdated($updated)
1815    {
1816      $this->updated = $updated;
1817    }
1818    public function getUpdated()
1819    {
1820      return $this->updated;
1821    }
1822    public function setUrl($url)
1823    {
1824      $this->url = $url;
1825    }
1826    public function getUrl()
1827    {
1828      return $this->url;
1829    }
1830  }
1831  
1832  class Google_Service_Blogger_BlogList extends Google_Collection
1833  {
1834    protected $collection_key = 'items';
1835    protected $internal_gapi_mappings = array(
1836    );
1837    protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo';
1838    protected $blogUserInfosDataType = 'array';
1839    protected $itemsType = 'Google_Service_Blogger_Blog';
1840    protected $itemsDataType = 'array';
1841    public $kind;
1842  
1843  
1844    public function setBlogUserInfos($blogUserInfos)
1845    {
1846      $this->blogUserInfos = $blogUserInfos;
1847    }
1848    public function getBlogUserInfos()
1849    {
1850      return $this->blogUserInfos;
1851    }
1852    public function setItems($items)
1853    {
1854      $this->items = $items;
1855    }
1856    public function getItems()
1857    {
1858      return $this->items;
1859    }
1860    public function setKind($kind)
1861    {
1862      $this->kind = $kind;
1863    }
1864    public function getKind()
1865    {
1866      return $this->kind;
1867    }
1868  }
1869  
1870  class Google_Service_Blogger_BlogLocale extends Google_Model
1871  {
1872    protected $internal_gapi_mappings = array(
1873    );
1874    public $country;
1875    public $language;
1876    public $variant;
1877  
1878  
1879    public function setCountry($country)
1880    {
1881      $this->country = $country;
1882    }
1883    public function getCountry()
1884    {
1885      return $this->country;
1886    }
1887    public function setLanguage($language)
1888    {
1889      $this->language = $language;
1890    }
1891    public function getLanguage()
1892    {
1893      return $this->language;
1894    }
1895    public function setVariant($variant)
1896    {
1897      $this->variant = $variant;
1898    }
1899    public function getVariant()
1900    {
1901      return $this->variant;
1902    }
1903  }
1904  
1905  class Google_Service_Blogger_BlogPages extends Google_Model
1906  {
1907    protected $internal_gapi_mappings = array(
1908    );
1909    public $selfLink;
1910    public $totalItems;
1911  
1912  
1913    public function setSelfLink($selfLink)
1914    {
1915      $this->selfLink = $selfLink;
1916    }
1917    public function getSelfLink()
1918    {
1919      return $this->selfLink;
1920    }
1921    public function setTotalItems($totalItems)
1922    {
1923      $this->totalItems = $totalItems;
1924    }
1925    public function getTotalItems()
1926    {
1927      return $this->totalItems;
1928    }
1929  }
1930  
1931  class Google_Service_Blogger_BlogPerUserInfo extends Google_Model
1932  {
1933    protected $internal_gapi_mappings = array(
1934    );
1935    public $blogId;
1936    public $hasAdminAccess;
1937    public $kind;
1938    public $photosAlbumKey;
1939    public $role;
1940    public $userId;
1941  
1942  
1943    public function setBlogId($blogId)
1944    {
1945      $this->blogId = $blogId;
1946    }
1947    public function getBlogId()
1948    {
1949      return $this->blogId;
1950    }
1951    public function setHasAdminAccess($hasAdminAccess)
1952    {
1953      $this->hasAdminAccess = $hasAdminAccess;
1954    }
1955    public function getHasAdminAccess()
1956    {
1957      return $this->hasAdminAccess;
1958    }
1959    public function setKind($kind)
1960    {
1961      $this->kind = $kind;
1962    }
1963    public function getKind()
1964    {
1965      return $this->kind;
1966    }
1967    public function setPhotosAlbumKey($photosAlbumKey)
1968    {
1969      $this->photosAlbumKey = $photosAlbumKey;
1970    }
1971    public function getPhotosAlbumKey()
1972    {
1973      return $this->photosAlbumKey;
1974    }
1975    public function setRole($role)
1976    {
1977      $this->role = $role;
1978    }
1979    public function getRole()
1980    {
1981      return $this->role;
1982    }
1983    public function setUserId($userId)
1984    {
1985      $this->userId = $userId;
1986    }
1987    public function getUserId()
1988    {
1989      return $this->userId;
1990    }
1991  }
1992  
1993  class Google_Service_Blogger_BlogPosts extends Google_Collection
1994  {
1995    protected $collection_key = 'items';
1996    protected $internal_gapi_mappings = array(
1997    );
1998    protected $itemsType = 'Google_Service_Blogger_Post';
1999    protected $itemsDataType = 'array';
2000    public $selfLink;
2001    public $totalItems;
2002  
2003  
2004    public function setItems($items)
2005    {
2006      $this->items = $items;
2007    }
2008    public function getItems()
2009    {
2010      return $this->items;
2011    }
2012    public function setSelfLink($selfLink)
2013    {
2014      $this->selfLink = $selfLink;
2015    }
2016    public function getSelfLink()
2017    {
2018      return $this->selfLink;
2019    }
2020    public function setTotalItems($totalItems)
2021    {
2022      $this->totalItems = $totalItems;
2023    }
2024    public function getTotalItems()
2025    {
2026      return $this->totalItems;
2027    }
2028  }
2029  
2030  class Google_Service_Blogger_BlogUserInfo extends Google_Model
2031  {
2032    protected $internal_gapi_mappings = array(
2033          "blogUserInfo" => "blog_user_info",
2034    );
2035    protected $blogType = 'Google_Service_Blogger_Blog';
2036    protected $blogDataType = '';
2037    protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo';
2038    protected $blogUserInfoDataType = '';
2039    public $kind;
2040  
2041  
2042    public function setBlog(Google_Service_Blogger_Blog $blog)
2043    {
2044      $this->blog = $blog;
2045    }
2046    public function getBlog()
2047    {
2048      return $this->blog;
2049    }
2050    public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo)
2051    {
2052      $this->blogUserInfo = $blogUserInfo;
2053    }
2054    public function getBlogUserInfo()
2055    {
2056      return $this->blogUserInfo;
2057    }
2058    public function setKind($kind)
2059    {
2060      $this->kind = $kind;
2061    }
2062    public function getKind()
2063    {
2064      return $this->kind;
2065    }
2066  }
2067  
2068  class Google_Service_Blogger_Comment extends Google_Model
2069  {
2070    protected $internal_gapi_mappings = array(
2071    );
2072    protected $authorType = 'Google_Service_Blogger_CommentAuthor';
2073    protected $authorDataType = '';
2074    protected $blogType = 'Google_Service_Blogger_CommentBlog';
2075    protected $blogDataType = '';
2076    public $content;
2077    public $id;
2078    protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo';
2079    protected $inReplyToDataType = '';
2080    public $kind;
2081    protected $postType = 'Google_Service_Blogger_CommentPost';
2082    protected $postDataType = '';
2083    public $published;
2084    public $selfLink;
2085    public $status;
2086    public $updated;
2087  
2088  
2089    public function setAuthor(Google_Service_Blogger_CommentAuthor $author)
2090    {
2091      $this->author = $author;
2092    }
2093    public function getAuthor()
2094    {
2095      return $this->author;
2096    }
2097    public function setBlog(Google_Service_Blogger_CommentBlog $blog)
2098    {
2099      $this->blog = $blog;
2100    }
2101    public function getBlog()
2102    {
2103      return $this->blog;
2104    }
2105    public function setContent($content)
2106    {
2107      $this->content = $content;
2108    }
2109    public function getContent()
2110    {
2111      return $this->content;
2112    }
2113    public function setId($id)
2114    {
2115      $this->id = $id;
2116    }
2117    public function getId()
2118    {
2119      return $this->id;
2120    }
2121    public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo $inReplyTo)
2122    {
2123      $this->inReplyTo = $inReplyTo;
2124    }
2125    public function getInReplyTo()
2126    {
2127      return $this->inReplyTo;
2128    }
2129    public function setKind($kind)
2130    {
2131      $this->kind = $kind;
2132    }
2133    public function getKind()
2134    {
2135      return $this->kind;
2136    }
2137    public function setPost(Google_Service_Blogger_CommentPost $post)
2138    {
2139      $this->post = $post;
2140    }
2141    public function getPost()
2142    {
2143      return $this->post;
2144    }
2145    public function setPublished($published)
2146    {
2147      $this->published = $published;
2148    }
2149    public function getPublished()
2150    {
2151      return $this->published;
2152    }
2153    public function setSelfLink($selfLink)
2154    {
2155      $this->selfLink = $selfLink;
2156    }
2157    public function getSelfLink()
2158    {
2159      return $this->selfLink;
2160    }
2161    public function setStatus($status)
2162    {
2163      $this->status = $status;
2164    }
2165    public function getStatus()
2166    {
2167      return $this->status;
2168    }
2169    public function setUpdated($updated)
2170    {
2171      $this->updated = $updated;
2172    }
2173    public function getUpdated()
2174    {
2175      return $this->updated;
2176    }
2177  }
2178  
2179  class Google_Service_Blogger_CommentAuthor extends Google_Model
2180  {
2181    protected $internal_gapi_mappings = array(
2182    );
2183    public $displayName;
2184    public $id;
2185    protected $imageType = 'Google_Service_Blogger_CommentAuthorImage';
2186    protected $imageDataType = '';
2187    public $url;
2188  
2189  
2190    public function setDisplayName($displayName)
2191    {
2192      $this->displayName = $displayName;
2193    }
2194    public function getDisplayName()
2195    {
2196      return $this->displayName;
2197    }
2198    public function setId($id)
2199    {
2200      $this->id = $id;
2201    }
2202    public function getId()
2203    {
2204      return $this->id;
2205    }
2206    public function setImage(Google_Service_Blogger_CommentAuthorImage $image)
2207    {
2208      $this->image = $image;
2209    }
2210    public function getImage()
2211    {
2212      return $this->image;
2213    }
2214    public function setUrl($url)
2215    {
2216      $this->url = $url;
2217    }
2218    public function getUrl()
2219    {
2220      return $this->url;
2221    }
2222  }
2223  
2224  class Google_Service_Blogger_CommentAuthorImage extends Google_Model
2225  {
2226    protected $internal_gapi_mappings = array(
2227    );
2228    public $url;
2229  
2230  
2231    public function setUrl($url)
2232    {
2233      $this->url = $url;
2234    }
2235    public function getUrl()
2236    {
2237      return $this->url;
2238    }
2239  }
2240  
2241  class Google_Service_Blogger_CommentBlog extends Google_Model
2242  {
2243    protected $internal_gapi_mappings = array(
2244    );
2245    public $id;
2246  
2247  
2248    public function setId($id)
2249    {
2250      $this->id = $id;
2251    }
2252    public function getId()
2253    {
2254      return $this->id;
2255    }
2256  }
2257  
2258  class Google_Service_Blogger_CommentInReplyTo extends Google_Model
2259  {
2260    protected $internal_gapi_mappings = array(
2261    );
2262    public $id;
2263  
2264  
2265    public function setId($id)
2266    {
2267      $this->id = $id;
2268    }
2269    public function getId()
2270    {
2271      return $this->id;
2272    }
2273  }
2274  
2275  class Google_Service_Blogger_CommentList extends Google_Collection
2276  {
2277    protected $collection_key = 'items';
2278    protected $internal_gapi_mappings = array(
2279    );
2280    public $etag;
2281    protected $itemsType = 'Google_Service_Blogger_Comment';
2282    protected $itemsDataType = 'array';
2283    public $kind;
2284    public $nextPageToken;
2285    public $prevPageToken;
2286  
2287  
2288    public function setEtag($etag)
2289    {
2290      $this->etag = $etag;
2291    }
2292    public function getEtag()
2293    {
2294      return $this->etag;
2295    }
2296    public function setItems($items)
2297    {
2298      $this->items = $items;
2299    }
2300    public function getItems()
2301    {
2302      return $this->items;
2303    }
2304    public function setKind($kind)
2305    {
2306      $this->kind = $kind;
2307    }
2308    public function getKind()
2309    {
2310      return $this->kind;
2311    }
2312    public function setNextPageToken($nextPageToken)
2313    {
2314      $this->nextPageToken = $nextPageToken;
2315    }
2316    public function getNextPageToken()
2317    {
2318      return $this->nextPageToken;
2319    }
2320    public function setPrevPageToken($prevPageToken)
2321    {
2322      $this->prevPageToken = $prevPageToken;
2323    }
2324    public function getPrevPageToken()
2325    {
2326      return $this->prevPageToken;
2327    }
2328  }
2329  
2330  class Google_Service_Blogger_CommentPost extends Google_Model
2331  {
2332    protected $internal_gapi_mappings = array(
2333    );
2334    public $id;
2335  
2336  
2337    public function setId($id)
2338    {
2339      $this->id = $id;
2340    }
2341    public function getId()
2342    {
2343      return $this->id;
2344    }
2345  }
2346  
2347  class Google_Service_Blogger_Page extends Google_Model
2348  {
2349    protected $internal_gapi_mappings = array(
2350    );
2351    protected $authorType = 'Google_Service_Blogger_PageAuthor';
2352    protected $authorDataType = '';
2353    protected $blogType = 'Google_Service_Blogger_PageBlog';
2354    protected $blogDataType = '';
2355    public $content;
2356    public $etag;
2357    public $id;
2358    public $kind;
2359    public $published;
2360    public $selfLink;
2361    public $status;
2362    public $title;
2363    public $updated;
2364    public $url;
2365  
2366  
2367    public function setAuthor(Google_Service_Blogger_PageAuthor $author)
2368    {
2369      $this->author = $author;
2370    }
2371    public function getAuthor()
2372    {
2373      return $this->author;
2374    }
2375    public function setBlog(Google_Service_Blogger_PageBlog $blog)
2376    {
2377      $this->blog = $blog;
2378    }
2379    public function getBlog()
2380    {
2381      return $this->blog;
2382    }
2383    public function setContent($content)
2384    {
2385      $this->content = $content;
2386    }
2387    public function getContent()
2388    {
2389      return $this->content;
2390    }
2391    public function setEtag($etag)
2392    {
2393      $this->etag = $etag;
2394    }
2395    public function getEtag()
2396    {
2397      return $this->etag;
2398    }
2399    public function setId($id)
2400    {
2401      $this->id = $id;
2402    }
2403    public function getId()
2404    {
2405      return $this->id;
2406    }
2407    public function setKind($kind)
2408    {
2409      $this->kind = $kind;
2410    }
2411    public function getKind()
2412    {
2413      return $this->kind;
2414    }
2415    public function setPublished($published)
2416    {
2417      $this->published = $published;
2418    }
2419    public function getPublished()
2420    {
2421      return $this->published;
2422    }
2423    public function setSelfLink($selfLink)
2424    {
2425      $this->selfLink = $selfLink;
2426    }
2427    public function getSelfLink()
2428    {
2429      return $this->selfLink;
2430    }
2431    public function setStatus($status)
2432    {
2433      $this->status = $status;
2434    }
2435    public function getStatus()
2436    {
2437      return $this->status;
2438    }
2439    public function setTitle($title)
2440    {
2441      $this->title = $title;
2442    }
2443    public function getTitle()
2444    {
2445      return $this->title;
2446    }
2447    public function setUpdated($updated)
2448    {
2449      $this->updated = $updated;
2450    }
2451    public function getUpdated()
2452    {
2453      return $this->updated;
2454    }
2455    public function setUrl($url)
2456    {
2457      $this->url = $url;
2458    }
2459    public function getUrl()
2460    {
2461      return $this->url;
2462    }
2463  }
2464  
2465  class Google_Service_Blogger_PageAuthor extends Google_Model
2466  {
2467    protected $internal_gapi_mappings = array(
2468    );
2469    public $displayName;
2470    public $id;
2471    protected $imageType = 'Google_Service_Blogger_PageAuthorImage';
2472    protected $imageDataType = '';
2473    public $url;
2474  
2475  
2476    public function setDisplayName($displayName)
2477    {
2478      $this->displayName = $displayName;
2479    }
2480    public function getDisplayName()
2481    {
2482      return $this->displayName;
2483    }
2484    public function setId($id)
2485    {
2486      $this->id = $id;
2487    }
2488    public function getId()
2489    {
2490      return $this->id;
2491    }
2492    public function setImage(Google_Service_Blogger_PageAuthorImage $image)
2493    {
2494      $this->image = $image;
2495    }
2496    public function getImage()
2497    {
2498      return $this->image;
2499    }
2500    public function setUrl($url)
2501    {
2502      $this->url = $url;
2503    }
2504    public function getUrl()
2505    {
2506      return $this->url;
2507    }
2508  }
2509  
2510  class Google_Service_Blogger_PageAuthorImage extends Google_Model
2511  {
2512    protected $internal_gapi_mappings = array(
2513    );
2514    public $url;
2515  
2516  
2517    public function setUrl($url)
2518    {
2519      $this->url = $url;
2520    }
2521    public function getUrl()
2522    {
2523      return $this->url;
2524    }
2525  }
2526  
2527  class Google_Service_Blogger_PageBlog extends Google_Model
2528  {
2529    protected $internal_gapi_mappings = array(
2530    );
2531    public $id;
2532  
2533  
2534    public function setId($id)
2535    {
2536      $this->id = $id;
2537    }
2538    public function getId()
2539    {
2540      return $this->id;
2541    }
2542  }
2543  
2544  class Google_Service_Blogger_PageList extends Google_Collection
2545  {
2546    protected $collection_key = 'items';
2547    protected $internal_gapi_mappings = array(
2548    );
2549    public $etag;
2550    protected $itemsType = 'Google_Service_Blogger_Page';
2551    protected $itemsDataType = 'array';
2552    public $kind;
2553    public $nextPageToken;
2554  
2555  
2556    public function setEtag($etag)
2557    {
2558      $this->etag = $etag;
2559    }
2560    public function getEtag()
2561    {
2562      return $this->etag;
2563    }
2564    public function setItems($items)
2565    {
2566      $this->items = $items;
2567    }
2568    public function getItems()
2569    {
2570      return $this->items;
2571    }
2572    public function setKind($kind)
2573    {
2574      $this->kind = $kind;
2575    }
2576    public function getKind()
2577    {
2578      return $this->kind;
2579    }
2580    public function setNextPageToken($nextPageToken)
2581    {
2582      $this->nextPageToken = $nextPageToken;
2583    }
2584    public function getNextPageToken()
2585    {
2586      return $this->nextPageToken;
2587    }
2588  }
2589  
2590  class Google_Service_Blogger_Pageviews extends Google_Collection
2591  {
2592    protected $collection_key = 'counts';
2593    protected $internal_gapi_mappings = array(
2594    );
2595    public $blogId;
2596    protected $countsType = 'Google_Service_Blogger_PageviewsCounts';
2597    protected $countsDataType = 'array';
2598    public $kind;
2599  
2600  
2601    public function setBlogId($blogId)
2602    {
2603      $this->blogId = $blogId;
2604    }
2605    public function getBlogId()
2606    {
2607      return $this->blogId;
2608    }
2609    public function setCounts($counts)
2610    {
2611      $this->counts = $counts;
2612    }
2613    public function getCounts()
2614    {
2615      return $this->counts;
2616    }
2617    public function setKind($kind)
2618    {
2619      $this->kind = $kind;
2620    }
2621    public function getKind()
2622    {
2623      return $this->kind;
2624    }
2625  }
2626  
2627  class Google_Service_Blogger_PageviewsCounts extends Google_Model
2628  {
2629    protected $internal_gapi_mappings = array(
2630    );
2631    public $count;
2632    public $timeRange;
2633  
2634  
2635    public function setCount($count)
2636    {
2637      $this->count = $count;
2638    }
2639    public function getCount()
2640    {
2641      return $this->count;
2642    }
2643    public function setTimeRange($timeRange)
2644    {
2645      $this->timeRange = $timeRange;
2646    }
2647    public function getTimeRange()
2648    {
2649      return $this->timeRange;
2650    }
2651  }
2652  
2653  class Google_Service_Blogger_Post extends Google_Collection
2654  {
2655    protected $collection_key = 'labels';
2656    protected $internal_gapi_mappings = array(
2657    );
2658    protected $authorType = 'Google_Service_Blogger_PostAuthor';
2659    protected $authorDataType = '';
2660    protected $blogType = 'Google_Service_Blogger_PostBlog';
2661    protected $blogDataType = '';
2662    public $content;
2663    public $customMetaData;
2664    public $etag;
2665    public $id;
2666    protected $imagesType = 'Google_Service_Blogger_PostImages';
2667    protected $imagesDataType = 'array';
2668    public $kind;
2669    public $labels;
2670    protected $locationType = 'Google_Service_Blogger_PostLocation';
2671    protected $locationDataType = '';
2672    public $published;
2673    public $readerComments;
2674    protected $repliesType = 'Google_Service_Blogger_PostReplies';
2675    protected $repliesDataType = '';
2676    public $selfLink;
2677    public $status;
2678    public $title;
2679    public $titleLink;
2680    public $updated;
2681    public $url;
2682  
2683  
2684    public function setAuthor(Google_Service_Blogger_PostAuthor $author)
2685    {
2686      $this->author = $author;
2687    }
2688    public function getAuthor()
2689    {
2690      return $this->author;
2691    }
2692    public function setBlog(Google_Service_Blogger_PostBlog $blog)
2693    {
2694      $this->blog = $blog;
2695    }
2696    public function getBlog()
2697    {
2698      return $this->blog;
2699    }
2700    public function setContent($content)
2701    {
2702      $this->content = $content;
2703    }
2704    public function getContent()
2705    {
2706      return $this->content;
2707    }
2708    public function setCustomMetaData($customMetaData)
2709    {
2710      $this->customMetaData = $customMetaData;
2711    }
2712    public function getCustomMetaData()
2713    {
2714      return $this->customMetaData;
2715    }
2716    public function setEtag($etag)
2717    {
2718      $this->etag = $etag;
2719    }
2720    public function getEtag()
2721    {
2722      return $this->etag;
2723    }
2724    public function setId($id)
2725    {
2726      $this->id = $id;
2727    }
2728    public function getId()
2729    {
2730      return $this->id;
2731    }
2732    public function setImages($images)
2733    {
2734      $this->images = $images;
2735    }
2736    public function getImages()
2737    {
2738      return $this->images;
2739    }
2740    public function setKind($kind)
2741    {
2742      $this->kind = $kind;
2743    }
2744    public function getKind()
2745    {
2746      return $this->kind;
2747    }
2748    public function setLabels($labels)
2749    {
2750      $this->labels = $labels;
2751    }
2752    public function getLabels()
2753    {
2754      return $this->labels;
2755    }
2756    public function setLocation(Google_Service_Blogger_PostLocation $location)
2757    {
2758      $this->location = $location;
2759    }
2760    public function getLocation()
2761    {
2762      return $this->location;
2763    }
2764    public function setPublished($published)
2765    {
2766      $this->published = $published;
2767    }
2768    public function getPublished()
2769    {
2770      return $this->published;
2771    }
2772    public function setReaderComments($readerComments)
2773    {
2774      $this->readerComments = $readerComments;
2775    }
2776    public function getReaderComments()
2777    {
2778      return $this->readerComments;
2779    }
2780    public function setReplies(Google_Service_Blogger_PostReplies $replies)
2781    {
2782      $this->replies = $replies;
2783    }
2784    public function getReplies()
2785    {
2786      return $this->replies;
2787    }
2788    public function setSelfLink($selfLink)
2789    {
2790      $this->selfLink = $selfLink;
2791    }
2792    public function getSelfLink()
2793    {
2794      return $this->selfLink;
2795    }
2796    public function setStatus($status)
2797    {
2798      $this->status = $status;
2799    }
2800    public function getStatus()
2801    {
2802      return $this->status;
2803    }
2804    public function setTitle($title)
2805    {
2806      $this->title = $title;
2807    }
2808    public function getTitle()
2809    {
2810      return $this->title;
2811    }
2812    public function setTitleLink($titleLink)
2813    {
2814      $this->titleLink = $titleLink;
2815    }
2816    public function getTitleLink()
2817    {
2818      return $this->titleLink;
2819    }
2820    public function setUpdated($updated)
2821    {
2822      $this->updated = $updated;
2823    }
2824    public function getUpdated()
2825    {
2826      return $this->updated;
2827    }
2828    public function setUrl($url)
2829    {
2830      $this->url = $url;
2831    }
2832    public function getUrl()
2833    {
2834      return $this->url;
2835    }
2836  }
2837  
2838  class Google_Service_Blogger_PostAuthor extends Google_Model
2839  {
2840    protected $internal_gapi_mappings = array(
2841    );
2842    public $displayName;
2843    public $id;
2844    protected $imageType = 'Google_Service_Blogger_PostAuthorImage';
2845    protected $imageDataType = '';
2846    public $url;
2847  
2848  
2849    public function setDisplayName($displayName)
2850    {
2851      $this->displayName = $displayName;
2852    }
2853    public function getDisplayName()
2854    {
2855      return $this->displayName;
2856    }
2857    public function setId($id)
2858    {
2859      $this->id = $id;
2860    }
2861    public function getId()
2862    {
2863      return $this->id;
2864    }
2865    public function setImage(Google_Service_Blogger_PostAuthorImage $image)
2866    {
2867      $this->image = $image;
2868    }
2869    public function getImage()
2870    {
2871      return $this->image;
2872    }
2873    public function setUrl($url)
2874    {
2875      $this->url = $url;
2876    }
2877    public function getUrl()
2878    {
2879      return $this->url;
2880    }
2881  }
2882  
2883  class Google_Service_Blogger_PostAuthorImage extends Google_Model
2884  {
2885    protected $internal_gapi_mappings = array(
2886    );
2887    public $url;
2888  
2889  
2890    public function setUrl($url)
2891    {
2892      $this->url = $url;
2893    }
2894    public function getUrl()
2895    {
2896      return $this->url;
2897    }
2898  }
2899  
2900  class Google_Service_Blogger_PostBlog extends Google_Model
2901  {
2902    protected $internal_gapi_mappings = array(
2903    );
2904    public $id;
2905  
2906  
2907    public function setId($id)
2908    {
2909      $this->id = $id;
2910    }
2911    public function getId()
2912    {
2913      return $this->id;
2914    }
2915  }
2916  
2917  class Google_Service_Blogger_PostImages extends Google_Model
2918  {
2919    protected $internal_gapi_mappings = array(
2920    );
2921    public $url;
2922  
2923  
2924    public function setUrl($url)
2925    {
2926      $this->url = $url;
2927    }
2928    public function getUrl()
2929    {
2930      return $this->url;
2931    }
2932  }
2933  
2934  class Google_Service_Blogger_PostList extends Google_Collection
2935  {
2936    protected $collection_key = 'items';
2937    protected $internal_gapi_mappings = array(
2938    );
2939    public $etag;
2940    protected $itemsType = 'Google_Service_Blogger_Post';
2941    protected $itemsDataType = 'array';
2942    public $kind;
2943    public $nextPageToken;
2944  
2945  
2946    public function setEtag($etag)
2947    {
2948      $this->etag = $etag;
2949    }
2950    public function getEtag()
2951    {
2952      return $this->etag;
2953    }
2954    public function setItems($items)
2955    {
2956      $this->items = $items;
2957    }
2958    public function getItems()
2959    {
2960      return $this->items;
2961    }
2962    public function setKind($kind)
2963    {
2964      $this->kind = $kind;
2965    }
2966    public function getKind()
2967    {
2968      return $this->kind;
2969    }
2970    public function setNextPageToken($nextPageToken)
2971    {
2972      $this->nextPageToken = $nextPageToken;
2973    }
2974    public function getNextPageToken()
2975    {
2976      return $this->nextPageToken;
2977    }
2978  }
2979  
2980  class Google_Service_Blogger_PostLocation extends Google_Model
2981  {
2982    protected $internal_gapi_mappings = array(
2983    );
2984    public $lat;
2985    public $lng;
2986    public $name;
2987    public $span;
2988  
2989  
2990    public function setLat($lat)
2991    {
2992      $this->lat = $lat;
2993    }
2994    public function getLat()
2995    {
2996      return $this->lat;
2997    }
2998    public function setLng($lng)
2999    {
3000      $this->lng = $lng;
3001    }
3002    public function getLng()
3003    {
3004      return $this->lng;
3005    }
3006    public function setName($name)
3007    {
3008      $this->name = $name;
3009    }
3010    public function getName()
3011    {
3012      return $this->name;
3013    }
3014    public function setSpan($span)
3015    {
3016      $this->span = $span;
3017    }
3018    public function getSpan()
3019    {
3020      return $this->span;
3021    }
3022  }
3023  
3024  class Google_Service_Blogger_PostPerUserInfo extends Google_Model
3025  {
3026    protected $internal_gapi_mappings = array(
3027    );
3028    public $blogId;
3029    public $hasEditAccess;
3030    public $kind;
3031    public $postId;
3032    public $userId;
3033  
3034  
3035    public function setBlogId($blogId)
3036    {
3037      $this->blogId = $blogId;
3038    }
3039    public function getBlogId()
3040    {
3041      return $this->blogId;
3042    }
3043    public function setHasEditAccess($hasEditAccess)
3044    {
3045      $this->hasEditAccess = $hasEditAccess;
3046    }
3047    public function getHasEditAccess()
3048    {
3049      return $this->hasEditAccess;
3050    }
3051    public function setKind($kind)
3052    {
3053      $this->kind = $kind;
3054    }
3055    public function getKind()
3056    {
3057      return $this->kind;
3058    }
3059    public function setPostId($postId)
3060    {
3061      $this->postId = $postId;
3062    }
3063    public function getPostId()
3064    {
3065      return $this->postId;
3066    }
3067    public function setUserId($userId)
3068    {
3069      $this->userId = $userId;
3070    }
3071    public function getUserId()
3072    {
3073      return $this->userId;
3074    }
3075  }
3076  
3077  class Google_Service_Blogger_PostReplies extends Google_Collection
3078  {
3079    protected $collection_key = 'items';
3080    protected $internal_gapi_mappings = array(
3081    );
3082    protected $itemsType = 'Google_Service_Blogger_Comment';
3083    protected $itemsDataType = 'array';
3084    public $selfLink;
3085    public $totalItems;
3086  
3087  
3088    public function setItems($items)
3089    {
3090      $this->items = $items;
3091    }
3092    public function getItems()
3093    {
3094      return $this->items;
3095    }
3096    public function setSelfLink($selfLink)
3097    {
3098      $this->selfLink = $selfLink;
3099    }
3100    public function getSelfLink()
3101    {
3102      return $this->selfLink;
3103    }
3104    public function setTotalItems($totalItems)
3105    {
3106      $this->totalItems = $totalItems;
3107    }
3108    public function getTotalItems()
3109    {
3110      return $this->totalItems;
3111    }
3112  }
3113  
3114  class Google_Service_Blogger_PostUserInfo extends Google_Model
3115  {
3116    protected $internal_gapi_mappings = array(
3117          "postUserInfo" => "post_user_info",
3118    );
3119    public $kind;
3120    protected $postType = 'Google_Service_Blogger_Post';
3121    protected $postDataType = '';
3122    protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo';
3123    protected $postUserInfoDataType = '';
3124  
3125  
3126    public function setKind($kind)
3127    {
3128      $this->kind = $kind;
3129    }
3130    public function getKind()
3131    {
3132      return $this->kind;
3133    }
3134    public function setPost(Google_Service_Blogger_Post $post)
3135    {
3136      $this->post = $post;
3137    }
3138    public function getPost()
3139    {
3140      return $this->post;
3141    }
3142    public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo)
3143    {
3144      $this->postUserInfo = $postUserInfo;
3145    }
3146    public function getPostUserInfo()
3147    {
3148      return $this->postUserInfo;
3149    }
3150  }
3151  
3152  class Google_Service_Blogger_PostUserInfosList extends Google_Collection
3153  {
3154    protected $collection_key = 'items';
3155    protected $internal_gapi_mappings = array(
3156    );
3157    protected $itemsType = 'Google_Service_Blogger_PostUserInfo';
3158    protected $itemsDataType = 'array';
3159    public $kind;
3160    public $nextPageToken;
3161  
3162  
3163    public function setItems($items)
3164    {
3165      $this->items = $items;
3166    }
3167    public function getItems()
3168    {
3169      return $this->items;
3170    }
3171    public function setKind($kind)
3172    {
3173      $this->kind = $kind;
3174    }
3175    public function getKind()
3176    {
3177      return $this->kind;
3178    }
3179    public function setNextPageToken($nextPageToken)
3180    {
3181      $this->nextPageToken = $nextPageToken;
3182    }
3183    public function getNextPageToken()
3184    {
3185      return $this->nextPageToken;
3186    }
3187  }
3188  
3189  class Google_Service_Blogger_User extends Google_Model
3190  {
3191    protected $internal_gapi_mappings = array(
3192    );
3193    public $about;
3194    protected $blogsType = 'Google_Service_Blogger_UserBlogs';
3195    protected $blogsDataType = '';
3196    public $created;
3197    public $displayName;
3198    public $id;
3199    public $kind;
3200    protected $localeType = 'Google_Service_Blogger_UserLocale';
3201    protected $localeDataType = '';
3202    public $selfLink;
3203    public $url;
3204  
3205  
3206    public function setAbout($about)
3207    {
3208      $this->about = $about;
3209    }
3210    public function getAbout()
3211    {
3212      return $this->about;
3213    }
3214    public function setBlogs(Google_Service_Blogger_UserBlogs $blogs)
3215    {
3216      $this->blogs = $blogs;
3217    }
3218    public function getBlogs()
3219    {
3220      return $this->blogs;
3221    }
3222    public function setCreated($created)
3223    {
3224      $this->created = $created;
3225    }
3226    public function getCreated()
3227    {
3228      return $this->created;
3229    }
3230    public function setDisplayName($displayName)
3231    {
3232      $this->displayName = $displayName;
3233    }
3234    public function getDisplayName()
3235    {
3236      return $this->displayName;
3237    }
3238    public function setId($id)
3239    {
3240      $this->id = $id;
3241    }
3242    public function getId()
3243    {
3244      return $this->id;
3245    }
3246    public function setKind($kind)
3247    {
3248      $this->kind = $kind;
3249    }
3250    public function getKind()
3251    {
3252      return $this->kind;
3253    }
3254    public function setLocale(Google_Service_Blogger_UserLocale $locale)
3255    {
3256      $this->locale = $locale;
3257    }
3258    public function getLocale()
3259    {
3260      return $this->locale;
3261    }
3262    public function setSelfLink($selfLink)
3263    {
3264      $this->selfLink = $selfLink;
3265    }
3266    public function getSelfLink()
3267    {
3268      return $this->selfLink;
3269    }
3270    public function setUrl($url)
3271    {
3272      $this->url = $url;
3273    }
3274    public function getUrl()
3275    {
3276      return $this->url;
3277    }
3278  }
3279  
3280  class Google_Service_Blogger_UserBlogs extends Google_Model
3281  {
3282    protected $internal_gapi_mappings = array(
3283    );
3284    public $selfLink;
3285  
3286  
3287    public function setSelfLink($selfLink)
3288    {
3289      $this->selfLink = $selfLink;
3290    }
3291    public function getSelfLink()
3292    {
3293      return $this->selfLink;
3294    }
3295  }
3296  
3297  class Google_Service_Blogger_UserLocale extends Google_Model
3298  {
3299    protected $internal_gapi_mappings = array(
3300    );
3301    public $country;
3302    public $language;
3303    public $variant;
3304  
3305  
3306    public function setCountry($country)
3307    {
3308      $this->country = $country;
3309    }
3310    public function getCountry()
3311    {
3312      return $this->country;
3313    }
3314    public function setLanguage($language)
3315    {
3316      $this->language = $language;
3317    }
3318    public function getLanguage()
3319    {
3320      return $this->language;
3321    }
3322    public function setVariant($variant)
3323    {
3324      $this->variant = $variant;
3325    }
3326    public function getVariant()
3327    {
3328      return $this->variant;
3329    }
3330  }