source: vendor/google/apiclient-services/src/MyBusinessPlaceActions.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.4 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 MyBusinessPlaceActions (v1).
24 *
25 * <p>
26 * The My Business Place Actions API provides an interface for managing place
27 * action links of a location on Google. Note - If you have a quota of 0 after
28 * enabling the API, 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 MyBusinessPlaceActions extends \Google\Service
38{
39
40
41 public $locations_placeActionLinks;
42 public $placeActionTypeMetadata;
43 public $rootUrlTemplate;
44
45 /**
46 * Constructs the internal representation of the MyBusinessPlaceActions
47 * service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://mybusinessplaceactions.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://mybusinessplaceactions.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'mybusinessplaceactions';
62
63 $this->locations_placeActionLinks = new MyBusinessPlaceActions\Resource\LocationsPlaceActionLinks(
64 $this,
65 $this->serviceName,
66 'placeActionLinks',
67 [
68 'methods' => [
69 'create' => [
70 'path' => 'v1/{+parent}/placeActionLinks',
71 'httpMethod' => 'POST',
72 'parameters' => [
73 'parent' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 ],
79 ],'delete' => [
80 'path' => 'v1/{+name}',
81 'httpMethod' => 'DELETE',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 ],
89 ],'get' => [
90 'path' => 'v1/{+name}',
91 'httpMethod' => 'GET',
92 'parameters' => [
93 'name' => [
94 'location' => 'path',
95 'type' => 'string',
96 'required' => true,
97 ],
98 ],
99 ],'list' => [
100 'path' => 'v1/{+parent}/placeActionLinks',
101 'httpMethod' => 'GET',
102 'parameters' => [
103 'parent' => [
104 'location' => 'path',
105 'type' => 'string',
106 'required' => true,
107 ],
108 'filter' => [
109 'location' => 'query',
110 'type' => 'string',
111 ],
112 'pageSize' => [
113 'location' => 'query',
114 'type' => 'integer',
115 ],
116 'pageToken' => [
117 'location' => 'query',
118 'type' => 'string',
119 ],
120 ],
121 ],'patch' => [
122 'path' => 'v1/{+name}',
123 'httpMethod' => 'PATCH',
124 'parameters' => [
125 'name' => [
126 'location' => 'path',
127 'type' => 'string',
128 'required' => true,
129 ],
130 'updateMask' => [
131 'location' => 'query',
132 'type' => 'string',
133 ],
134 ],
135 ],
136 ]
137 ]
138 );
139 $this->placeActionTypeMetadata = new MyBusinessPlaceActions\Resource\PlaceActionTypeMetadata(
140 $this,
141 $this->serviceName,
142 'placeActionTypeMetadata',
143 [
144 'methods' => [
145 'list' => [
146 'path' => 'v1/placeActionTypeMetadata',
147 'httpMethod' => 'GET',
148 'parameters' => [
149 'filter' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 'languageCode' => [
154 'location' => 'query',
155 'type' => 'string',
156 ],
157 'pageSize' => [
158 'location' => 'query',
159 'type' => 'integer',
160 ],
161 'pageToken' => [
162 'location' => 'query',
163 'type' => 'string',
164 ],
165 ],
166 ],
167 ]
168 ]
169 );
170 }
171}
172
173// Adding a class alias for backwards compatibility with the previous class name.
174class_alias(MyBusinessPlaceActions::class, 'Google_Service_MyBusinessPlaceActions');
Note: See TracBrowser for help on using the repository browser.