source: vendor/google/apiclient-services/src/CloudCommercePartnerProcurementService.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.7 KB
RevLine 
[e3d4e0a]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 CloudCommercePartnerProcurementService (v1).
24 *
25 * <p>
26 * Partner API for the Cloud Commerce Procurement Service.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/marketplace/docs/partners/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudCommercePartnerProcurementService 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 $providers_accounts;
42 public $providers_entitlements;
43 public $rootUrlTemplate;
44
45 /**
46 * Constructs the internal representation of the
47 * CloudCommercePartnerProcurementService 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://cloudcommerceprocurement.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://cloudcommerceprocurement.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'cloudcommerceprocurement';
62
63 $this->providers_accounts = new CloudCommercePartnerProcurementService\Resource\ProvidersAccounts(
64 $this,
65 $this->serviceName,
66 'accounts',
67 [
68 'methods' => [
69 'approve' => [
70 'path' => 'v1/{+name}:approve',
71 'httpMethod' => 'POST',
72 'parameters' => [
73 'name' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 ],
79 ],'get' => [
80 'path' => 'v1/{+name}',
81 'httpMethod' => 'GET',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 ],
89 ],'list' => [
90 'path' => 'v1/{+parent}/accounts',
91 'httpMethod' => 'GET',
92 'parameters' => [
93 'parent' => [
94 'location' => 'path',
95 'type' => 'string',
96 'required' => true,
97 ],
98 'pageSize' => [
99 'location' => 'query',
100 'type' => 'integer',
101 ],
102 'pageToken' => [
103 'location' => 'query',
104 'type' => 'string',
105 ],
106 ],
107 ],'reject' => [
108 'path' => 'v1/{+name}:reject',
109 'httpMethod' => 'POST',
110 'parameters' => [
111 'name' => [
112 'location' => 'path',
113 'type' => 'string',
114 'required' => true,
115 ],
116 ],
117 ],'reset' => [
118 'path' => 'v1/{+name}:reset',
119 'httpMethod' => 'POST',
120 'parameters' => [
121 'name' => [
122 'location' => 'path',
123 'type' => 'string',
124 'required' => true,
125 ],
126 ],
127 ],
128 ]
129 ]
130 );
131 $this->providers_entitlements = new CloudCommercePartnerProcurementService\Resource\ProvidersEntitlements(
132 $this,
133 $this->serviceName,
134 'entitlements',
135 [
136 'methods' => [
137 'approve' => [
138 'path' => 'v1/{+name}:approve',
139 'httpMethod' => 'POST',
140 'parameters' => [
141 'name' => [
142 'location' => 'path',
143 'type' => 'string',
144 'required' => true,
145 ],
146 ],
147 ],'approvePlanChange' => [
148 'path' => 'v1/{+name}:approvePlanChange',
149 'httpMethod' => 'POST',
150 'parameters' => [
151 'name' => [
152 'location' => 'path',
153 'type' => 'string',
154 'required' => true,
155 ],
156 ],
157 ],'get' => [
158 'path' => 'v1/{+name}',
159 'httpMethod' => 'GET',
160 'parameters' => [
161 'name' => [
162 'location' => 'path',
163 'type' => 'string',
164 'required' => true,
165 ],
166 ],
167 ],'list' => [
168 'path' => 'v1/{+parent}/entitlements',
169 'httpMethod' => 'GET',
170 'parameters' => [
171 'parent' => [
172 'location' => 'path',
173 'type' => 'string',
174 'required' => true,
175 ],
176 'filter' => [
177 'location' => 'query',
178 'type' => 'string',
179 ],
180 'pageSize' => [
181 'location' => 'query',
182 'type' => 'integer',
183 ],
184 'pageToken' => [
185 'location' => 'query',
186 'type' => 'string',
187 ],
188 ],
189 ],'patch' => [
190 'path' => 'v1/{+name}',
191 'httpMethod' => 'PATCH',
192 'parameters' => [
193 'name' => [
194 'location' => 'path',
195 'type' => 'string',
196 'required' => true,
197 ],
198 'updateMask' => [
199 'location' => 'query',
200 'type' => 'string',
201 ],
202 ],
203 ],'reject' => [
204 'path' => 'v1/{+name}:reject',
205 'httpMethod' => 'POST',
206 'parameters' => [
207 'name' => [
208 'location' => 'path',
209 'type' => 'string',
210 'required' => true,
211 ],
212 ],
213 ],'rejectPlanChange' => [
214 'path' => 'v1/{+name}:rejectPlanChange',
215 'httpMethod' => 'POST',
216 'parameters' => [
217 'name' => [
218 'location' => 'path',
219 'type' => 'string',
220 'required' => true,
221 ],
222 ],
223 ],'suspend' => [
224 'path' => 'v1/{+name}:suspend',
225 'httpMethod' => 'POST',
226 'parameters' => [
227 'name' => [
228 'location' => 'path',
229 'type' => 'string',
230 'required' => true,
231 ],
232 ],
233 ],
234 ]
235 ]
236 );
237 }
238}
239
240// Adding a class alias for backwards compatibility with the previous class name.
241class_alias(CloudCommercePartnerProcurementService::class, 'Google_Service_CloudCommercePartnerProcurementService');
Note: See TracBrowser for help on using the repository browser.