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 MyBusinessVerifications (v1). 24 * 25 * <p> 26 * The My Business Verifications API provides an interface for taking 27 * verifications related actions for locations.</p> 28 * 29 * <p> 30 * For more information about this service, see the API 31 * <a href="https://developers.google.com/my-business/" target="_blank">Documentation</a> 32 * </p> 33 * 34 * @author Google, Inc. 35 */ 36class MyBusinessVerifications extends \Google\Service 37{ 38 39 40 public $locations; 41 public $locations_verifications; 42 public $verificationTokens; 43 44 /** 45 * Constructs the internal representation of the MyBusinessVerifications 46 * service. 47 * 48 * @param Client|array $clientOrConfig The client used to deliver requests, or a 49 * config array to pass to a new Client instance. 50 * @param string $rootUrl The root URL used for requests to the service. 51 */ 52 public function __construct($clientOrConfig = [], $rootUrl = null) 53 { 54 parent::__construct($clientOrConfig); 55 $this->rootUrl = $rootUrl ?: 'https://mybusinessverifications.googleapis.com/'; 56 $this->servicePath = ''; 57 $this->batchPath = 'batch'; 58 $this->version = 'v1'; 59 $this->serviceName = 'mybusinessverifications'; 60 61 $this->locations = new MyBusinessVerifications\Resource\Locations( 62 $this, 63 $this->serviceName, 64 'locations', 65 [ 66 'methods' => [ 67 'fetchVerificationOptions' => [ 68 'path' => 'v1/{+location}:fetchVerificationOptions', 69 'httpMethod' => 'POST', 70 'parameters' => [ 71 'location' => [ 72 'location' => 'path', 73 'type' => 'string', 74 'required' => true, 75 ], 76 ], 77 ],'getVoiceOfMerchantState' => [ 78 'path' => 'v1/{+name}/VoiceOfMerchantState', 79 'httpMethod' => 'GET', 80 'parameters' => [ 81 'name' => [ 82 'location' => 'path', 83 'type' => 'string', 84 'required' => true, 85 ], 86 ], 87 ],'verify' => [ 88 'path' => 'v1/{+name}:verify', 89 'httpMethod' => 'POST', 90 'parameters' => [ 91 'name' => [ 92 'location' => 'path', 93 'type' => 'string', 94 'required' => true, 95 ], 96 ], 97 ], 98 ] 99 ] 100 ); 101 $this->locations_verifications = new MyBusinessVerifications\Resource\LocationsVerifications( 102 $this, 103 $this->serviceName, 104 'verifications', 105 [ 106 'methods' => [ 107 'complete' => [ 108 'path' => 'v1/{+name}:complete', 109 'httpMethod' => 'POST', 110 'parameters' => [ 111 'name' => [ 112 'location' => 'path', 113 'type' => 'string', 114 'required' => true, 115 ], 116 ], 117 ],'list' => [ 118 'path' => 'v1/{+parent}/verifications', 119 'httpMethod' => 'GET', 120 'parameters' => [ 121 'parent' => [ 122 'location' => 'path', 123 'type' => 'string', 124 'required' => true, 125 ], 126 'pageSize' => [ 127 'location' => 'query', 128 'type' => 'integer', 129 ], 130 'pageToken' => [ 131 'location' => 'query', 132 'type' => 'string', 133 ], 134 ], 135 ], 136 ] 137 ] 138 ); 139 $this->verificationTokens = new MyBusinessVerifications\Resource\VerificationTokens( 140 $this, 141 $this->serviceName, 142 'verificationTokens', 143 [ 144 'methods' => [ 145 'generate' => [ 146 'path' => 'v1/verificationTokens:generate', 147 'httpMethod' => 'POST', 148 'parameters' => [], 149 ], 150 ] 151 ] 152 ); 153 } 154} 155 156// Adding a class alias for backwards compatibility with the previous class name. 157class_alias(MyBusinessVerifications::class, 'Google_Service_MyBusinessVerifications'); 158