source: vendor/google/apiclient-services/src/SiteVerification.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 4.3 KB
Line 
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
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for SiteVerification (v1).
24 *
25 * <p>
26 * Verifies ownership of websites or domains with Google.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/site-verification/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class SiteVerification extends \Google\Service
36{
37 /** Manage the list of sites and domains you control. */
38 const SITEVERIFICATION =
39 "https://www.googleapis.com/auth/siteverification";
40 /** Manage your new site verifications with Google. */
41 const SITEVERIFICATION_VERIFY_ONLY =
42 "https://www.googleapis.com/auth/siteverification.verify_only";
43
44 public $webResource;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the SiteVerification service.
49 *
50 * @param Client|array $clientOrConfig The client used to deliver requests, or a
51 * config array to pass to a new Client instance.
52 * @param string $rootUrl The root URL used for requests to the service.
53 */
54 public function __construct($clientOrConfig = [], $rootUrl = null)
55 {
56 parent::__construct($clientOrConfig);
57 $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/';
58 $this->rootUrlTemplate = $rootUrl ?: 'https://www.UNIVERSE_DOMAIN/';
59 $this->servicePath = 'siteVerification/v1/';
60 $this->batchPath = 'batch/siteVerification/v1';
61 $this->version = 'v1';
62 $this->serviceName = 'siteVerification';
63
64 $this->webResource = new SiteVerification\Resource\WebResource(
65 $this,
66 $this->serviceName,
67 'webResource',
68 [
69 'methods' => [
70 'delete' => [
71 'path' => 'webResource/{id}',
72 'httpMethod' => 'DELETE',
73 'parameters' => [
74 'id' => [
75 'location' => 'path',
76 'type' => 'string',
77 'required' => true,
78 ],
79 ],
80 ],'get' => [
81 'path' => 'webResource/{id}',
82 'httpMethod' => 'GET',
83 'parameters' => [
84 'id' => [
85 'location' => 'path',
86 'type' => 'string',
87 'required' => true,
88 ],
89 ],
90 ],'getToken' => [
91 'path' => 'token',
92 'httpMethod' => 'POST',
93 'parameters' => [],
94 ],'insert' => [
95 'path' => 'webResource',
96 'httpMethod' => 'POST',
97 'parameters' => [
98 'verificationMethod' => [
99 'location' => 'query',
100 'type' => 'string',
101 'required' => true,
102 ],
103 ],
104 ],'list' => [
105 'path' => 'webResource',
106 'httpMethod' => 'GET',
107 'parameters' => [],
108 ],'patch' => [
109 'path' => 'webResource/{id}',
110 'httpMethod' => 'PATCH',
111 'parameters' => [
112 'id' => [
113 'location' => 'path',
114 'type' => 'string',
115 'required' => true,
116 ],
117 ],
118 ],'update' => [
119 'path' => 'webResource/{id}',
120 'httpMethod' => 'PUT',
121 'parameters' => [
122 'id' => [
123 'location' => 'path',
124 'type' => 'string',
125 'required' => true,
126 ],
127 ],
128 ],
129 ]
130 ]
131 );
132 }
133}
134
135// Adding a class alias for backwards compatibility with the previous class name.
136class_alias(SiteVerification::class, 'Google_Service_SiteVerification');
Note: See TracBrowser for help on using the repository browser.