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 MyBusinessLodging (v1).
24 *
25 * <p>
26 * The My Business Lodging API enables managing lodging business information on
27 * Google.</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 MyBusinessLodging extends \Google\Service
37{
38
39
40  public $locations;
41  public $locations_lodging;
42
43  /**
44   * Constructs the internal representation of the MyBusinessLodging service.
45   *
46   * @param Client|array $clientOrConfig The client used to deliver requests, or a
47   *                                     config array to pass to a new Client instance.
48   * @param string $rootUrl The root URL used for requests to the service.
49   */
50  public function __construct($clientOrConfig = [], $rootUrl = null)
51  {
52    parent::__construct($clientOrConfig);
53    $this->rootUrl = $rootUrl ?: 'https://mybusinesslodging.googleapis.com/';
54    $this->servicePath = '';
55    $this->batchPath = 'batch';
56    $this->version = 'v1';
57    $this->serviceName = 'mybusinesslodging';
58
59    $this->locations = new MyBusinessLodging\Resource\Locations(
60        $this,
61        $this->serviceName,
62        'locations',
63        [
64          'methods' => [
65            'getLodging' => [
66              'path' => 'v1/{+name}',
67              'httpMethod' => 'GET',
68              'parameters' => [
69                'name' => [
70                  'location' => 'path',
71                  'type' => 'string',
72                  'required' => true,
73                ],
74                'readMask' => [
75                  'location' => 'query',
76                  'type' => 'string',
77                ],
78              ],
79            ],'updateLodging' => [
80              'path' => 'v1/{+name}',
81              'httpMethod' => 'PATCH',
82              'parameters' => [
83                'name' => [
84                  'location' => 'path',
85                  'type' => 'string',
86                  'required' => true,
87                ],
88                'updateMask' => [
89                  'location' => 'query',
90                  'type' => 'string',
91                ],
92              ],
93            ],
94          ]
95        ]
96    );
97    $this->locations_lodging = new MyBusinessLodging\Resource\LocationsLodging(
98        $this,
99        $this->serviceName,
100        'lodging',
101        [
102          'methods' => [
103            'getGoogleUpdated' => [
104              'path' => 'v1/{+name}:getGoogleUpdated',
105              'httpMethod' => 'GET',
106              'parameters' => [
107                'name' => [
108                  'location' => 'path',
109                  'type' => 'string',
110                  'required' => true,
111                ],
112                'readMask' => [
113                  'location' => 'query',
114                  'type' => 'string',
115                ],
116              ],
117            ],
118          ]
119        ]
120    );
121  }
122}
123
124// Adding a class alias for backwards compatibility with the previous class name.
125class_alias(MyBusinessLodging::class, 'Google_Service_MyBusinessLodging');
126