source: vendor/google/apiclient-services/src/ResourceSettings.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: 7.3 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 ResourceSettings (v1).
24 *
25 * <p>
26 * The Resource Settings API allows users to control and modify the behavior of
27 * their GCP resources (e.g., VM, firewall, Project, etc.) across the Cloud
28 * Resource Hierarchy.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://cloud.google.com/resource-manager/docs/resource-settings/overview" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class ResourceSettings extends \Google\Service
38{
39 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
40 const CLOUD_PLATFORM =
41 "https://www.googleapis.com/auth/cloud-platform";
42
43 public $folders_settings;
44 public $organizations_settings;
45 public $projects_settings;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the ResourceSettings service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://resourcesettings.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://resourcesettings.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'resourcesettings';
64
65 $this->folders_settings = new ResourceSettings\Resource\FoldersSettings(
66 $this,
67 $this->serviceName,
68 'settings',
69 [
70 'methods' => [
71 'get' => [
72 'path' => 'v1/{+name}',
73 'httpMethod' => 'GET',
74 'parameters' => [
75 'name' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 'view' => [
81 'location' => 'query',
82 'type' => 'string',
83 ],
84 ],
85 ],'list' => [
86 'path' => 'v1/{+parent}/settings',
87 'httpMethod' => 'GET',
88 'parameters' => [
89 'parent' => [
90 'location' => 'path',
91 'type' => 'string',
92 'required' => true,
93 ],
94 'pageSize' => [
95 'location' => 'query',
96 'type' => 'integer',
97 ],
98 'pageToken' => [
99 'location' => 'query',
100 'type' => 'string',
101 ],
102 'view' => [
103 'location' => 'query',
104 'type' => 'string',
105 ],
106 ],
107 ],'patch' => [
108 'path' => 'v1/{+name}',
109 'httpMethod' => 'PATCH',
110 'parameters' => [
111 'name' => [
112 'location' => 'path',
113 'type' => 'string',
114 'required' => true,
115 ],
116 ],
117 ],
118 ]
119 ]
120 );
121 $this->organizations_settings = new ResourceSettings\Resource\OrganizationsSettings(
122 $this,
123 $this->serviceName,
124 'settings',
125 [
126 'methods' => [
127 'get' => [
128 'path' => 'v1/{+name}',
129 'httpMethod' => 'GET',
130 'parameters' => [
131 'name' => [
132 'location' => 'path',
133 'type' => 'string',
134 'required' => true,
135 ],
136 'view' => [
137 'location' => 'query',
138 'type' => 'string',
139 ],
140 ],
141 ],'list' => [
142 'path' => 'v1/{+parent}/settings',
143 'httpMethod' => 'GET',
144 'parameters' => [
145 'parent' => [
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ],
150 'pageSize' => [
151 'location' => 'query',
152 'type' => 'integer',
153 ],
154 'pageToken' => [
155 'location' => 'query',
156 'type' => 'string',
157 ],
158 'view' => [
159 'location' => 'query',
160 'type' => 'string',
161 ],
162 ],
163 ],'patch' => [
164 'path' => 'v1/{+name}',
165 'httpMethod' => 'PATCH',
166 'parameters' => [
167 'name' => [
168 'location' => 'path',
169 'type' => 'string',
170 'required' => true,
171 ],
172 ],
173 ],
174 ]
175 ]
176 );
177 $this->projects_settings = new ResourceSettings\Resource\ProjectsSettings(
178 $this,
179 $this->serviceName,
180 'settings',
181 [
182 'methods' => [
183 'get' => [
184 'path' => 'v1/{+name}',
185 'httpMethod' => 'GET',
186 'parameters' => [
187 'name' => [
188 'location' => 'path',
189 'type' => 'string',
190 'required' => true,
191 ],
192 'view' => [
193 'location' => 'query',
194 'type' => 'string',
195 ],
196 ],
197 ],'list' => [
198 'path' => 'v1/{+parent}/settings',
199 'httpMethod' => 'GET',
200 'parameters' => [
201 'parent' => [
202 'location' => 'path',
203 'type' => 'string',
204 'required' => true,
205 ],
206 'pageSize' => [
207 'location' => 'query',
208 'type' => 'integer',
209 ],
210 'pageToken' => [
211 'location' => 'query',
212 'type' => 'string',
213 ],
214 'view' => [
215 'location' => 'query',
216 'type' => 'string',
217 ],
218 ],
219 ],'patch' => [
220 'path' => 'v1/{+name}',
221 'httpMethod' => 'PATCH',
222 'parameters' => [
223 'name' => [
224 'location' => 'path',
225 'type' => 'string',
226 'required' => true,
227 ],
228 ],
229 ],
230 ]
231 ]
232 );
233 }
234}
235
236// Adding a class alias for backwards compatibility with the previous class name.
237class_alias(ResourceSettings::class, 'Google_Service_ResourceSettings');
Note: See TracBrowser for help on using the repository browser.