2018-05-01 14:43:32 +02:00

504 lines
16 KiB
PHP

<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* Service definition for Iam (v1).
*
* <p>
* Manages identity and access control for Google Cloud Platform resources,
* including the creation of service accounts, which you can use to authenticate
* to Google and make API calls.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://cloud.google.com/iam/" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_Iam extends Google_Service
{
/** View and manage your data across Google Cloud Platform services. */
const CLOUD_PLATFORM =
"https://www.googleapis.com/auth/cloud-platform";
public $iamPolicies;
public $organizations_roles;
public $permissions;
public $projects_roles;
public $projects_serviceAccounts;
public $projects_serviceAccounts_keys;
public $roles;
/**
* Constructs the internal representation of the Iam service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->rootUrl = 'https://iam.googleapis.com/';
$this->servicePath = '';
$this->version = 'v1';
$this->serviceName = 'iam';
$this->iamPolicies = new Google_Service_Iam_Resource_IamPolicies(
$this,
$this->serviceName,
'iamPolicies',
array(
'methods' => array(
'queryAuditableServices' => array(
'path' => 'v1/iamPolicies:queryAuditableServices',
'httpMethod' => 'POST',
'parameters' => array(),
),
)
)
);
$this->organizations_roles = new Google_Service_Iam_Resource_OrganizationsRoles(
$this,
$this->serviceName,
'roles',
array(
'methods' => array(
'create' => array(
'path' => 'v1/{+parent}/roles',
'httpMethod' => 'POST',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'delete' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'etag' => array(
'location' => 'query',
'type' => 'string',
),
),
),'get' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => 'v1/{+parent}/roles',
'httpMethod' => 'GET',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'showDeleted' => array(
'location' => 'query',
'type' => 'boolean',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'view' => array(
'location' => 'query',
'type' => 'string',
),
),
),'patch' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'updateMask' => array(
'location' => 'query',
'type' => 'string',
),
),
),'undelete' => array(
'path' => 'v1/{+name}:undelete',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->permissions = new Google_Service_Iam_Resource_Permissions(
$this,
$this->serviceName,
'permissions',
array(
'methods' => array(
'queryTestablePermissions' => array(
'path' => 'v1/permissions:queryTestablePermissions',
'httpMethod' => 'POST',
'parameters' => array(),
),
)
)
);
$this->projects_roles = new Google_Service_Iam_Resource_ProjectsRoles(
$this,
$this->serviceName,
'roles',
array(
'methods' => array(
'create' => array(
'path' => 'v1/{+parent}/roles',
'httpMethod' => 'POST',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'delete' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'etag' => array(
'location' => 'query',
'type' => 'string',
),
),
),'get' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => 'v1/{+parent}/roles',
'httpMethod' => 'GET',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'showDeleted' => array(
'location' => 'query',
'type' => 'boolean',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'view' => array(
'location' => 'query',
'type' => 'string',
),
),
),'patch' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'updateMask' => array(
'location' => 'query',
'type' => 'string',
),
),
),'undelete' => array(
'path' => 'v1/{+name}:undelete',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->projects_serviceAccounts = new Google_Service_Iam_Resource_ProjectsServiceAccounts(
$this,
$this->serviceName,
'serviceAccounts',
array(
'methods' => array(
'create' => array(
'path' => 'v1/{+name}/serviceAccounts',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'delete' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'getIamPolicy' => array(
'path' => 'v1/{+resource}:getIamPolicy',
'httpMethod' => 'POST',
'parameters' => array(
'resource' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => 'v1/{+name}/serviceAccounts',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
),
),'setIamPolicy' => array(
'path' => 'v1/{+resource}:setIamPolicy',
'httpMethod' => 'POST',
'parameters' => array(
'resource' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'signBlob' => array(
'path' => 'v1/{+name}:signBlob',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'signJwt' => array(
'path' => 'v1/{+name}:signJwt',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'testIamPermissions' => array(
'path' => 'v1/{+resource}:testIamPermissions',
'httpMethod' => 'POST',
'parameters' => array(
'resource' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'update' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'PUT',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->projects_serviceAccounts_keys = new Google_Service_Iam_Resource_ProjectsServiceAccountsKeys(
$this,
$this->serviceName,
'keys',
array(
'methods' => array(
'create' => array(
'path' => 'v1/{+name}/keys',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'delete' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'DELETE',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'publicKeyType' => array(
'location' => 'query',
'type' => 'string',
),
),
),'list' => array(
'path' => 'v1/{+name}/keys',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'keyTypes' => array(
'location' => 'query',
'type' => 'string',
'repeated' => true,
),
),
),
)
)
);
$this->roles = new Google_Service_Iam_Resource_Roles(
$this,
$this->serviceName,
'roles',
array(
'methods' => array(
'get' => array(
'path' => 'v1/{+name}',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => 'v1/roles',
'httpMethod' => 'GET',
'parameters' => array(
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'view' => array(
'location' => 'query',
'type' => 'string',
),
'parent' => array(
'location' => 'query',
'type' => 'string',
),
'showDeleted' => array(
'location' => 'query',
'type' => 'boolean',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
),
),'queryGrantableRoles' => array(
'path' => 'v1/roles:queryGrantableRoles',
'httpMethod' => 'POST',
'parameters' => array(),
),
)
)
);
}
}