1<?php
2/*
3 * Copyright 2014 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 SiteVerification (v1).
20 *
21 * <p>
22 * Verifies ownership of websites or domains with Google.</p>
23 *
24 * <p>
25 * For more information about this service, see the API
26 * <a href="https://developers.google.com/site-verification/" target="_blank">Documentation</a>
27 * </p>
28 *
29 * @author Google, Inc.
30 */
31class Google_Service_SiteVerification extends Google_Service
32{
33  /** Manage the list of sites and domains you control. */
34  const SITEVERIFICATION =
35      "https://www.googleapis.com/auth/siteverification";
36  /** Manage your new site verifications with Google. */
37  const SITEVERIFICATION_VERIFY_ONLY =
38      "https://www.googleapis.com/auth/siteverification.verify_only";
39
40  public $webResource;
41
42  /**
43   * Constructs the internal representation of the SiteVerification service.
44   *
45   * @param Google_Client $client
46   */
47  public function __construct(Google_Client $client)
48  {
49    parent::__construct($client);
50    $this->rootUrl = 'https://www.googleapis.com/';
51    $this->servicePath = 'siteVerification/v1/';
52    $this->batchPath = 'batch/siteVerification/v1';
53    $this->version = 'v1';
54    $this->serviceName = 'siteVerification';
55
56    $this->webResource = new Google_Service_SiteVerification_Resource_WebResource(
57        $this,
58        $this->serviceName,
59        'webResource',
60        array(
61          'methods' => array(
62            'delete' => array(
63              'path' => 'webResource/{id}',
64              'httpMethod' => 'DELETE',
65              'parameters' => array(
66                'id' => array(
67                  'location' => 'path',
68                  'type' => 'string',
69                  'required' => true,
70                ),
71              ),
72            ),'get' => array(
73              'path' => 'webResource/{id}',
74              'httpMethod' => 'GET',
75              'parameters' => array(
76                'id' => array(
77                  'location' => 'path',
78                  'type' => 'string',
79                  'required' => true,
80                ),
81              ),
82            ),'getToken' => array(
83              'path' => 'token',
84              'httpMethod' => 'POST',
85              'parameters' => array(),
86            ),'insert' => array(
87              'path' => 'webResource',
88              'httpMethod' => 'POST',
89              'parameters' => array(
90                'verificationMethod' => array(
91                  'location' => 'query',
92                  'type' => 'string',
93                  'required' => true,
94                ),
95              ),
96            ),'list' => array(
97              'path' => 'webResource',
98              'httpMethod' => 'GET',
99              'parameters' => array(),
100            ),'patch' => array(
101              'path' => 'webResource/{id}',
102              'httpMethod' => 'PATCH',
103              'parameters' => array(
104                'id' => array(
105                  'location' => 'path',
106                  'type' => 'string',
107                  'required' => true,
108                ),
109              ),
110            ),'update' => array(
111              'path' => 'webResource/{id}',
112              'httpMethod' => 'PUT',
113              'parameters' => array(
114                'id' => array(
115                  'location' => 'path',
116                  'type' => 'string',
117                  'required' => true,
118                ),
119              ),
120            ),
121          )
122        )
123    );
124  }
125}
126