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 Ideahub (v1beta).
24 *
25 * <p>
26 * This is an invitation-only API.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://console.cloud.google.com/apis/library/ideahub.googleapis.com" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Ideahub extends \Google\Service
36{
37
38
39  public $platforms_properties_ideaActivities;
40  public $platforms_properties_ideaStates;
41  public $platforms_properties_ideas;
42  public $platforms_properties_locales;
43  public $platforms_properties_topicStates;
44
45  /**
46   * Constructs the internal representation of the Ideahub 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://ideahub.googleapis.com/';
56    $this->servicePath = '';
57    $this->batchPath = 'batch';
58    $this->version = 'v1beta';
59    $this->serviceName = 'ideahub';
60
61    $this->platforms_properties_ideaActivities = new Ideahub\Resource\PlatformsPropertiesIdeaActivities(
62        $this,
63        $this->serviceName,
64        'ideaActivities',
65        [
66          'methods' => [
67            'create' => [
68              'path' => 'v1beta/{+parent}/ideaActivities',
69              'httpMethod' => 'POST',
70              'parameters' => [
71                'parent' => [
72                  'location' => 'path',
73                  'type' => 'string',
74                  'required' => true,
75                ],
76              ],
77            ],
78          ]
79        ]
80    );
81    $this->platforms_properties_ideaStates = new Ideahub\Resource\PlatformsPropertiesIdeaStates(
82        $this,
83        $this->serviceName,
84        'ideaStates',
85        [
86          'methods' => [
87            'patch' => [
88              'path' => 'v1beta/{+name}',
89              'httpMethod' => 'PATCH',
90              'parameters' => [
91                'name' => [
92                  'location' => 'path',
93                  'type' => 'string',
94                  'required' => true,
95                ],
96                'updateMask' => [
97                  'location' => 'query',
98                  'type' => 'string',
99                ],
100              ],
101            ],
102          ]
103        ]
104    );
105    $this->platforms_properties_ideas = new Ideahub\Resource\PlatformsPropertiesIdeas(
106        $this,
107        $this->serviceName,
108        'ideas',
109        [
110          'methods' => [
111            'list' => [
112              'path' => 'v1beta/{+parent}/ideas',
113              'httpMethod' => 'GET',
114              'parameters' => [
115                'parent' => [
116                  'location' => 'path',
117                  'type' => 'string',
118                  'required' => true,
119                ],
120                'filter' => [
121                  'location' => 'query',
122                  'type' => 'string',
123                ],
124                'orderBy' => [
125                  'location' => 'query',
126                  'type' => 'string',
127                ],
128                'pageSize' => [
129                  'location' => 'query',
130                  'type' => 'integer',
131                ],
132                'pageToken' => [
133                  'location' => 'query',
134                  'type' => 'string',
135                ],
136              ],
137            ],
138          ]
139        ]
140    );
141    $this->platforms_properties_locales = new Ideahub\Resource\PlatformsPropertiesLocales(
142        $this,
143        $this->serviceName,
144        'locales',
145        [
146          'methods' => [
147            'list' => [
148              'path' => 'v1beta/{+parent}/locales',
149              'httpMethod' => 'GET',
150              'parameters' => [
151                'parent' => [
152                  'location' => 'path',
153                  'type' => 'string',
154                  'required' => true,
155                ],
156                'pageSize' => [
157                  'location' => 'query',
158                  'type' => 'integer',
159                ],
160                'pageToken' => [
161                  'location' => 'query',
162                  'type' => 'string',
163                ],
164              ],
165            ],
166          ]
167        ]
168    );
169    $this->platforms_properties_topicStates = new Ideahub\Resource\PlatformsPropertiesTopicStates(
170        $this,
171        $this->serviceName,
172        'topicStates',
173        [
174          'methods' => [
175            'patch' => [
176              'path' => 'v1beta/{+name}',
177              'httpMethod' => 'PATCH',
178              'parameters' => [
179                'name' => [
180                  'location' => 'path',
181                  'type' => 'string',
182                  'required' => true,
183                ],
184                'updateMask' => [
185                  'location' => 'query',
186                  'type' => 'string',
187                ],
188              ],
189            ],
190          ]
191        ]
192    );
193  }
194}
195
196// Adding a class alias for backwards compatibility with the previous class name.
197class_alias(Ideahub::class, 'Google_Service_Ideahub');
198