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 NetworkManagement (v1). 24 * 25 * <p> 26 * The Network Management API provides a collection of network performance 27 * monitoring and diagnostic capabilities.</p> 28 * 29 * <p> 30 * For more information about this service, see the API 31 * <a href="https://cloud.google.com/" target="_blank">Documentation</a> 32 * </p> 33 * 34 * @author Google, Inc. 35 */ 36class NetworkManagement extends \Google\Service 37{ 38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ 39 const CLOUD_PLATFORM = 40 "https://www.googleapis.com/auth/cloud-platform"; 41 42 public $projects_locations; 43 public $projects_locations_global_connectivityTests; 44 public $projects_locations_global_operations; 45 46 /** 47 * Constructs the internal representation of the NetworkManagement 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://networkmanagement.googleapis.com/'; 57 $this->servicePath = ''; 58 $this->batchPath = 'batch'; 59 $this->version = 'v1'; 60 $this->serviceName = 'networkmanagement'; 61 62 $this->projects_locations = new NetworkManagement\Resource\ProjectsLocations( 63 $this, 64 $this->serviceName, 65 'locations', 66 [ 67 'methods' => [ 68 'get' => [ 69 'path' => 'v1/{+name}', 70 'httpMethod' => 'GET', 71 'parameters' => [ 72 'name' => [ 73 'location' => 'path', 74 'type' => 'string', 75 'required' => true, 76 ], 77 ], 78 ],'list' => [ 79 'path' => 'v1/{+name}/locations', 80 'httpMethod' => 'GET', 81 'parameters' => [ 82 'name' => [ 83 'location' => 'path', 84 'type' => 'string', 85 'required' => true, 86 ], 87 'filter' => [ 88 'location' => 'query', 89 'type' => 'string', 90 ], 91 'pageSize' => [ 92 'location' => 'query', 93 'type' => 'integer', 94 ], 95 'pageToken' => [ 96 'location' => 'query', 97 'type' => 'string', 98 ], 99 ], 100 ], 101 ] 102 ] 103 ); 104 $this->projects_locations_global_connectivityTests = new NetworkManagement\Resource\ProjectsLocationsNetworkmanagementGlobalConnectivityTests( 105 $this, 106 $this->serviceName, 107 'connectivityTests', 108 [ 109 'methods' => [ 110 'create' => [ 111 'path' => 'v1/{+parent}/connectivityTests', 112 'httpMethod' => 'POST', 113 'parameters' => [ 114 'parent' => [ 115 'location' => 'path', 116 'type' => 'string', 117 'required' => true, 118 ], 119 'testId' => [ 120 'location' => 'query', 121 'type' => 'string', 122 ], 123 ], 124 ],'delete' => [ 125 'path' => 'v1/{+name}', 126 'httpMethod' => 'DELETE', 127 'parameters' => [ 128 'name' => [ 129 'location' => 'path', 130 'type' => 'string', 131 'required' => true, 132 ], 133 ], 134 ],'get' => [ 135 'path' => 'v1/{+name}', 136 'httpMethod' => 'GET', 137 'parameters' => [ 138 'name' => [ 139 'location' => 'path', 140 'type' => 'string', 141 'required' => true, 142 ], 143 ], 144 ],'getIamPolicy' => [ 145 'path' => 'v1/{+resource}:getIamPolicy', 146 'httpMethod' => 'GET', 147 'parameters' => [ 148 'resource' => [ 149 'location' => 'path', 150 'type' => 'string', 151 'required' => true, 152 ], 153 'options.requestedPolicyVersion' => [ 154 'location' => 'query', 155 'type' => 'integer', 156 ], 157 ], 158 ],'list' => [ 159 'path' => 'v1/{+parent}/connectivityTests', 160 'httpMethod' => 'GET', 161 'parameters' => [ 162 'parent' => [ 163 'location' => 'path', 164 'type' => 'string', 165 'required' => true, 166 ], 167 'filter' => [ 168 'location' => 'query', 169 'type' => 'string', 170 ], 171 'orderBy' => [ 172 'location' => 'query', 173 'type' => 'string', 174 ], 175 'pageSize' => [ 176 'location' => 'query', 177 'type' => 'integer', 178 ], 179 'pageToken' => [ 180 'location' => 'query', 181 'type' => 'string', 182 ], 183 ], 184 ],'patch' => [ 185 'path' => 'v1/{+name}', 186 'httpMethod' => 'PATCH', 187 'parameters' => [ 188 'name' => [ 189 'location' => 'path', 190 'type' => 'string', 191 'required' => true, 192 ], 193 'updateMask' => [ 194 'location' => 'query', 195 'type' => 'string', 196 ], 197 ], 198 ],'rerun' => [ 199 'path' => 'v1/{+name}:rerun', 200 'httpMethod' => 'POST', 201 'parameters' => [ 202 'name' => [ 203 'location' => 'path', 204 'type' => 'string', 205 'required' => true, 206 ], 207 ], 208 ],'setIamPolicy' => [ 209 'path' => 'v1/{+resource}:setIamPolicy', 210 'httpMethod' => 'POST', 211 'parameters' => [ 212 'resource' => [ 213 'location' => 'path', 214 'type' => 'string', 215 'required' => true, 216 ], 217 ], 218 ],'testIamPermissions' => [ 219 'path' => 'v1/{+resource}:testIamPermissions', 220 'httpMethod' => 'POST', 221 'parameters' => [ 222 'resource' => [ 223 'location' => 'path', 224 'type' => 'string', 225 'required' => true, 226 ], 227 ], 228 ], 229 ] 230 ] 231 ); 232 $this->projects_locations_global_operations = new NetworkManagement\Resource\ProjectsLocationsNetworkmanagementGlobalOperations( 233 $this, 234 $this->serviceName, 235 'operations', 236 [ 237 'methods' => [ 238 'cancel' => [ 239 'path' => 'v1/{+name}:cancel', 240 'httpMethod' => 'POST', 241 'parameters' => [ 242 'name' => [ 243 'location' => 'path', 244 'type' => 'string', 245 'required' => true, 246 ], 247 ], 248 ],'delete' => [ 249 'path' => 'v1/{+name}', 250 'httpMethod' => 'DELETE', 251 'parameters' => [ 252 'name' => [ 253 'location' => 'path', 254 'type' => 'string', 255 'required' => true, 256 ], 257 ], 258 ],'get' => [ 259 'path' => 'v1/{+name}', 260 'httpMethod' => 'GET', 261 'parameters' => [ 262 'name' => [ 263 'location' => 'path', 264 'type' => 'string', 265 'required' => true, 266 ], 267 ], 268 ],'list' => [ 269 'path' => 'v1/{+name}/operations', 270 'httpMethod' => 'GET', 271 'parameters' => [ 272 'name' => [ 273 'location' => 'path', 274 'type' => 'string', 275 'required' => true, 276 ], 277 'filter' => [ 278 'location' => 'query', 279 'type' => 'string', 280 ], 281 'pageSize' => [ 282 'location' => 'query', 283 'type' => 'integer', 284 ], 285 'pageToken' => [ 286 'location' => 'query', 287 'type' => 'string', 288 ], 289 ], 290 ], 291 ] 292 ] 293 ); 294 } 295} 296 297// Adding a class alias for backwards compatibility with the previous class name. 298class_alias(NetworkManagement::class, 'Google_Service_NetworkManagement'); 299