source: vendor/google/apiclient-services/src/GameServices.php

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

Upload project files

  • Property mode set to 100644
File size: 6.8 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 GameServices (v1).
24 *
25 * <p>
26 * Deploy and manage infrastructure for global multiplayer gaming experiences.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/solutions/gaming/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class GameServices extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $projects_locations;
42 public $projects_locations_gameServerDeployments;
43 public $projects_locations_operations;
44
45 /**
46 * Constructs the internal representation of the GameServices 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://gameservices.googleapis.com/';
56 $this->servicePath = '';
57 $this->batchPath = 'batch';
58 $this->version = 'v1';
59 $this->serviceName = 'gameservices';
60
61 $this->projects_locations = new GameServices\Resource\ProjectsLocations(
62 $this,
63 $this->serviceName,
64 'locations',
65 [
66 'methods' => [
67 'get' => [
68 'path' => 'v1/{+name}',
69 'httpMethod' => 'GET',
70 'parameters' => [
71 'name' => [
72 'location' => 'path',
73 'type' => 'string',
74 'required' => true,
75 ],
76 ],
77 ],'list' => [
78 'path' => 'v1/{+name}/locations',
79 'httpMethod' => 'GET',
80 'parameters' => [
81 'name' => [
82 'location' => 'path',
83 'type' => 'string',
84 'required' => true,
85 ],
86 'filter' => [
87 'location' => 'query',
88 'type' => 'string',
89 ],
90 'includeUnrevealedLocations' => [
91 'location' => 'query',
92 'type' => 'boolean',
93 ],
94 'pageSize' => [
95 'location' => 'query',
96 'type' => 'integer',
97 ],
98 'pageToken' => [
99 'location' => 'query',
100 'type' => 'string',
101 ],
102 ],
103 ],
104 ]
105 ]
106 );
107 $this->projects_locations_gameServerDeployments = new GameServices\Resource\ProjectsLocationsGameServerDeployments(
108 $this,
109 $this->serviceName,
110 'gameServerDeployments',
111 [
112 'methods' => [
113 'getIamPolicy' => [
114 'path' => 'v1/{+resource}:getIamPolicy',
115 'httpMethod' => 'GET',
116 'parameters' => [
117 'resource' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 'options.requestedPolicyVersion' => [
123 'location' => 'query',
124 'type' => 'integer',
125 ],
126 ],
127 ],'setIamPolicy' => [
128 'path' => 'v1/{+resource}:setIamPolicy',
129 'httpMethod' => 'POST',
130 'parameters' => [
131 'resource' => [
132 'location' => 'path',
133 'type' => 'string',
134 'required' => true,
135 ],
136 ],
137 ],'testIamPermissions' => [
138 'path' => 'v1/{+resource}:testIamPermissions',
139 'httpMethod' => 'POST',
140 'parameters' => [
141 'resource' => [
142 'location' => 'path',
143 'type' => 'string',
144 'required' => true,
145 ],
146 ],
147 ],
148 ]
149 ]
150 );
151 $this->projects_locations_operations = new GameServices\Resource\ProjectsLocationsOperations(
152 $this,
153 $this->serviceName,
154 'operations',
155 [
156 'methods' => [
157 'cancel' => [
158 'path' => 'v1/{+name}:cancel',
159 'httpMethod' => 'POST',
160 'parameters' => [
161 'name' => [
162 'location' => 'path',
163 'type' => 'string',
164 'required' => true,
165 ],
166 ],
167 ],'delete' => [
168 'path' => 'v1/{+name}',
169 'httpMethod' => 'DELETE',
170 'parameters' => [
171 'name' => [
172 'location' => 'path',
173 'type' => 'string',
174 'required' => true,
175 ],
176 ],
177 ],'get' => [
178 'path' => 'v1/{+name}',
179 'httpMethod' => 'GET',
180 'parameters' => [
181 'name' => [
182 'location' => 'path',
183 'type' => 'string',
184 'required' => true,
185 ],
186 ],
187 ],'list' => [
188 'path' => 'v1/{+name}/operations',
189 'httpMethod' => 'GET',
190 'parameters' => [
191 'name' => [
192 'location' => 'path',
193 'type' => 'string',
194 'required' => true,
195 ],
196 'filter' => [
197 'location' => 'query',
198 'type' => 'string',
199 ],
200 'pageSize' => [
201 'location' => 'query',
202 'type' => 'integer',
203 ],
204 'pageToken' => [
205 'location' => 'query',
206 'type' => 'string',
207 ],
208 ],
209 ],
210 ]
211 ]
212 );
213 }
214}
215
216// Adding a class alias for backwards compatibility with the previous class name.
217class_alias(GameServices::class, 'Google_Service_GameServices');
Note: See TracBrowser for help on using the repository browser.