source: vendor/google/apiclient-services/src/MyBusinessQA.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[e3d4e0a]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 MyBusinessQA (v1).
24 *
25 * <p>
26 * The My Business Q&A API allows questions and answers to be posted for
27 * specific listings. Note - If you have a quota of 0 after enabling the API,
28 * please request for GBP API access.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://developers.google.com/my-business/" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class MyBusinessQA extends \Google\Service
38{
39
40
41 public $locations_questions;
42 public $locations_questions_answers;
43 public $rootUrlTemplate;
44
45 /**
46 * Constructs the internal representation of the MyBusinessQA 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://mybusinessqanda.googleapis.com/';
56 $this->rootUrlTemplate = $rootUrl ?: 'https://mybusinessqanda.UNIVERSE_DOMAIN/';
57 $this->servicePath = '';
58 $this->batchPath = 'batch';
59 $this->version = 'v1';
60 $this->serviceName = 'mybusinessqanda';
61
62 $this->locations_questions = new MyBusinessQA\Resource\LocationsQuestions(
63 $this,
64 $this->serviceName,
65 'questions',
66 [
67 'methods' => [
68 'create' => [
69 'path' => 'v1/{+parent}',
70 'httpMethod' => 'POST',
71 'parameters' => [
72 'parent' => [
73 'location' => 'path',
74 'type' => 'string',
75 'required' => true,
76 ],
77 ],
78 ],'delete' => [
79 'path' => 'v1/{+name}',
80 'httpMethod' => 'DELETE',
81 'parameters' => [
82 'name' => [
83 'location' => 'path',
84 'type' => 'string',
85 'required' => true,
86 ],
87 ],
88 ],'list' => [
89 'path' => 'v1/{+parent}',
90 'httpMethod' => 'GET',
91 'parameters' => [
92 'parent' => [
93 'location' => 'path',
94 'type' => 'string',
95 'required' => true,
96 ],
97 'answersPerQuestion' => [
98 'location' => 'query',
99 'type' => 'integer',
100 ],
101 'filter' => [
102 'location' => 'query',
103 'type' => 'string',
104 ],
105 'orderBy' => [
106 'location' => 'query',
107 'type' => 'string',
108 ],
109 'pageSize' => [
110 'location' => 'query',
111 'type' => 'integer',
112 ],
113 'pageToken' => [
114 'location' => 'query',
115 'type' => 'string',
116 ],
117 ],
118 ],'patch' => [
119 'path' => 'v1/{+name}',
120 'httpMethod' => 'PATCH',
121 'parameters' => [
122 'name' => [
123 'location' => 'path',
124 'type' => 'string',
125 'required' => true,
126 ],
127 'updateMask' => [
128 'location' => 'query',
129 'type' => 'string',
130 ],
131 ],
132 ],
133 ]
134 ]
135 );
136 $this->locations_questions_answers = new MyBusinessQA\Resource\LocationsQuestionsAnswers(
137 $this,
138 $this->serviceName,
139 'answers',
140 [
141 'methods' => [
142 'delete' => [
143 'path' => 'v1/{+name}/answers:delete',
144 'httpMethod' => 'DELETE',
145 'parameters' => [
146 'name' => [
147 'location' => 'path',
148 'type' => 'string',
149 'required' => true,
150 ],
151 ],
152 ],'list' => [
153 'path' => 'v1/{+parent}/answers',
154 'httpMethod' => 'GET',
155 'parameters' => [
156 'parent' => [
157 'location' => 'path',
158 'type' => 'string',
159 'required' => true,
160 ],
161 'orderBy' => [
162 'location' => 'query',
163 'type' => 'string',
164 ],
165 'pageSize' => [
166 'location' => 'query',
167 'type' => 'integer',
168 ],
169 'pageToken' => [
170 'location' => 'query',
171 'type' => 'string',
172 ],
173 ],
174 ],'upsert' => [
175 'path' => 'v1/{+parent}/answers:upsert',
176 'httpMethod' => 'POST',
177 'parameters' => [
178 'parent' => [
179 'location' => 'path',
180 'type' => 'string',
181 'required' => true,
182 ],
183 ],
184 ],
185 ]
186 ]
187 );
188 }
189}
190
191// Adding a class alias for backwards compatibility with the previous class name.
192class_alias(MyBusinessQA::class, 'Google_Service_MyBusinessQA');
Note: See TracBrowser for help on using the repository browser.