| 1 |
<?php |
| 2 |
/* |
| 3 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 |
* use this file except in compliance with the License. You may obtain a copy of |
| 5 |
* the License at |
| 6 |
* |
| 7 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
* |
| 9 |
* Unless required by applicable law or agreed to in writing, software |
| 10 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
* License for the specific language governing permissions and limitations under |
| 13 |
* the License. |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* Service definition for Iam (v1). |
| 18 |
* |
| 19 |
* <p> |
| 20 |
* Manages identity and access control for Google Cloud Platform resources, |
| 21 |
* including the creation of service accounts, which you can use to authenticate |
| 22 |
* to Google and make API calls.</p> |
| 23 |
* |
| 24 |
* <p> |
| 25 |
* For more information about this service, see the API |
| 26 |
* <a href="https://cloud.google.com/iam/" target="_blank">Documentation</a> |
| 27 |
* </p> |
| 28 |
* |
| 29 |
* @author Google, Inc. |
| 30 |
*/ |
| 31 |
class Google_Service_Iam extends Google_Service |
| 32 |
{ |
| 33 |
/** View and manage your data across Google Cloud Platform services. */ |
| 34 |
const CLOUD_PLATFORM = |
| 35 |
"https://www.googleapis.com/auth/cloud-platform"; |
| 36 |
|
| 37 |
public $projects_serviceAccounts; |
| 38 |
public $projects_serviceAccounts_keys; |
| 39 |
|
| 40 |
|
| 41 |
/** |
| 42 |
* Constructs the internal representation of the Iam service. |
| 43 |
* |
| 44 |
* @param Google_Client $client |
| 45 |
*/ |
| 46 |
public function __construct(Google_Client $client) |
| 47 |
{ |
| 48 |
parent::__construct($client); |
| 49 |
$this->rootUrl = 'https://iam.googleapis.com/'; |
| 50 |
$this->servicePath = ''; |
| 51 |
$this->version = 'v1'; |
| 52 |
$this->serviceName = 'iam'; |
| 53 |
|
| 54 |
$this->projects_serviceAccounts = new Google_Service_Iam_ProjectsServiceAccounts_Resource( |
| 55 |
$this, |
| 56 |
$this->serviceName, |
| 57 |
'serviceAccounts', |
| 58 |
array( |
| 59 |
'methods' => array( |
| 60 |
'create' => array( |
| 61 |
'path' => 'v1/{+name}/serviceAccounts', |
| 62 |
'httpMethod' => 'POST', |
| 63 |
'parameters' => array( |
| 64 |
'name' => array( |
| 65 |
'location' => 'path', |
| 66 |
'type' => 'string', |
| 67 |
'required' => true, |
| 68 |
), |
| 69 |
), |
| 70 |
),'delete' => array( |
| 71 |
'path' => 'v1/{+name}', |
| 72 |
'httpMethod' => 'DELETE', |
| 73 |
'parameters' => array( |
| 74 |
'name' => array( |
| 75 |
'location' => 'path', |
| 76 |
'type' => 'string', |
| 77 |
'required' => true, |
| 78 |
), |
| 79 |
), |
| 80 |
),'get' => array( |
| 81 |
'path' => 'v1/{+name}', |
| 82 |
'httpMethod' => 'GET', |
| 83 |
'parameters' => array( |
| 84 |
'name' => array( |
| 85 |
'location' => 'path', |
| 86 |
'type' => 'string', |
| 87 |
'required' => true, |
| 88 |
), |
| 89 |
), |
| 90 |
),'getIamPolicy' => array( |
| 91 |
'path' => 'v1/{+resource}:getIamPolicy', |
| 92 |
'httpMethod' => 'POST', |
| 93 |
'parameters' => array( |
| 94 |
'resource' => array( |
| 95 |
'location' => 'path', |
| 96 |
'type' => 'string', |
| 97 |
'required' => true, |
| 98 |
), |
| 99 |
), |
| 100 |
),'list' => array( |
| 101 |
'path' => 'v1/{+name}/serviceAccounts', |
| 102 |
'httpMethod' => 'GET', |
| 103 |
'parameters' => array( |
| 104 |
'name' => array( |
| 105 |
'location' => 'path', |
| 106 |
'type' => 'string', |
| 107 |
'required' => true, |
| 108 |
), |
| 109 |
'pageSize' => array( |
| 110 |
'location' => 'query', |
| 111 |
'type' => 'integer', |
| 112 |
), |
| 113 |
'pageToken' => array( |
| 114 |
'location' => 'query', |
| 115 |
'type' => 'string', |
| 116 |
), |
| 117 |
), |
| 118 |
),'setIamPolicy' => array( |
| 119 |
'path' => 'v1/{+resource}:setIamPolicy', |
| 120 |
'httpMethod' => 'POST', |
| 121 |
'parameters' => array( |
| 122 |
'resource' => array( |
| 123 |
'location' => 'path', |
| 124 |
'type' => 'string', |
| 125 |
'required' => true, |
| 126 |
), |
| 127 |
), |
| 128 |
),'signBlob' => array( |
| 129 |
'path' => 'v1/{+name}:signBlob', |
| 130 |
'httpMethod' => 'POST', |
| 131 |
'parameters' => array( |
| 132 |
'name' => array( |
| 133 |
'location' => 'path', |
| 134 |
'type' => 'string', |
| 135 |
'required' => true, |
| 136 |
), |
| 137 |
), |
| 138 |
),'testIamPermissions' => array( |
| 139 |
'path' => 'v1/{+resource}:testIamPermissions', |
| 140 |
'httpMethod' => 'POST', |
| 141 |
'parameters' => array( |
| 142 |
'resource' => array( |
| 143 |
'location' => 'path', |
| 144 |
'type' => 'string', |
| 145 |
'required' => true, |
| 146 |
), |
| 147 |
), |
| 148 |
),'update' => array( |
| 149 |
'path' => 'v1/{+name}', |
| 150 |
'httpMethod' => 'PUT', |
| 151 |
'parameters' => array( |
| 152 |
'name' => array( |
| 153 |
'location' => 'path', |
| 154 |
'type' => 'string', |
| 155 |
'required' => true, |
| 156 |
), |
| 157 |
), |
| 158 |
), |
| 159 |
) |
| 160 |
) |
| 161 |
); |
| 162 |
$this->projects_serviceAccounts_keys = new Google_Service_Iam_ProjectsServiceAccountsKeys_Resource( |
| 163 |
$this, |
| 164 |
$this->serviceName, |
| 165 |
'keys', |
| 166 |
array( |
| 167 |
'methods' => array( |
| 168 |
'create' => array( |
| 169 |
'path' => 'v1/{+name}/keys', |
| 170 |
'httpMethod' => 'POST', |
| 171 |
'parameters' => array( |
| 172 |
'name' => array( |
| 173 |
'location' => 'path', |
| 174 |
'type' => 'string', |
| 175 |
'required' => true, |
| 176 |
), |
| 177 |
), |
| 178 |
),'delete' => array( |
| 179 |
'path' => 'v1/{+name}', |
| 180 |
'httpMethod' => 'DELETE', |
| 181 |
'parameters' => array( |
| 182 |
'name' => array( |
| 183 |
'location' => 'path', |
| 184 |
'type' => 'string', |
| 185 |
'required' => true, |
| 186 |
), |
| 187 |
), |
| 188 |
),'get' => array( |
| 189 |
'path' => 'v1/{+name}', |
| 190 |
'httpMethod' => 'GET', |
| 191 |
'parameters' => array( |
| 192 |
'name' => array( |
| 193 |
'location' => 'path', |
| 194 |
'type' => 'string', |
| 195 |
'required' => true, |
| 196 |
), |
| 197 |
), |
| 198 |
),'list' => array( |
| 199 |
'path' => 'v1/{+name}/keys', |
| 200 |
'httpMethod' => 'GET', |
| 201 |
'parameters' => array( |
| 202 |
'name' => array( |
| 203 |
'location' => 'path', |
| 204 |
'type' => 'string', |
| 205 |
'required' => true, |
| 206 |
), |
| 207 |
'keyTypes' => array( |
| 208 |
'location' => 'query', |
| 209 |
'type' => 'string', |
| 210 |
'repeated' => true, |
| 211 |
), |
| 212 |
), |
| 213 |
), |
| 214 |
) |
| 215 |
) |
| 216 |
); |
| 217 |
} |
| 218 |
} |
| 219 |
|
| 220 |
|
| 221 |
/** |
| 222 |
* The "projects" collection of methods. |
| 223 |
* Typical usage is: |
| 224 |
* <code> |
| 225 |
* $iamService = new Google_Service_Iam(...); |
| 226 |
* $projects = $iamService->projects; |
| 227 |
* </code> |
| 228 |
*/ |
| 229 |
class Google_Service_Iam_Projects_Resource extends Google_Service_Resource |
| 230 |
{ |
| 231 |
} |
| 232 |
|
| 233 |
/** |
| 234 |
* The "serviceAccounts" collection of methods. |
| 235 |
* Typical usage is: |
| 236 |
* <code> |
| 237 |
* $iamService = new Google_Service_Iam(...); |
| 238 |
* $serviceAccounts = $iamService->serviceAccounts; |
| 239 |
* </code> |
| 240 |
*/ |
| 241 |
class Google_Service_Iam_ProjectsServiceAccounts_Resource extends Google_Service_Resource |
| 242 |
{ |
| 243 |
|
| 244 |
/** |
| 245 |
* Creates a service account and returns it. (serviceAccounts.create) |
| 246 |
* |
| 247 |
* @param string $name Required. The resource name of the project associated |
| 248 |
* with the service accounts, such as "projects/123" |
| 249 |
* @param Google_CreateServiceAccountRequest $postBody |
| 250 |
* @param array $optParams Optional parameters. |
| 251 |
* @return Google_Service_Iam_ServiceAccount |
| 252 |
*/ |
| 253 |
public function create($name, Google_Service_Iam_CreateServiceAccountRequest $postBody, $optParams = array()) |
| 254 |
{ |
| 255 |
$params = array('name' => $name, 'postBody' => $postBody); |
| 256 |
$params = array_merge($params, $optParams); |
| 257 |
return $this->call('create', array($params), "Google_Service_Iam_ServiceAccount"); |
| 258 |
} |
| 259 |
|
| 260 |
/** |
| 261 |
* Deletes a service acount. (serviceAccounts.delete) |
| 262 |
* |
| 263 |
* @param string $name The resource name of the service account in the format |
| 264 |
* "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for |
| 265 |
* the project, will infer the project from the account. The account value can |
| 266 |
* be the email address or the unique_id of the service account. |
| 267 |
* @param array $optParams Optional parameters. |
| 268 |
* @return Google_Service_Iam_Empty |
| 269 |
*/ |
| 270 |
public function delete($name, $optParams = array()) |
| 271 |
{ |
| 272 |
$params = array('name' => $name); |
| 273 |
$params = array_merge($params, $optParams); |
| 274 |
return $this->call('delete', array($params), "Google_Service_Iam_Empty"); |
| 275 |
} |
| 276 |
|
| 277 |
/** |
| 278 |
* Gets a ServiceAccount (serviceAccounts.get) |
| 279 |
* |
| 280 |
* @param string $name The resource name of the service account in the format |
| 281 |
* "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for |
| 282 |
* the project, will infer the project from the account. The account value can |
| 283 |
* be the email address or the unique_id of the service account. |
| 284 |
* @param array $optParams Optional parameters. |
| 285 |
* @return Google_Service_Iam_ServiceAccount |
| 286 |
*/ |
| 287 |
public function get($name, $optParams = array()) |
| 288 |
{ |
| 289 |
$params = array('name' => $name); |
| 290 |
$params = array_merge($params, $optParams); |
| 291 |
return $this->call('get', array($params), "Google_Service_Iam_ServiceAccount"); |
| 292 |
} |
| 293 |
|
| 294 |
/** |
| 295 |
* Returns the IAM access control policy for specified IAM resource. |
| 296 |
* (serviceAccounts.getIamPolicy) |
| 297 |
* |
| 298 |
* @param string $resource REQUIRED: The resource for which the policy is being |
| 299 |
* requested. `resource` is usually specified as a path, such as |
| 300 |
* `projectsprojectzoneszonedisksdisk*`. The format for the path specified in |
| 301 |
* this value is resource specific and is specified in the `getIamPolicy` |
| 302 |
* documentation. |
| 303 |
* @param array $optParams Optional parameters. |
| 304 |
* @return Google_Service_Iam_Policy |
| 305 |
*/ |
| 306 |
public function getIamPolicy($resource, $optParams = array()) |
| 307 |
{ |
| 308 |
$params = array('resource' => $resource); |
| 309 |
$params = array_merge($params, $optParams); |
| 310 |
return $this->call('getIamPolicy', array($params), "Google_Service_Iam_Policy"); |
| 311 |
} |
| 312 |
|
| 313 |
/** |
| 314 |
* Lists service accounts for a project. |
| 315 |
* (serviceAccounts.listProjectsServiceAccounts) |
| 316 |
* |
| 317 |
* @param string $name Required. The resource name of the project associated |
| 318 |
* with the service accounts, such as "projects/123" |
| 319 |
* @param array $optParams Optional parameters. |
| 320 |
* |
| 321 |
* @opt_param int pageSize Optional limit on the number of service accounts to |
| 322 |
* include in the response. Further accounts can subsequently be obtained by |
| 323 |
* including the [ListServiceAccountsResponse.next_page_token] in a subsequent |
| 324 |
* request. |
| 325 |
* @opt_param string pageToken Optional pagination token returned in an earlier |
| 326 |
* [ListServiceAccountsResponse.next_page_token]. |
| 327 |
* @return Google_Service_Iam_ListServiceAccountsResponse |
| 328 |
*/ |
| 329 |
public function listProjectsServiceAccounts($name, $optParams = array()) |
| 330 |
{ |
| 331 |
$params = array('name' => $name); |
| 332 |
$params = array_merge($params, $optParams); |
| 333 |
return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountsResponse"); |
| 334 |
} |
| 335 |
|
| 336 |
/** |
| 337 |
* Sets the IAM access control policy for the specified IAM resource. |
| 338 |
* (serviceAccounts.setIamPolicy) |
| 339 |
* |
| 340 |
* @param string $resource REQUIRED: The resource for which the policy is being |
| 341 |
* specified. `resource` is usually specified as a path, such as |
| 342 |
* `projectsprojectzoneszonedisksdisk*`. The format for the path specified in |
| 343 |
* this value is resource specific and is specified in the `setIamPolicy` |
| 344 |
* documentation. |
| 345 |
* @param Google_SetIamPolicyRequest $postBody |
| 346 |
* @param array $optParams Optional parameters. |
| 347 |
* @return Google_Service_Iam_Policy |
| 348 |
*/ |
| 349 |
public function setIamPolicy($resource, Google_Service_Iam_SetIamPolicyRequest $postBody, $optParams = array()) |
| 350 |
{ |
| 351 |
$params = array('resource' => $resource, 'postBody' => $postBody); |
| 352 |
$params = array_merge($params, $optParams); |
| 353 |
return $this->call('setIamPolicy', array($params), "Google_Service_Iam_Policy"); |
| 354 |
} |
| 355 |
|
| 356 |
/** |
| 357 |
* Signs a blob using a service account. (serviceAccounts.signBlob) |
| 358 |
* |
| 359 |
* @param string $name The resource name of the service account in the format |
| 360 |
* "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for |
| 361 |
* the project, will infer the project from the account. The account value can |
| 362 |
* be the email address or the unique_id of the service account. |
| 363 |
* @param Google_SignBlobRequest $postBody |
| 364 |
* @param array $optParams Optional parameters. |
| 365 |
* @return Google_Service_Iam_SignBlobResponse |
| 366 |
*/ |
| 367 |
public function signBlob($name, Google_Service_Iam_SignBlobRequest $postBody, $optParams = array()) |
| 368 |
{ |
| 369 |
$params = array('name' => $name, 'postBody' => $postBody); |
| 370 |
$params = array_merge($params, $optParams); |
| 371 |
return $this->call('signBlob', array($params), "Google_Service_Iam_SignBlobResponse"); |
| 372 |
} |
| 373 |
|
| 374 |
/** |
| 375 |
* Tests the specified permissions against the IAM access control policy for the |
| 376 |
* specified IAM resource. (serviceAccounts.testIamPermissions) |
| 377 |
* |
| 378 |
* @param string $resource REQUIRED: The resource for which the policy detail is |
| 379 |
* being requested. `resource` is usually specified as a path, such as |
| 380 |
* `projectsprojectzoneszonedisksdisk*`. The format for the path specified in |
| 381 |
* this value is resource specific and is specified in the `testIamPermissions` |
| 382 |
* documentation. |
| 383 |
* @param Google_TestIamPermissionsRequest $postBody |
| 384 |
* @param array $optParams Optional parameters. |
| 385 |
* @return Google_Service_Iam_TestIamPermissionsResponse |
| 386 |
*/ |
| 387 |
public function testIamPermissions($resource, Google_Service_Iam_TestIamPermissionsRequest $postBody, $optParams = array()) |
| 388 |
{ |
| 389 |
$params = array('resource' => $resource, 'postBody' => $postBody); |
| 390 |
$params = array_merge($params, $optParams); |
| 391 |
return $this->call('testIamPermissions', array($params), "Google_Service_Iam_TestIamPermissionsResponse"); |
| 392 |
} |
| 393 |
|
| 394 |
/** |
| 395 |
* Updates a service account. Currently, only the following fields are |
| 396 |
* updatable: 'display_name' . The 'etag' is mandatory. (serviceAccounts.update) |
| 397 |
* |
| 398 |
* @param string $name The resource name of the service account in the format |
| 399 |
* "projects/{project}/serviceAccounts/{account}". In requests using '-' as a |
| 400 |
* wildcard for the project, will infer the project from the account and the |
| 401 |
* account value can be the email address or the unique_id of the service |
| 402 |
* account. In responses the resource name will always be in the format |
| 403 |
* "projects/{project}/serviceAccounts/{email}". |
| 404 |
* @param Google_ServiceAccount $postBody |
| 405 |
* @param array $optParams Optional parameters. |
| 406 |
* @return Google_Service_Iam_ServiceAccount |
| 407 |
*/ |
| 408 |
public function update($name, Google_Service_Iam_ServiceAccount $postBody, $optParams = array()) |
| 409 |
{ |
| 410 |
$params = array('name' => $name, 'postBody' => $postBody); |
| 411 |
$params = array_merge($params, $optParams); |
| 412 |
return $this->call('update', array($params), "Google_Service_Iam_ServiceAccount"); |
| 413 |
} |
| 414 |
} |
| 415 |
|
| 416 |
/** |
| 417 |
* The "keys" collection of methods. |
| 418 |
* Typical usage is: |
| 419 |
* <code> |
| 420 |
* $iamService = new Google_Service_Iam(...); |
| 421 |
* $keys = $iamService->keys; |
| 422 |
* </code> |
| 423 |
*/ |
| 424 |
class Google_Service_Iam_ProjectsServiceAccountsKeys_Resource extends Google_Service_Resource |
| 425 |
{ |
| 426 |
|
| 427 |
/** |
| 428 |
* Creates a service account key and returns it. (keys.create) |
| 429 |
* |
| 430 |
* @param string $name The resource name of the service account in the format |
| 431 |
* "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for |
| 432 |
* the project, will infer the project from the account. The account value can |
| 433 |
* be the email address or the unique_id of the service account. |
| 434 |
* @param Google_CreateServiceAccountKeyRequest $postBody |
| 435 |
* @param array $optParams Optional parameters. |
| 436 |
* @return Google_Service_Iam_ServiceAccountKey |
| 437 |
*/ |
| 438 |
public function create($name, Google_Service_Iam_CreateServiceAccountKeyRequest $postBody, $optParams = array()) |
| 439 |
{ |
| 440 |
$params = array('name' => $name, 'postBody' => $postBody); |
| 441 |
$params = array_merge($params, $optParams); |
| 442 |
return $this->call('create', array($params), "Google_Service_Iam_ServiceAccountKey"); |
| 443 |
} |
| 444 |
|
| 445 |
/** |
| 446 |
* Deletes a service account key. (keys.delete) |
| 447 |
* |
| 448 |
* @param string $name The resource name of the service account key in the |
| 449 |
* format "projects/{project}/serviceAccounts/{account}/keys/{key}". Using '-' |
| 450 |
* as a wildcard for the project will infer the project from the account. The |
| 451 |
* account value can be the email address or the unique_id of the service |
| 452 |
* account. |
| 453 |
* @param array $optParams Optional parameters. |
| 454 |
* @return Google_Service_Iam_Empty |
| 455 |
*/ |
| 456 |
public function delete($name, $optParams = array()) |
| 457 |
{ |
| 458 |
$params = array('name' => $name); |
| 459 |
$params = array_merge($params, $optParams); |
| 460 |
return $this->call('delete', array($params), "Google_Service_Iam_Empty"); |
| 461 |
} |
| 462 |
|
| 463 |
/** |
| 464 |
* Gets the ServiceAccountKey by key id. (keys.get) |
| 465 |
* |
| 466 |
* @param string $name The resource name of the service account key in the |
| 467 |
* format "projects/{project}/serviceAccounts/{account}/keys/{key}". Using '-' |
| 468 |
* as a wildcard for the project will infer the project from the account. The |
| 469 |
* account value can be the email address or the unique_id of the service |
| 470 |
* account. |
| 471 |
* @param array $optParams Optional parameters. |
| 472 |
* @return Google_Service_Iam_ServiceAccountKey |
| 473 |
*/ |
| 474 |
public function get($name, $optParams = array()) |
| 475 |
{ |
| 476 |
$params = array('name' => $name); |
| 477 |
$params = array_merge($params, $optParams); |
| 478 |
return $this->call('get', array($params), "Google_Service_Iam_ServiceAccountKey"); |
| 479 |
} |
| 480 |
|
| 481 |
/** |
| 482 |
* Lists service account keys (keys.listProjectsServiceAccountsKeys) |
| 483 |
* |
| 484 |
* @param string $name The resource name of the service account in the format |
| 485 |
* "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for |
| 486 |
* the project, will infer the project from the account. The account value can |
| 487 |
* be the email address or the unique_id of the service account. |
| 488 |
* @param array $optParams Optional parameters. |
| 489 |
* |
| 490 |
* @opt_param string keyTypes The type of keys the user wants to list. If empty, |
| 491 |
* all key types are included in the response. Duplicate key types are not |
| 492 |
* allowed. |
| 493 |
* @return Google_Service_Iam_ListServiceAccountKeysResponse |
| 494 |
*/ |
| 495 |
public function listProjectsServiceAccountsKeys($name, $optParams = array()) |
| 496 |
{ |
| 497 |
$params = array('name' => $name); |
| 498 |
$params = array_merge($params, $optParams); |
| 499 |
return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountKeysResponse"); |
| 500 |
} |
| 501 |
} |
| 502 |
|
| 503 |
|
| 504 |
|
| 505 |
|
| 506 |
class Google_Service_Iam_Binding extends Google_Collection |
| 507 |
{ |
| 508 |
protected $collection_key = 'members'; |
| 509 |
protected $internal_gapi_mappings = array( |
| 510 |
); |
| 511 |
public $members; |
| 512 |
public $role; |
| 513 |
|
| 514 |
|
| 515 |
public function setMembers($members) |
| 516 |
{ |
| 517 |
$this->members = $members; |
| 518 |
} |
| 519 |
public function getMembers() |
| 520 |
{ |
| 521 |
return $this->members; |
| 522 |
} |
| 523 |
public function setRole($role) |
| 524 |
{ |
| 525 |
$this->role = $role; |
| 526 |
} |
| 527 |
public function getRole() |
| 528 |
{ |
| 529 |
return $this->role; |
| 530 |
} |
| 531 |
} |
| 532 |
|
| 533 |
class Google_Service_Iam_CloudAuditOptions extends Google_Model |
| 534 |
{ |
| 535 |
} |
| 536 |
|
| 537 |
class Google_Service_Iam_Condition extends Google_Collection |
| 538 |
{ |
| 539 |
protected $collection_key = 'values'; |
| 540 |
protected $internal_gapi_mappings = array( |
| 541 |
); |
| 542 |
public $iam; |
| 543 |
public $op; |
| 544 |
public $svc; |
| 545 |
public $sys; |
| 546 |
public $value; |
| 547 |
public $values; |
| 548 |
|
| 549 |
|
| 550 |
public function setIam($iam) |
| 551 |
{ |
| 552 |
$this->iam = $iam; |
| 553 |
} |
| 554 |
public function getIam() |
| 555 |
{ |
| 556 |
return $this->iam; |
| 557 |
} |
| 558 |
public function setOp($op) |
| 559 |
{ |
| 560 |
$this->op = $op; |
| 561 |
} |
| 562 |
public function getOp() |
| 563 |
{ |
| 564 |
return $this->op; |
| 565 |
} |
| 566 |
public function setSvc($svc) |
| 567 |
{ |
| 568 |
$this->svc = $svc; |
| 569 |
} |
| 570 |
public function getSvc() |
| 571 |
{ |
| 572 |
return $this->svc; |
| 573 |
} |
| 574 |
public function setSys($sys) |
| 575 |
{ |
| 576 |
$this->sys = $sys; |
| 577 |
} |
| 578 |
public function getSys() |
| 579 |
{ |
| 580 |
return $this->sys; |
| 581 |
} |
| 582 |
public function setValue($value) |
| 583 |
{ |
| 584 |
$this->value = $value; |
| 585 |
} |
| 586 |
public function getValue() |
| 587 |
{ |
| 588 |
return $this->value; |
| 589 |
} |
| 590 |
public function setValues($values) |
| 591 |
{ |
| 592 |
$this->values = $values; |
| 593 |
} |
| 594 |
public function getValues() |
| 595 |
{ |
| 596 |
return $this->values; |
| 597 |
} |
| 598 |
} |
| 599 |
|
| 600 |
class Google_Service_Iam_CounterOptions extends Google_Model |
| 601 |
{ |
| 602 |
protected $internal_gapi_mappings = array( |
| 603 |
); |
| 604 |
public $field; |
| 605 |
public $metric; |
| 606 |
|
| 607 |
|
| 608 |
public function setField($field) |
| 609 |
{ |
| 610 |
$this->field = $field; |
| 611 |
} |
| 612 |
public function getField() |
| 613 |
{ |
| 614 |
return $this->field; |
| 615 |
} |
| 616 |
public function setMetric($metric) |
| 617 |
{ |
| 618 |
$this->metric = $metric; |
| 619 |
} |
| 620 |
public function getMetric() |
| 621 |
{ |
| 622 |
return $this->metric; |
| 623 |
} |
| 624 |
} |
| 625 |
|
| 626 |
class Google_Service_Iam_CreateServiceAccountKeyRequest extends Google_Model |
| 627 |
{ |
| 628 |
protected $internal_gapi_mappings = array( |
| 629 |
); |
| 630 |
public $privateKeyType; |
| 631 |
|
| 632 |
|
| 633 |
public function setPrivateKeyType($privateKeyType) |
| 634 |
{ |
| 635 |
$this->privateKeyType = $privateKeyType; |
| 636 |
} |
| 637 |
public function getPrivateKeyType() |
| 638 |
{ |
| 639 |
return $this->privateKeyType; |
| 640 |
} |
| 641 |
} |
| 642 |
|
| 643 |
class Google_Service_Iam_CreateServiceAccountRequest extends Google_Model |
| 644 |
{ |
| 645 |
protected $internal_gapi_mappings = array( |
| 646 |
); |
| 647 |
public $accountId; |
| 648 |
protected $serviceAccountType = 'Google_Service_Iam_ServiceAccount'; |
| 649 |
protected $serviceAccountDataType = ''; |
| 650 |
|
| 651 |
|
| 652 |
public function setAccountId($accountId) |
| 653 |
{ |
| 654 |
$this->accountId = $accountId; |
| 655 |
} |
| 656 |
public function getAccountId() |
| 657 |
{ |
| 658 |
return $this->accountId; |
| 659 |
} |
| 660 |
public function setServiceAccount(Google_Service_Iam_ServiceAccount $serviceAccount) |
| 661 |
{ |
| 662 |
$this->serviceAccount = $serviceAccount; |
| 663 |
} |
| 664 |
public function getServiceAccount() |
| 665 |
{ |
| 666 |
return $this->serviceAccount; |
| 667 |
} |
| 668 |
} |
| 669 |
|
| 670 |
class Google_Service_Iam_DataAccessOptions extends Google_Model |
| 671 |
{ |
| 672 |
} |
| 673 |
|
| 674 |
class Google_Service_Iam_Empty extends Google_Model |
| 675 |
{ |
| 676 |
} |
| 677 |
|
| 678 |
class Google_Service_Iam_ListServiceAccountKeysResponse extends Google_Collection |
| 679 |
{ |
| 680 |
protected $collection_key = 'keys'; |
| 681 |
protected $internal_gapi_mappings = array( |
| 682 |
); |
| 683 |
protected $keysType = 'Google_Service_Iam_ServiceAccountKey'; |
| 684 |
protected $keysDataType = 'array'; |
| 685 |
|
| 686 |
|
| 687 |
public function setKeys($keys) |
| 688 |
{ |
| 689 |
$this->keys = $keys; |
| 690 |
} |
| 691 |
public function getKeys() |
| 692 |
{ |
| 693 |
return $this->keys; |
| 694 |
} |
| 695 |
} |
| 696 |
|
| 697 |
class Google_Service_Iam_ListServiceAccountsResponse extends Google_Collection |
| 698 |
{ |
| 699 |
protected $collection_key = 'accounts'; |
| 700 |
protected $internal_gapi_mappings = array( |
| 701 |
); |
| 702 |
protected $accountsType = 'Google_Service_Iam_ServiceAccount'; |
| 703 |
protected $accountsDataType = 'array'; |
| 704 |
public $nextPageToken; |
| 705 |
|
| 706 |
|
| 707 |
public function setAccounts($accounts) |
| 708 |
{ |
| 709 |
$this->accounts = $accounts; |
| 710 |
} |
| 711 |
public function getAccounts() |
| 712 |
{ |
| 713 |
return $this->accounts; |
| 714 |
} |
| 715 |
public function setNextPageToken($nextPageToken) |
| 716 |
{ |
| 717 |
$this->nextPageToken = $nextPageToken; |
| 718 |
} |
| 719 |
public function getNextPageToken() |
| 720 |
{ |
| 721 |
return $this->nextPageToken; |
| 722 |
} |
| 723 |
} |
| 724 |
|
| 725 |
class Google_Service_Iam_LogConfig extends Google_Model |
| 726 |
{ |
| 727 |
protected $internal_gapi_mappings = array( |
| 728 |
); |
| 729 |
protected $cloudAuditType = 'Google_Service_Iam_CloudAuditOptions'; |
| 730 |
protected $cloudAuditDataType = ''; |
| 731 |
protected $counterType = 'Google_Service_Iam_CounterOptions'; |
| 732 |
protected $counterDataType = ''; |
| 733 |
protected $dataAccessType = 'Google_Service_Iam_DataAccessOptions'; |
| 734 |
protected $dataAccessDataType = ''; |
| 735 |
|
| 736 |
|
| 737 |
public function setCloudAudit(Google_Service_Iam_CloudAuditOptions $cloudAudit) |
| 738 |
{ |
| 739 |
$this->cloudAudit = $cloudAudit; |
| 740 |
} |
| 741 |
public function getCloudAudit() |
| 742 |
{ |
| 743 |
return $this->cloudAudit; |
| 744 |
} |
| 745 |
public function setCounter(Google_Service_Iam_CounterOptions $counter) |
| 746 |
{ |
| 747 |
$this->counter = $counter; |
| 748 |
} |
| 749 |
public function getCounter() |
| 750 |
{ |
| 751 |
return $this->counter; |
| 752 |
} |
| 753 |
public function setDataAccess(Google_Service_Iam_DataAccessOptions $dataAccess) |
| 754 |
{ |
| 755 |
$this->dataAccess = $dataAccess; |
| 756 |
} |
| 757 |
public function getDataAccess() |
| 758 |
{ |
| 759 |
return $this->dataAccess; |
| 760 |
} |
| 761 |
} |
| 762 |
|
| 763 |
class Google_Service_Iam_Policy extends Google_Collection |
| 764 |
{ |
| 765 |
protected $collection_key = 'rules'; |
| 766 |
protected $internal_gapi_mappings = array( |
| 767 |
); |
| 768 |
protected $bindingsType = 'Google_Service_Iam_Binding'; |
| 769 |
protected $bindingsDataType = 'array'; |
| 770 |
public $etag; |
| 771 |
protected $rulesType = 'Google_Service_Iam_Rule'; |
| 772 |
protected $rulesDataType = 'array'; |
| 773 |
public $version; |
| 774 |
|
| 775 |
|
| 776 |
public function setBindings($bindings) |
| 777 |
{ |
| 778 |
$this->bindings = $bindings; |
| 779 |
} |
| 780 |
public function getBindings() |
| 781 |
{ |
| 782 |
return $this->bindings; |
| 783 |
} |
| 784 |
public function setEtag($etag) |
| 785 |
{ |
| 786 |
$this->etag = $etag; |
| 787 |
} |
| 788 |
public function getEtag() |
| 789 |
{ |
| 790 |
return $this->etag; |
| 791 |
} |
| 792 |
public function setRules($rules) |
| 793 |
{ |
| 794 |
$this->rules = $rules; |
| 795 |
} |
| 796 |
public function getRules() |
| 797 |
{ |
| 798 |
return $this->rules; |
| 799 |
} |
| 800 |
public function setVersion($version) |
| 801 |
{ |
| 802 |
$this->version = $version; |
| 803 |
} |
| 804 |
public function getVersion() |
| 805 |
{ |
| 806 |
return $this->version; |
| 807 |
} |
| 808 |
} |
| 809 |
|
| 810 |
class Google_Service_Iam_Rule extends Google_Collection |
| 811 |
{ |
| 812 |
protected $collection_key = 'permissions'; |
| 813 |
protected $internal_gapi_mappings = array( |
| 814 |
); |
| 815 |
public $action; |
| 816 |
protected $conditionsType = 'Google_Service_Iam_Condition'; |
| 817 |
protected $conditionsDataType = 'array'; |
| 818 |
public $description; |
| 819 |
public $in; |
| 820 |
protected $logConfigType = 'Google_Service_Iam_LogConfig'; |
| 821 |
protected $logConfigDataType = 'array'; |
| 822 |
public $notIn; |
| 823 |
public $permissions; |
| 824 |
|
| 825 |
|
| 826 |
public function setAction($action) |
| 827 |
{ |
| 828 |
$this->action = $action; |
| 829 |
} |
| 830 |
public function getAction() |
| 831 |
{ |
| 832 |
return $this->action; |
| 833 |
} |
| 834 |
public function setConditions($conditions) |
| 835 |
{ |
| 836 |
$this->conditions = $conditions; |
| 837 |
} |
| 838 |
public function getConditions() |
| 839 |
{ |
| 840 |
return $this->conditions; |
| 841 |
} |
| 842 |
public function setDescription($description) |
| 843 |
{ |
| 844 |
$this->description = $description; |
| 845 |
} |
| 846 |
public function getDescription() |
| 847 |
{ |
| 848 |
return $this->description; |
| 849 |
} |
| 850 |
public function setIn($in) |
| 851 |
{ |
| 852 |
$this->in = $in; |
| 853 |
} |
| 854 |
public function getIn() |
| 855 |
{ |
| 856 |
return $this->in; |
| 857 |
} |
| 858 |
public function setLogConfig($logConfig) |
| 859 |
{ |
| 860 |
$this->logConfig = $logConfig; |
| 861 |
} |
| 862 |
public function getLogConfig() |
| 863 |
{ |
| 864 |
return $this->logConfig; |
| 865 |
} |
| 866 |
public function setNotIn($notIn) |
| 867 |
{ |
| 868 |
$this->notIn = $notIn; |
| 869 |
} |
| 870 |
public function getNotIn() |
| 871 |
{ |
| 872 |
return $this->notIn; |
| 873 |
} |
| 874 |
public function setPermissions($permissions) |
| 875 |
{ |
| 876 |
$this->permissions = $permissions; |
| 877 |
} |
| 878 |
public function getPermissions() |
| 879 |
{ |
| 880 |
return $this->permissions; |
| 881 |
} |
| 882 |
} |
| 883 |
|
| 884 |
class Google_Service_Iam_ServiceAccount extends Google_Model |
| 885 |
{ |
| 886 |
protected $internal_gapi_mappings = array( |
| 887 |
); |
| 888 |
public $displayName; |
| 889 |
public $email; |
| 890 |
public $etag; |
| 891 |
public $name; |
| 892 |
public $oauth2ClientId; |
| 893 |
public $projectId; |
| 894 |
public $uniqueId; |
| 895 |
|
| 896 |
|
| 897 |
public function setDisplayName($displayName) |
| 898 |
{ |
| 899 |
$this->displayName = $displayName; |
| 900 |
} |
| 901 |
public function getDisplayName() |
| 902 |
{ |
| 903 |
return $this->displayName; |
| 904 |
} |
| 905 |
public function setEmail($email) |
| 906 |
{ |
| 907 |
$this->email = $email; |
| 908 |
} |
| 909 |
public function getEmail() |
| 910 |
{ |
| 911 |
return $this->email; |
| 912 |
} |
| 913 |
public function setEtag($etag) |
| 914 |
{ |
| 915 |
$this->etag = $etag; |
| 916 |
} |
| 917 |
public function getEtag() |
| 918 |
{ |
| 919 |
return $this->etag; |
| 920 |
} |
| 921 |
public function setName($name) |
| 922 |
{ |
| 923 |
$this->name = $name; |
| 924 |
} |
| 925 |
public function getName() |
| 926 |
{ |
| 927 |
return $this->name; |
| 928 |
} |
| 929 |
public function setOauth2ClientId($oauth2ClientId) |
| 930 |
{ |
| 931 |
$this->oauth2ClientId = $oauth2ClientId; |
| 932 |
} |
| 933 |
public function getOauth2ClientId() |
| 934 |
{ |
| 935 |
return $this->oauth2ClientId; |
| 936 |
} |
| 937 |
public function setProjectId($projectId) |
| 938 |
{ |
| 939 |
$this->projectId = $projectId; |
| 940 |
} |
| 941 |
public function getProjectId() |
| 942 |
{ |
| 943 |
return $this->projectId; |
| 944 |
} |
| 945 |
public function setUniqueId($uniqueId) |
| 946 |
{ |
| 947 |
$this->uniqueId = $uniqueId; |
| 948 |
} |
| 949 |
public function getUniqueId() |
| 950 |
{ |
| 951 |
return $this->uniqueId; |
| 952 |
} |
| 953 |
} |
| 954 |
|
| 955 |
class Google_Service_Iam_ServiceAccountKey extends Google_Model |
| 956 |
{ |
| 957 |
protected $internal_gapi_mappings = array( |
| 958 |
); |
| 959 |
public $name; |
| 960 |
public $privateKeyData; |
| 961 |
public $privateKeyType; |
| 962 |
public $validAfterTime; |
| 963 |
public $validBeforeTime; |
| 964 |
|
| 965 |
|
| 966 |
public function setName($name) |
| 967 |
{ |
| 968 |
$this->name = $name; |
| 969 |
} |
| 970 |
public function getName() |
| 971 |
{ |
| 972 |
return $this->name; |
| 973 |
} |
| 974 |
public function setPrivateKeyData($privateKeyData) |
| 975 |
{ |
| 976 |
$this->privateKeyData = $privateKeyData; |
| 977 |
} |
| 978 |
public function getPrivateKeyData() |
| 979 |
{ |
| 980 |
return $this->privateKeyData; |
| 981 |
} |
| 982 |
public function setPrivateKeyType($privateKeyType) |
| 983 |
{ |
| 984 |
$this->privateKeyType = $privateKeyType; |
| 985 |
} |
| 986 |
public function getPrivateKeyType() |
| 987 |
{ |
| 988 |
return $this->privateKeyType; |
| 989 |
} |
| 990 |
public function setValidAfterTime($validAfterTime) |
| 991 |
{ |
| 992 |
$this->validAfterTime = $validAfterTime; |
| 993 |
} |
| 994 |
public function getValidAfterTime() |
| 995 |
{ |
| 996 |
return $this->validAfterTime; |
| 997 |
} |
| 998 |
public function setValidBeforeTime($validBeforeTime) |
| 999 |
{ |
| 1000 |
$this->validBeforeTime = $validBeforeTime; |
| 1001 |
} |
| 1002 |
public function getValidBeforeTime() |
| 1003 |
{ |
| 1004 |
return $this->validBeforeTime; |
| 1005 |
} |
| 1006 |
} |
| 1007 |
|
| 1008 |
class Google_Service_Iam_SetIamPolicyRequest extends Google_Model |
| 1009 |
{ |
| 1010 |
protected $internal_gapi_mappings = array( |
| 1011 |
); |
| 1012 |
protected $policyType = 'Google_Service_Iam_Policy'; |
| 1013 |
protected $policyDataType = ''; |
| 1014 |
|
| 1015 |
|
| 1016 |
public function setPolicy(Google_Service_Iam_Policy $policy) |
| 1017 |
{ |
| 1018 |
$this->policy = $policy; |
| 1019 |
} |
| 1020 |
public function getPolicy() |
| 1021 |
{ |
| 1022 |
return $this->policy; |
| 1023 |
} |
| 1024 |
} |
| 1025 |
|
| 1026 |
class Google_Service_Iam_SignBlobRequest extends Google_Model |
| 1027 |
{ |
| 1028 |
protected $internal_gapi_mappings = array( |
| 1029 |
); |
| 1030 |
public $bytesToSign; |
| 1031 |
|
| 1032 |
|
| 1033 |
public function setBytesToSign($bytesToSign) |
| 1034 |
{ |
| 1035 |
$this->bytesToSign = $bytesToSign; |
| 1036 |
} |
| 1037 |
public function getBytesToSign() |
| 1038 |
{ |
| 1039 |
return $this->bytesToSign; |
| 1040 |
} |
| 1041 |
} |
| 1042 |
|
| 1043 |
class Google_Service_Iam_SignBlobResponse extends Google_Model |
| 1044 |
{ |
| 1045 |
protected $internal_gapi_mappings = array( |
| 1046 |
); |
| 1047 |
public $keyId; |
| 1048 |
public $signature; |
| 1049 |
|
| 1050 |
|
| 1051 |
public function setKeyId($keyId) |
| 1052 |
{ |
| 1053 |
$this->keyId = $keyId; |
| 1054 |
} |
| 1055 |
public function getKeyId() |
| 1056 |
{ |
| 1057 |
return $this->keyId; |
| 1058 |
} |
| 1059 |
public function setSignature($signature) |
| 1060 |
{ |
| 1061 |
$this->signature = $signature; |
| 1062 |
} |
| 1063 |
public function getSignature() |
| 1064 |
{ |
| 1065 |
return $this->signature; |
| 1066 |
} |
| 1067 |
} |
| 1068 |
|
| 1069 |
class Google_Service_Iam_TestIamPermissionsRequest extends Google_Collection |
| 1070 |
{ |
| 1071 |
protected $collection_key = 'permissions'; |
| 1072 |
protected $internal_gapi_mappings = array( |
| 1073 |
); |
| 1074 |
public $permissions; |
| 1075 |
|
| 1076 |
|
| 1077 |
public function setPermissions($permissions) |
| 1078 |
{ |
| 1079 |
$this->permissions = $permissions; |
| 1080 |
} |
| 1081 |
public function getPermissions() |
| 1082 |
{ |
| 1083 |
return $this->permissions; |
| 1084 |
} |
| 1085 |
} |
| 1086 |
|
| 1087 |
class Google_Service_Iam_TestIamPermissionsResponse extends Google_Collection |
| 1088 |
{ |
| 1089 |
protected $collection_key = 'permissions'; |
| 1090 |
protected $internal_gapi_mappings = array( |
| 1091 |
); |
| 1092 |
public $permissions; |
| 1093 |
|
| 1094 |
|
| 1095 |
public function setPermissions($permissions) |
| 1096 |
{ |
| 1097 |
$this->permissions = $permissions; |
| 1098 |
} |
| 1099 |
public function getPermissions() |
| 1100 |
{ |
| 1101 |
return $this->permissions; |
| 1102 |
} |
| 1103 |
} |
| 1104 |
|