Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

   1  <?php
   2  /*
   3   * Copyright 2010 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  
  18  /**
  19   * Service definition for Cloudresourcemanager (v1beta1).
  20   *
  21   * <p>
  22   * The Google Cloud Resource Manager API provides methods for creating, reading,
  23   * and updating of project metadata.</p>
  24   *
  25   * <p>
  26   * For more information about this service, see the API
  27   * <a href="https://cloud.google.com/resource-manager" target="_blank">Documentation</a>
  28   * </p>
  29   *
  30   * @author Google, Inc.
  31   */
  32  class Google_Service_Cloudresourcemanager extends Google_Service
  33  {
  34    /** View and manage your data across Google Cloud Platform services. */
  35    const CLOUD_PLATFORM =
  36        "https://www.googleapis.com/auth/cloud-platform";
  37  
  38    public $organizations;
  39    public $projects;
  40    
  41  
  42    /**
  43     * Constructs the internal representation of the Cloudresourcemanager service.
  44     *
  45     * @param Google_Client $client
  46     */
  47    public function __construct(Google_Client $client)
  48    {
  49      parent::__construct($client);
  50      $this->rootUrl = 'https://cloudresourcemanager.googleapis.com/';
  51      $this->servicePath = '';
  52      $this->version = 'v1beta1';
  53      $this->serviceName = 'cloudresourcemanager';
  54  
  55      $this->organizations = new Google_Service_Cloudresourcemanager_Organizations_Resource(
  56          $this,
  57          $this->serviceName,
  58          'organizations',
  59          array(
  60            'methods' => array(
  61              'get' => array(
  62                'path' => 'v1beta1/organizations/{organizationId}',
  63                'httpMethod' => 'GET',
  64                'parameters' => array(
  65                  'organizationId' => array(
  66                    'location' => 'path',
  67                    'type' => 'string',
  68                    'required' => true,
  69                  ),
  70                ),
  71              ),'getIamPolicy' => array(
  72                'path' => 'v1beta1/organizations/{resource}:getIamPolicy',
  73                'httpMethod' => 'POST',
  74                'parameters' => array(
  75                  'resource' => array(
  76                    'location' => 'path',
  77                    'type' => 'string',
  78                    'required' => true,
  79                  ),
  80                ),
  81              ),'list' => array(
  82                'path' => 'v1beta1/organizations',
  83                'httpMethod' => 'GET',
  84                'parameters' => array(
  85                  'filter' => array(
  86                    'location' => 'query',
  87                    'type' => 'string',
  88                  ),
  89                  'pageToken' => array(
  90                    'location' => 'query',
  91                    'type' => 'string',
  92                  ),
  93                  'pageSize' => array(
  94                    'location' => 'query',
  95                    'type' => 'integer',
  96                  ),
  97                ),
  98              ),'setIamPolicy' => array(
  99                'path' => 'v1beta1/organizations/{resource}:setIamPolicy',
 100                'httpMethod' => 'POST',
 101                'parameters' => array(
 102                  'resource' => array(
 103                    'location' => 'path',
 104                    'type' => 'string',
 105                    'required' => true,
 106                  ),
 107                ),
 108              ),'testIamPermissions' => array(
 109                'path' => 'v1beta1/organizations/{resource}:testIamPermissions',
 110                'httpMethod' => 'POST',
 111                'parameters' => array(
 112                  'resource' => array(
 113                    'location' => 'path',
 114                    'type' => 'string',
 115                    'required' => true,
 116                  ),
 117                ),
 118              ),'update' => array(
 119                'path' => 'v1beta1/organizations/{organizationId}',
 120                'httpMethod' => 'PUT',
 121                'parameters' => array(
 122                  'organizationId' => array(
 123                    'location' => 'path',
 124                    'type' => 'string',
 125                    'required' => true,
 126                  ),
 127                ),
 128              ),
 129            )
 130          )
 131      );
 132      $this->projects = new Google_Service_Cloudresourcemanager_Projects_Resource(
 133          $this,
 134          $this->serviceName,
 135          'projects',
 136          array(
 137            'methods' => array(
 138              'create' => array(
 139                'path' => 'v1beta1/projects',
 140                'httpMethod' => 'POST',
 141                'parameters' => array(),
 142              ),'delete' => array(
 143                'path' => 'v1beta1/projects/{projectId}',
 144                'httpMethod' => 'DELETE',
 145                'parameters' => array(
 146                  'projectId' => array(
 147                    'location' => 'path',
 148                    'type' => 'string',
 149                    'required' => true,
 150                  ),
 151                ),
 152              ),'get' => array(
 153                'path' => 'v1beta1/projects/{projectId}',
 154                'httpMethod' => 'GET',
 155                'parameters' => array(
 156                  'projectId' => array(
 157                    'location' => 'path',
 158                    'type' => 'string',
 159                    'required' => true,
 160                  ),
 161                ),
 162              ),'getIamPolicy' => array(
 163                'path' => 'v1beta1/projects/{resource}:getIamPolicy',
 164                'httpMethod' => 'POST',
 165                'parameters' => array(
 166                  'resource' => array(
 167                    'location' => 'path',
 168                    'type' => 'string',
 169                    'required' => true,
 170                  ),
 171                ),
 172              ),'list' => array(
 173                'path' => 'v1beta1/projects',
 174                'httpMethod' => 'GET',
 175                'parameters' => array(
 176                  'filter' => array(
 177                    'location' => 'query',
 178                    'type' => 'string',
 179                  ),
 180                  'pageToken' => array(
 181                    'location' => 'query',
 182                    'type' => 'string',
 183                  ),
 184                  'pageSize' => array(
 185                    'location' => 'query',
 186                    'type' => 'integer',
 187                  ),
 188                ),
 189              ),'setIamPolicy' => array(
 190                'path' => 'v1beta1/projects/{resource}:setIamPolicy',
 191                'httpMethod' => 'POST',
 192                'parameters' => array(
 193                  'resource' => array(
 194                    'location' => 'path',
 195                    'type' => 'string',
 196                    'required' => true,
 197                  ),
 198                ),
 199              ),'testIamPermissions' => array(
 200                'path' => 'v1beta1/projects/{resource}:testIamPermissions',
 201                'httpMethod' => 'POST',
 202                'parameters' => array(
 203                  'resource' => array(
 204                    'location' => 'path',
 205                    'type' => 'string',
 206                    'required' => true,
 207                  ),
 208                ),
 209              ),'undelete' => array(
 210                'path' => 'v1beta1/projects/{projectId}:undelete',
 211                'httpMethod' => 'POST',
 212                'parameters' => array(
 213                  'projectId' => array(
 214                    'location' => 'path',
 215                    'type' => 'string',
 216                    'required' => true,
 217                  ),
 218                ),
 219              ),'update' => array(
 220                'path' => 'v1beta1/projects/{projectId}',
 221                'httpMethod' => 'PUT',
 222                'parameters' => array(
 223                  'projectId' => array(
 224                    'location' => 'path',
 225                    'type' => 'string',
 226                    'required' => true,
 227                  ),
 228                ),
 229              ),
 230            )
 231          )
 232      );
 233    }
 234  }
 235  
 236  
 237  /**
 238   * The "organizations" collection of methods.
 239   * Typical usage is:
 240   *  <code>
 241   *   $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...);
 242   *   $organizations = $cloudresourcemanagerService->organizations;
 243   *  </code>
 244   */
 245  class Google_Service_Cloudresourcemanager_Organizations_Resource extends Google_Service_Resource
 246  {
 247  
 248    /**
 249     * Fetches an Organization resource by id. (organizations.get)
 250     *
 251     * @param string $organizationId The id of the Organization resource to fetch.
 252     * @param array $optParams Optional parameters.
 253     * @return Google_Service_Cloudresourcemanager_Organization
 254     */
 255    public function get($organizationId, $optParams = array())
 256    {
 257      $params = array('organizationId' => $organizationId);
 258      $params = array_merge($params, $optParams);
 259      return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Organization");
 260    }
 261  
 262    /**
 263     * Gets the access control policy for a Organization resource. May be empty if
 264     * no such policy or resource exists. (organizations.getIamPolicy)
 265     *
 266     * @param string $resource REQUIRED: The resource for which policy is being
 267     * requested. Resource is usually specified as a path, such as,
 268     * `projects/{project}`.
 269     * @param Google_GetIamPolicyRequest $postBody
 270     * @param array $optParams Optional parameters.
 271     * @return Google_Service_Cloudresourcemanager_Policy
 272     */
 273    public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetIamPolicyRequest $postBody, $optParams = array())
 274    {
 275      $params = array('resource' => $resource, 'postBody' => $postBody);
 276      $params = array_merge($params, $optParams);
 277      return $this->call('getIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy");
 278    }
 279  
 280    /**
 281     * Query Organization resources. (organizations.listOrganizations)
 282     *
 283     * @param array $optParams Optional parameters.
 284     *
 285     * @opt_param string filter An optional query string used to filter the
 286     * Organizations to be return in the response. Filter rules are case-
 287     * insensitive. Organizations may be filtered by `owner.directoryCustomerId` or
 288     * by `domain`, where the domain is a Google for Work domain, for example:
 289     * |Filter|Description| |------|-----------|
 290     * |owner.directorycustomerid:123456789|Organizations with
 291     * `owner.directory_customer_id` equal to `123456789`.|
 292     * |domain:google.com|Organizations corresponding to the domain `google.com`.|
 293     * This field is optional.
 294     * @opt_param string pageToken A pagination token returned from a previous call
 295     * to ListOrganizations that indicates from where listing should continue. This
 296     * field is optional.
 297     * @opt_param int pageSize The maximum number of Organizations to return in the
 298     * response. This field is optional.
 299     * @return Google_Service_Cloudresourcemanager_ListOrganizationsResponse
 300     */
 301    public function listOrganizations($optParams = array())
 302    {
 303      $params = array();
 304      $params = array_merge($params, $optParams);
 305      return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListOrganizationsResponse");
 306    }
 307  
 308    /**
 309     * Sets the access control policy on a Organization resource. Replaces any
 310     * existing policy. (organizations.setIamPolicy)
 311     *
 312     * @param string $resource REQUIRED: The resource for which policy is being
 313     * specified. `resource` is usually specified as a path, such as,
 314     * `projects/{project}/zones/{zone}/disks/{disk}`.
 315     * @param Google_SetIamPolicyRequest $postBody
 316     * @param array $optParams Optional parameters.
 317     * @return Google_Service_Cloudresourcemanager_Policy
 318     */
 319    public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetIamPolicyRequest $postBody, $optParams = array())
 320    {
 321      $params = array('resource' => $resource, 'postBody' => $postBody);
 322      $params = array_merge($params, $optParams);
 323      return $this->call('setIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy");
 324    }
 325  
 326    /**
 327     * Returns permissions that a caller has on the specified Organization.
 328     * (organizations.testIamPermissions)
 329     *
 330     * @param string $resource REQUIRED: The resource for which policy detail is
 331     * being requested. `resource` is usually specified as a path, such as,
 332     * `projects/{project}`.
 333     * @param Google_TestIamPermissionsRequest $postBody
 334     * @param array $optParams Optional parameters.
 335     * @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse
 336     */
 337    public function testIamPermissions($resource, Google_Service_Cloudresourcemanager_TestIamPermissionsRequest $postBody, $optParams = array())
 338    {
 339      $params = array('resource' => $resource, 'postBody' => $postBody);
 340      $params = array_merge($params, $optParams);
 341      return $this->call('testIamPermissions', array($params), "Google_Service_Cloudresourcemanager_TestIamPermissionsResponse");
 342    }
 343  
 344    /**
 345     * Updates an Organization resource. (organizations.update)
 346     *
 347     * @param string $organizationId An immutable id for the Organization that is
 348     * assigned on creation. This should be omitted when creating a new
 349     * Organization. This field is read-only.
 350     * @param Google_Organization $postBody
 351     * @param array $optParams Optional parameters.
 352     * @return Google_Service_Cloudresourcemanager_Organization
 353     */
 354    public function update($organizationId, Google_Service_Cloudresourcemanager_Organization $postBody, $optParams = array())
 355    {
 356      $params = array('organizationId' => $organizationId, 'postBody' => $postBody);
 357      $params = array_merge($params, $optParams);
 358      return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Organization");
 359    }
 360  }
 361  
 362  /**
 363   * The "projects" collection of methods.
 364   * Typical usage is:
 365   *  <code>
 366   *   $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...);
 367   *   $projects = $cloudresourcemanagerService->projects;
 368   *  </code>
 369   */
 370  class Google_Service_Cloudresourcemanager_Projects_Resource extends Google_Service_Resource
 371  {
 372  
 373    /**
 374     * Creates a project resource. Initially, the project resource is owned by its
 375     * creator exclusively. The creator can later grant permission to others to read
 376     * or update the project. Several APIs are activated automatically for the
 377     * project, including Google Cloud Storage. (projects.create)
 378     *
 379     * @param Google_Project $postBody
 380     * @param array $optParams Optional parameters.
 381     * @return Google_Service_Cloudresourcemanager_Project
 382     */
 383    public function create(Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array())
 384    {
 385      $params = array('postBody' => $postBody);
 386      $params = array_merge($params, $optParams);
 387      return $this->call('create', array($params), "Google_Service_Cloudresourcemanager_Project");
 388    }
 389  
 390    /**
 391     * Marks the project identified by the specified `project_id` (for example, `my-
 392     * project-123`) for deletion. This method will only affect the project if the
 393     * following criteria are met: + The project does not have a billing account
 394     * associated with it. + The project has a lifecycle state of
 395     * [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE].
 396     * This method changes the project's lifecycle state from
 397     * [ACTIVE][google.cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]
 398     * to [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.Lifecycle
 399     * State.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which
 400     * point the lifecycle state changes to [DELETE_IN_PROGRESS] [google.cloudresour
 401     * cemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS]. Until the
 402     * deletion completes, you can check the lifecycle state checked by retrieving
 403     * the project with [GetProject]
 404     * [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject],
 405     * and the project remains visible to [ListProjects] [google.cloudresourcemanage
 406     * r.projects.v1beta1.DeveloperProjects.ListProjects]. However, you cannot
 407     * update the project. After the deletion completes, the project is not
 408     * retrievable by the [GetProject]
 409     * [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject]
 410     * and [ListProjects]
 411     * [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects]
 412     * methods. The caller must have modify permissions for this project.
 413     * (projects.delete)
 414     *
 415     * @param string $projectId The project ID (for example, `foo-bar-123`).
 416     * Required.
 417     * @param array $optParams Optional parameters.
 418     * @return Google_Service_Cloudresourcemanager_Empty
 419     */
 420    public function delete($projectId, $optParams = array())
 421    {
 422      $params = array('projectId' => $projectId);
 423      $params = array_merge($params, $optParams);
 424      return $this->call('delete', array($params), "Google_Service_Cloudresourcemanager_Empty");
 425    }
 426  
 427    /**
 428     * Retrieves the project identified by the specified `project_id` (for example,
 429     * `my-project-123`). The caller must have read permissions for this project.
 430     * (projects.get)
 431     *
 432     * @param string $projectId The project ID (for example, `my-project-123`).
 433     * Required.
 434     * @param array $optParams Optional parameters.
 435     * @return Google_Service_Cloudresourcemanager_Project
 436     */
 437    public function get($projectId, $optParams = array())
 438    {
 439      $params = array('projectId' => $projectId);
 440      $params = array_merge($params, $optParams);
 441      return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Project");
 442    }
 443  
 444    /**
 445     * Returns the IAM access control policy for specified project.
 446     * (projects.getIamPolicy)
 447     *
 448     * @param string $resource REQUIRED: The resource for which policy is being
 449     * requested. Resource is usually specified as a path, such as,
 450     * `projects/{project}`.
 451     * @param Google_GetIamPolicyRequest $postBody
 452     * @param array $optParams Optional parameters.
 453     * @return Google_Service_Cloudresourcemanager_Policy
 454     */
 455    public function getIamPolicy($resource, Google_Service_Cloudresourcemanager_GetIamPolicyRequest $postBody, $optParams = array())
 456    {
 457      $params = array('resource' => $resource, 'postBody' => $postBody);
 458      $params = array_merge($params, $optParams);
 459      return $this->call('getIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy");
 460    }
 461  
 462    /**
 463     * Lists projects that are visible to the user and satisfy the specified filter.
 464     * This method returns projects in an unspecified order. New projects do not
 465     * necessarily appear at the end of the list. (projects.listProjects)
 466     *
 467     * @param array $optParams Optional parameters.
 468     *
 469     * @opt_param string filter An expression for filtering the results of the
 470     * request. Filter rules are case insensitive. The fields eligible for filtering
 471     * are: + `name` + `id` + labels.key where *key* is the name of a label Some
 472     * examples of using labels as filters: |Filter|Description|
 473     * |------|-----------| |name:*|The project has a name.| |name:Howl|The
 474     * project's name is `Howl` or `howl`.| |name:HOWL|Equivalent to above.|
 475     * |NAME:howl|Equivalent to above.| |labels.color:*|The project has the label
 476     * `color`.| |labels.color:red|The project's label `color` has the value `red`.|
 477     * |labels.color:red label.size:big|The project's label `color` has the value
 478     * `red` and its label `size` has the value `big`. Optional.
 479     * @opt_param string pageToken A pagination token returned from a previous call
 480     * to ListProject that indicates from where listing should continue. Note:
 481     * pagination is not yet supported; the server ignores this field. Optional.
 482     * @opt_param int pageSize The maximum number of Projects to return in the
 483     * response. The server can return fewer projects than requested. If
 484     * unspecified, server picks an appropriate default. Note: pagination is not yet
 485     * supported; the server ignores this field. Optional.
 486     * @return Google_Service_Cloudresourcemanager_ListProjectsResponse
 487     */
 488    public function listProjects($optParams = array())
 489    {
 490      $params = array();
 491      $params = array_merge($params, $optParams);
 492      return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListProjectsResponse");
 493    }
 494  
 495    /**
 496     * Sets the IAM access control policy for the specified project. We do not
 497     * currently support 'domain:' prefixed members in a Binding of a Policy.
 498     * Calling this method requires enabling the App Engine Admin API.
 499     * (projects.setIamPolicy)
 500     *
 501     * @param string $resource REQUIRED: The resource for which policy is being
 502     * specified. `resource` is usually specified as a path, such as,
 503     * `projects/{project}/zones/{zone}/disks/{disk}`.
 504     * @param Google_SetIamPolicyRequest $postBody
 505     * @param array $optParams Optional parameters.
 506     * @return Google_Service_Cloudresourcemanager_Policy
 507     */
 508    public function setIamPolicy($resource, Google_Service_Cloudresourcemanager_SetIamPolicyRequest $postBody, $optParams = array())
 509    {
 510      $params = array('resource' => $resource, 'postBody' => $postBody);
 511      $params = array_merge($params, $optParams);
 512      return $this->call('setIamPolicy', array($params), "Google_Service_Cloudresourcemanager_Policy");
 513    }
 514  
 515    /**
 516     * Tests the specified permissions against the IAM access control policy for the
 517     * specified project. (projects.testIamPermissions)
 518     *
 519     * @param string $resource REQUIRED: The resource for which policy detail is
 520     * being requested. `resource` is usually specified as a path, such as,
 521     * `projects/{project}`.
 522     * @param Google_TestIamPermissionsRequest $postBody
 523     * @param array $optParams Optional parameters.
 524     * @return Google_Service_Cloudresourcemanager_TestIamPermissionsResponse
 525     */
 526    public function testIamPermissions($resource, Google_Service_Cloudresourcemanager_TestIamPermissionsRequest $postBody, $optParams = array())
 527    {
 528      $params = array('resource' => $resource, 'postBody' => $postBody);
 529      $params = array_merge($params, $optParams);
 530      return $this->call('testIamPermissions', array($params), "Google_Service_Cloudresourcemanager_TestIamPermissionsResponse");
 531    }
 532  
 533    /**
 534     * Restores the project identified by the specified `project_id` (for example,
 535     * `my-project-123`). You can only use this method for a project that has a
 536     * lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects.v
 537     * 1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated
 538     * by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.pro
 539     * jects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be
 540     * restored. The caller must have modify permissions for this project.
 541     * (projects.undelete)
 542     *
 543     * @param string $projectId The project ID (for example, `foo-bar-123`).
 544     * Required.
 545     * @param array $optParams Optional parameters.
 546     * @return Google_Service_Cloudresourcemanager_Empty
 547     */
 548    public function undelete($projectId, $optParams = array())
 549    {
 550      $params = array('projectId' => $projectId);
 551      $params = array_merge($params, $optParams);
 552      return $this->call('undelete', array($params), "Google_Service_Cloudresourcemanager_Empty");
 553    }
 554  
 555    /**
 556     * Updates the attributes of the project identified by the specified
 557     * `project_id` (for example, `my-project-123`). The caller must have modify
 558     * permissions for this project. (projects.update)
 559     *
 560     * @param string $projectId The project ID (for example, `my-project-123`).
 561     * Required.
 562     * @param Google_Project $postBody
 563     * @param array $optParams Optional parameters.
 564     * @return Google_Service_Cloudresourcemanager_Project
 565     */
 566    public function update($projectId, Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array())
 567    {
 568      $params = array('projectId' => $projectId, 'postBody' => $postBody);
 569      $params = array_merge($params, $optParams);
 570      return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Project");
 571    }
 572  }
 573  
 574  
 575  
 576  
 577  class Google_Service_Cloudresourcemanager_Binding extends Google_Collection
 578  {
 579    protected $collection_key = 'members';
 580    protected $internal_gapi_mappings = array(
 581    );
 582    public $members;
 583    public $role;
 584  
 585  
 586    public function setMembers($members)
 587    {
 588      $this->members = $members;
 589    }
 590    public function getMembers()
 591    {
 592      return $this->members;
 593    }
 594    public function setRole($role)
 595    {
 596      $this->role = $role;
 597    }
 598    public function getRole()
 599    {
 600      return $this->role;
 601    }
 602  }
 603  
 604  class Google_Service_Cloudresourcemanager_Empty extends Google_Model
 605  {
 606  }
 607  
 608  class Google_Service_Cloudresourcemanager_GetIamPolicyRequest extends Google_Model
 609  {
 610  }
 611  
 612  class Google_Service_Cloudresourcemanager_ListOrganizationsResponse extends Google_Collection
 613  {
 614    protected $collection_key = 'organizations';
 615    protected $internal_gapi_mappings = array(
 616    );
 617    public $nextPageToken;
 618    protected $organizationsType = 'Google_Service_Cloudresourcemanager_Organization';
 619    protected $organizationsDataType = 'array';
 620  
 621  
 622    public function setNextPageToken($nextPageToken)
 623    {
 624      $this->nextPageToken = $nextPageToken;
 625    }
 626    public function getNextPageToken()
 627    {
 628      return $this->nextPageToken;
 629    }
 630    public function setOrganizations($organizations)
 631    {
 632      $this->organizations = $organizations;
 633    }
 634    public function getOrganizations()
 635    {
 636      return $this->organizations;
 637    }
 638  }
 639  
 640  class Google_Service_Cloudresourcemanager_ListProjectsResponse extends Google_Collection
 641  {
 642    protected $collection_key = 'projects';
 643    protected $internal_gapi_mappings = array(
 644    );
 645    public $nextPageToken;
 646    protected $projectsType = 'Google_Service_Cloudresourcemanager_Project';
 647    protected $projectsDataType = 'array';
 648  
 649  
 650    public function setNextPageToken($nextPageToken)
 651    {
 652      $this->nextPageToken = $nextPageToken;
 653    }
 654    public function getNextPageToken()
 655    {
 656      return $this->nextPageToken;
 657    }
 658    public function setProjects($projects)
 659    {
 660      $this->projects = $projects;
 661    }
 662    public function getProjects()
 663    {
 664      return $this->projects;
 665    }
 666  }
 667  
 668  class Google_Service_Cloudresourcemanager_Organization extends Google_Model
 669  {
 670    protected $internal_gapi_mappings = array(
 671    );
 672    public $displayName;
 673    public $organizationId;
 674    protected $ownerType = 'Google_Service_Cloudresourcemanager_OrganizationOwner';
 675    protected $ownerDataType = '';
 676  
 677  
 678    public function setDisplayName($displayName)
 679    {
 680      $this->displayName = $displayName;
 681    }
 682    public function getDisplayName()
 683    {
 684      return $this->displayName;
 685    }
 686    public function setOrganizationId($organizationId)
 687    {
 688      $this->organizationId = $organizationId;
 689    }
 690    public function getOrganizationId()
 691    {
 692      return $this->organizationId;
 693    }
 694    public function setOwner(Google_Service_Cloudresourcemanager_OrganizationOwner $owner)
 695    {
 696      $this->owner = $owner;
 697    }
 698    public function getOwner()
 699    {
 700      return $this->owner;
 701    }
 702  }
 703  
 704  class Google_Service_Cloudresourcemanager_OrganizationOwner extends Google_Model
 705  {
 706    protected $internal_gapi_mappings = array(
 707    );
 708    public $directoryCustomerId;
 709  
 710  
 711    public function setDirectoryCustomerId($directoryCustomerId)
 712    {
 713      $this->directoryCustomerId = $directoryCustomerId;
 714    }
 715    public function getDirectoryCustomerId()
 716    {
 717      return $this->directoryCustomerId;
 718    }
 719  }
 720  
 721  class Google_Service_Cloudresourcemanager_Policy extends Google_Collection
 722  {
 723    protected $collection_key = 'bindings';
 724    protected $internal_gapi_mappings = array(
 725    );
 726    protected $bindingsType = 'Google_Service_Cloudresourcemanager_Binding';
 727    protected $bindingsDataType = 'array';
 728    public $etag;
 729    public $version;
 730  
 731  
 732    public function setBindings($bindings)
 733    {
 734      $this->bindings = $bindings;
 735    }
 736    public function getBindings()
 737    {
 738      return $this->bindings;
 739    }
 740    public function setEtag($etag)
 741    {
 742      $this->etag = $etag;
 743    }
 744    public function getEtag()
 745    {
 746      return $this->etag;
 747    }
 748    public function setVersion($version)
 749    {
 750      $this->version = $version;
 751    }
 752    public function getVersion()
 753    {
 754      return $this->version;
 755    }
 756  }
 757  
 758  class Google_Service_Cloudresourcemanager_Project extends Google_Model
 759  {
 760    protected $internal_gapi_mappings = array(
 761    );
 762    public $createTime;
 763    public $labels;
 764    public $lifecycleState;
 765    public $name;
 766    protected $parentType = 'Google_Service_Cloudresourcemanager_ResourceId';
 767    protected $parentDataType = '';
 768    public $projectId;
 769    public $projectNumber;
 770  
 771  
 772    public function setCreateTime($createTime)
 773    {
 774      $this->createTime = $createTime;
 775    }
 776    public function getCreateTime()
 777    {
 778      return $this->createTime;
 779    }
 780    public function setLabels($labels)
 781    {
 782      $this->labels = $labels;
 783    }
 784    public function getLabels()
 785    {
 786      return $this->labels;
 787    }
 788    public function setLifecycleState($lifecycleState)
 789    {
 790      $this->lifecycleState = $lifecycleState;
 791    }
 792    public function getLifecycleState()
 793    {
 794      return $this->lifecycleState;
 795    }
 796    public function setName($name)
 797    {
 798      $this->name = $name;
 799    }
 800    public function getName()
 801    {
 802      return $this->name;
 803    }
 804    public function setParent(Google_Service_Cloudresourcemanager_ResourceId $parent)
 805    {
 806      $this->parent = $parent;
 807    }
 808    public function getParent()
 809    {
 810      return $this->parent;
 811    }
 812    public function setProjectId($projectId)
 813    {
 814      $this->projectId = $projectId;
 815    }
 816    public function getProjectId()
 817    {
 818      return $this->projectId;
 819    }
 820    public function setProjectNumber($projectNumber)
 821    {
 822      $this->projectNumber = $projectNumber;
 823    }
 824    public function getProjectNumber()
 825    {
 826      return $this->projectNumber;
 827    }
 828  }
 829  
 830  class Google_Service_Cloudresourcemanager_ProjectLabels extends Google_Model
 831  {
 832  }
 833  
 834  class Google_Service_Cloudresourcemanager_ResourceId extends Google_Model
 835  {
 836    protected $internal_gapi_mappings = array(
 837    );
 838    public $id;
 839    public $type;
 840  
 841  
 842    public function setId($id)
 843    {
 844      $this->id = $id;
 845    }
 846    public function getId()
 847    {
 848      return $this->id;
 849    }
 850    public function setType($type)
 851    {
 852      $this->type = $type;
 853    }
 854    public function getType()
 855    {
 856      return $this->type;
 857    }
 858  }
 859  
 860  class Google_Service_Cloudresourcemanager_SetIamPolicyRequest extends Google_Model
 861  {
 862    protected $internal_gapi_mappings = array(
 863    );
 864    protected $policyType = 'Google_Service_Cloudresourcemanager_Policy';
 865    protected $policyDataType = '';
 866  
 867  
 868    public function setPolicy(Google_Service_Cloudresourcemanager_Policy $policy)
 869    {
 870      $this->policy = $policy;
 871    }
 872    public function getPolicy()
 873    {
 874      return $this->policy;
 875    }
 876  }
 877  
 878  class Google_Service_Cloudresourcemanager_TestIamPermissionsRequest extends Google_Collection
 879  {
 880    protected $collection_key = 'permissions';
 881    protected $internal_gapi_mappings = array(
 882    );
 883    public $permissions;
 884  
 885  
 886    public function setPermissions($permissions)
 887    {
 888      $this->permissions = $permissions;
 889    }
 890    public function getPermissions()
 891    {
 892      return $this->permissions;
 893    }
 894  }
 895  
 896  class Google_Service_Cloudresourcemanager_TestIamPermissionsResponse extends Google_Collection
 897  {
 898    protected $collection_key = 'permissions';
 899    protected $internal_gapi_mappings = array(
 900    );
 901    public $permissions;
 902  
 903  
 904    public function setPermissions($permissions)
 905    {
 906      $this->permissions = $permissions;
 907    }
 908    public function getPermissions()
 909    {
 910      return $this->permissions;
 911    }
 912  }