Initial commit

This commit is contained in:
Caribana
2017-05-26 11:41:26 +02:00
commit 61c24500af
6264 changed files with 645934 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_AuditData extends Google_Model
{
protected $policyDeltaType = 'Google_Service_Iam_PolicyDelta';
protected $policyDeltaDataType = '';
public function setPolicyDelta(Google_Service_Iam_PolicyDelta $policyDelta)
{
$this->policyDelta = $policyDelta;
}
public function getPolicyDelta()
{
return $this->policyDelta;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_Binding extends Google_Collection
{
protected $collection_key = 'members';
public $members;
public $role;
public function setMembers($members)
{
$this->members = $members;
}
public function getMembers()
{
return $this->members;
}
public function setRole($role)
{
$this->role = $role;
}
public function getRole()
{
return $this->role;
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_BindingDelta extends Google_Model
{
public $action;
public $member;
public $role;
public function setAction($action)
{
$this->action = $action;
}
public function getAction()
{
return $this->action;
}
public function setMember($member)
{
$this->member = $member;
}
public function getMember()
{
return $this->member;
}
public function setRole($role)
{
$this->role = $role;
}
public function getRole()
{
return $this->role;
}
}

View File

@@ -0,0 +1,20 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_CloudAuditOptions extends Google_Model
{
}

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_Condition extends Google_Collection
{
protected $collection_key = 'values';
public $iam;
public $op;
public $svc;
public $sys;
public $value;
public $values;
public function setIam($iam)
{
$this->iam = $iam;
}
public function getIam()
{
return $this->iam;
}
public function setOp($op)
{
$this->op = $op;
}
public function getOp()
{
return $this->op;
}
public function setSvc($svc)
{
$this->svc = $svc;
}
public function getSvc()
{
return $this->svc;
}
public function setSys($sys)
{
$this->sys = $sys;
}
public function getSys()
{
return $this->sys;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
public function setValues($values)
{
$this->values = $values;
}
public function getValues()
{
return $this->values;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_CounterOptions extends Google_Model
{
public $field;
public $metric;
public function setField($field)
{
$this->field = $field;
}
public function getField()
{
return $this->field;
}
public function setMetric($metric)
{
$this->metric = $metric;
}
public function getMetric()
{
return $this->metric;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_CreateServiceAccountKeyRequest extends Google_Model
{
public $keyAlgorithm;
public $privateKeyType;
public function setKeyAlgorithm($keyAlgorithm)
{
$this->keyAlgorithm = $keyAlgorithm;
}
public function getKeyAlgorithm()
{
return $this->keyAlgorithm;
}
public function setPrivateKeyType($privateKeyType)
{
$this->privateKeyType = $privateKeyType;
}
public function getPrivateKeyType()
{
return $this->privateKeyType;
}
}

View File

@@ -0,0 +1,40 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_CreateServiceAccountRequest extends Google_Model
{
public $accountId;
protected $serviceAccountType = 'Google_Service_Iam_ServiceAccount';
protected $serviceAccountDataType = '';
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
public function getAccountId()
{
return $this->accountId;
}
public function setServiceAccount(Google_Service_Iam_ServiceAccount $serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
public function getServiceAccount()
{
return $this->serviceAccount;
}
}

View File

@@ -0,0 +1,20 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_DataAccessOptions extends Google_Model
{
}

View File

@@ -0,0 +1,20 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_IamEmpty extends Google_Model
{
}

View File

@@ -0,0 +1,32 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_ListServiceAccountKeysResponse extends Google_Collection
{
protected $collection_key = 'keys';
protected $keysType = 'Google_Service_Iam_ServiceAccountKey';
protected $keysDataType = 'array';
public function setKeys($keys)
{
$this->keys = $keys;
}
public function getKeys()
{
return $this->keys;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_ListServiceAccountsResponse extends Google_Collection
{
protected $collection_key = 'accounts';
protected $accountsType = 'Google_Service_Iam_ServiceAccount';
protected $accountsDataType = 'array';
public $nextPageToken;
public function setAccounts($accounts)
{
$this->accounts = $accounts;
}
public function getAccounts()
{
return $this->accounts;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_LogConfig extends Google_Model
{
protected $cloudAuditType = 'Google_Service_Iam_CloudAuditOptions';
protected $cloudAuditDataType = '';
protected $counterType = 'Google_Service_Iam_CounterOptions';
protected $counterDataType = '';
protected $dataAccessType = 'Google_Service_Iam_DataAccessOptions';
protected $dataAccessDataType = '';
public function setCloudAudit(Google_Service_Iam_CloudAuditOptions $cloudAudit)
{
$this->cloudAudit = $cloudAudit;
}
public function getCloudAudit()
{
return $this->cloudAudit;
}
public function setCounter(Google_Service_Iam_CounterOptions $counter)
{
$this->counter = $counter;
}
public function getCounter()
{
return $this->counter;
}
public function setDataAccess(Google_Service_Iam_DataAccessOptions $dataAccess)
{
$this->dataAccess = $dataAccess;
}
public function getDataAccess()
{
return $this->dataAccess;
}
}

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_Policy extends Google_Collection
{
protected $collection_key = 'bindings';
protected $bindingsType = 'Google_Service_Iam_Binding';
protected $bindingsDataType = 'array';
public $etag;
public $version;
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
public function getBindings()
{
return $this->bindings;
}
public function setEtag($etag)
{
$this->etag = $etag;
}
public function getEtag()
{
return $this->etag;
}
public function setVersion($version)
{
$this->version = $version;
}
public function getVersion()
{
return $this->version;
}
}

View File

@@ -0,0 +1,32 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_PolicyDelta extends Google_Collection
{
protected $collection_key = 'bindingDeltas';
protected $bindingDeltasType = 'Google_Service_Iam_BindingDelta';
protected $bindingDeltasDataType = 'array';
public function setBindingDeltas($bindingDeltas)
{
$this->bindingDeltas = $bindingDeltas;
}
public function getBindingDeltas()
{
return $this->bindingDeltas;
}
}

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_QueryGrantableRolesRequest extends Google_Model
{
public $fullResourceName;
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
public function getFullResourceName()
{
return $this->fullResourceName;
}
}

View File

@@ -0,0 +1,32 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_QueryGrantableRolesResponse extends Google_Collection
{
protected $collection_key = 'roles';
protected $rolesType = 'Google_Service_Iam_Role';
protected $rolesDataType = 'array';
public function setRoles($roles)
{
$this->roles = $roles;
}
public function getRoles()
{
return $this->roles;
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google_Service_Iam(...);
* $projects = $iamService->projects;
* </code>
*/
class Google_Service_Iam_Resource_Projects extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,215 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "serviceAccounts" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google_Service_Iam(...);
* $serviceAccounts = $iamService->serviceAccounts;
* </code>
*/
class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service_Resource
{
/**
* Creates a ServiceAccount and returns it. (serviceAccounts.create)
*
* @param string $name Required. The resource name of the project associated
* with the service accounts, such as `projects/my-project-123`.
* @param Google_Service_Iam_CreateServiceAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_ServiceAccount
*/
public function create($name, Google_Service_Iam_CreateServiceAccountRequest $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Iam_ServiceAccount");
}
/**
* Deletes a ServiceAccount. (serviceAccounts.delete)
*
* @param string $name The resource name of the service account in the following
* format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
* Using `-` as a wildcard for the project will infer the project from the
* account. The `account` value can be the `email` address or the `unique_id` of
* the service account.
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_IamEmpty
*/
public function delete($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Iam_IamEmpty");
}
/**
* Gets a ServiceAccount. (serviceAccounts.get)
*
* @param string $name The resource name of the service account in the following
* format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
* Using `-` as a wildcard for the project will infer the project from the
* account. The `account` value can be the `email` address or the `unique_id` of
* the service account.
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_ServiceAccount
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Iam_ServiceAccount");
}
/**
* Returns the IAM access control policy for a ServiceAccount.
* (serviceAccounts.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. `resource` is usually specified as a path. For example, a Project
* resource is specified as `projects/{project}`.
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_Policy
*/
public function getIamPolicy($resource, $optParams = array())
{
$params = array('resource' => $resource);
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', array($params), "Google_Service_Iam_Policy");
}
/**
* Lists ServiceAccounts for a project.
* (serviceAccounts.listProjectsServiceAccounts)
*
* @param string $name Required. The resource name of the project associated
* with the service accounts, such as `projects/my-project-123`.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional pagination token returned in an earlier
* ListServiceAccountsResponse.next_page_token.
* @opt_param int pageSize Optional limit on the number of service accounts to
* include in the response. Further accounts can subsequently be obtained by
* including the ListServiceAccountsResponse.next_page_token in a subsequent
* request.
* @return Google_Service_Iam_ListServiceAccountsResponse
*/
public function listProjectsServiceAccounts($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountsResponse");
}
/**
* Sets the IAM access control policy for a ServiceAccount.
* (serviceAccounts.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. `resource` is usually specified as a path. For example, a Project
* resource is specified as `projects/{project}`.
* @param Google_Service_Iam_SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_Policy
*/
public function setIamPolicy($resource, Google_Service_Iam_SetIamPolicyRequest $postBody, $optParams = array())
{
$params = array('resource' => $resource, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', array($params), "Google_Service_Iam_Policy");
}
/**
* Signs a blob using a service account's system-managed private key.
* (serviceAccounts.signBlob)
*
* @param string $name The resource name of the service account in the following
* format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
* Using `-` as a wildcard for the project will infer the project from the
* account. The `account` value can be the `email` address or the `unique_id` of
* the service account.
* @param Google_Service_Iam_SignBlobRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_SignBlobResponse
*/
public function signBlob($name, Google_Service_Iam_SignBlobRequest $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('signBlob', array($params), "Google_Service_Iam_SignBlobResponse");
}
/**
* Signs a JWT using a service account's system-managed private key.
*
* If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an an
* expiry time of one hour by default. If you request an expiry time of more
* than one hour, the request will fail. (serviceAccounts.signJwt)
*
* @param string $name The resource name of the service account in the following
* format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
* Using `-` as a wildcard for the project will infer the project from the
* account. The `account` value can be the `email` address or the `unique_id` of
* the service account.
* @param Google_Service_Iam_SignJwtRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_SignJwtResponse
*/
public function signJwt($name, Google_Service_Iam_SignJwtRequest $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('signJwt', array($params), "Google_Service_Iam_SignJwtResponse");
}
/**
* Tests the specified permissions against the IAM access control policy for a
* ServiceAccount. (serviceAccounts.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. `resource` is usually specified as a path. For example, a
* Project resource is specified as `projects/{project}`.
* @param Google_Service_Iam_TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_TestIamPermissionsResponse
*/
public function testIamPermissions($resource, Google_Service_Iam_TestIamPermissionsRequest $postBody, $optParams = array())
{
$params = array('resource' => $resource, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', array($params), "Google_Service_Iam_TestIamPermissionsResponse");
}
/**
* Updates a ServiceAccount.
*
* Currently, only the following fields are updatable: `display_name` . The
* `etag` is mandatory. (serviceAccounts.update)
*
* @param string $name The resource name of the service account in the following
* format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
*
* Requests using `-` as a wildcard for the project will infer the project from
* the `account` and the `account` value can be the `email` address or the
* `unique_id` of the service account.
*
* In responses the resource name will always be in the format
* `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
* @param Google_Service_Iam_ServiceAccount $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_ServiceAccount
*/
public function update($name, Google_Service_Iam_ServiceAccount $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Iam_ServiceAccount");
}
}

View File

@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "keys" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google_Service_Iam(...);
* $keys = $iamService->keys;
* </code>
*/
class Google_Service_Iam_Resource_ProjectsServiceAccountsKeys extends Google_Service_Resource
{
/**
* Creates a ServiceAccountKey and returns it. (keys.create)
*
* @param string $name The resource name of the service account in the following
* format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
* Using `-` as a wildcard for the project will infer the project from the
* account. The `account` value can be the `email` address or the `unique_id` of
* the service account.
* @param Google_Service_Iam_CreateServiceAccountKeyRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_ServiceAccountKey
*/
public function create($name, Google_Service_Iam_CreateServiceAccountKeyRequest $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Iam_ServiceAccountKey");
}
/**
* Deletes a ServiceAccountKey. (keys.delete)
*
* @param string $name The resource name of the service account key in the
* following format:
* `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}`.
* Using `-` as a wildcard for the project will infer the project from the
* account. The `account` value can be the `email` address or the `unique_id` of
* the service account.
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_IamEmpty
*/
public function delete($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Iam_IamEmpty");
}
/**
* Gets the ServiceAccountKey by key id. (keys.get)
*
* @param string $name The resource name of the service account key in the
* following format:
* `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}/keys/{key}`.
*
* Using `-` as a wildcard for the project will infer the project from the
* account. The `account` value can be the `email` address or the `unique_id` of
* the service account.
* @param array $optParams Optional parameters.
*
* @opt_param string publicKeyType The output format of the public key
* requested. X509_PEM is the default output format.
* @return Google_Service_Iam_ServiceAccountKey
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Iam_ServiceAccountKey");
}
/**
* Lists ServiceAccountKeys. (keys.listProjectsServiceAccountsKeys)
*
* @param string $name The resource name of the service account in the following
* format: `projects/{PROJECT_ID}/serviceAccounts/{SERVICE_ACCOUNT_EMAIL}`.
*
* Using `-` as a wildcard for the project, will infer the project from the
* account. The `account` value can be the `email` address or the `unique_id` of
* the service account.
* @param array $optParams Optional parameters.
*
* @opt_param string keyTypes Filters the types of keys the user wants to
* include in the list response. Duplicate key types are not allowed. If no key
* type is provided, all keys are returned.
* @return Google_Service_Iam_ListServiceAccountKeysResponse
*/
public function listProjectsServiceAccountsKeys($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountKeysResponse");
}
}

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "roles" collection of methods.
* Typical usage is:
* <code>
* $iamService = new Google_Service_Iam(...);
* $roles = $iamService->roles;
* </code>
*/
class Google_Service_Iam_Resource_Roles extends Google_Service_Resource
{
/**
* Queries roles that can be granted on a particular resource. A role is
* grantable if it can be used as the role in a binding for a policy for that
* resource. (roles.queryGrantableRoles)
*
* @param Google_Service_Iam_QueryGrantableRolesRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_QueryGrantableRolesResponse
*/
public function queryGrantableRoles(Google_Service_Iam_QueryGrantableRolesRequest $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('queryGrantableRoles', array($params), "Google_Service_Iam_QueryGrantableRolesResponse");
}
}

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_Role extends Google_Model
{
public $description;
public $name;
public $title;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}

View File

@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_Rule extends Google_Collection
{
protected $collection_key = 'permissions';
public $action;
protected $conditionsType = 'Google_Service_Iam_Condition';
protected $conditionsDataType = 'array';
public $description;
public $in;
protected $logConfigType = 'Google_Service_Iam_LogConfig';
protected $logConfigDataType = 'array';
public $notIn;
public $permissions;
public function setAction($action)
{
$this->action = $action;
}
public function getAction()
{
return $this->action;
}
public function setConditions($conditions)
{
$this->conditions = $conditions;
}
public function getConditions()
{
return $this->conditions;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setIn($in)
{
$this->in = $in;
}
public function getIn()
{
return $this->in;
}
public function setLogConfig($logConfig)
{
$this->logConfig = $logConfig;
}
public function getLogConfig()
{
return $this->logConfig;
}
public function setNotIn($notIn)
{
$this->notIn = $notIn;
}
public function getNotIn()
{
return $this->notIn;
}
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
public function getPermissions()
{
return $this->permissions;
}
}

View File

@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_ServiceAccount extends Google_Model
{
public $displayName;
public $email;
public $etag;
public $name;
public $oauth2ClientId;
public $projectId;
public $uniqueId;
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
public function getDisplayName()
{
return $this->displayName;
}
public function setEmail($email)
{
$this->email = $email;
}
public function getEmail()
{
return $this->email;
}
public function setEtag($etag)
{
$this->etag = $etag;
}
public function getEtag()
{
return $this->etag;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setOauth2ClientId($oauth2ClientId)
{
$this->oauth2ClientId = $oauth2ClientId;
}
public function getOauth2ClientId()
{
return $this->oauth2ClientId;
}
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
public function getProjectId()
{
return $this->projectId;
}
public function setUniqueId($uniqueId)
{
$this->uniqueId = $uniqueId;
}
public function getUniqueId()
{
return $this->uniqueId;
}
}

View File

@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_ServiceAccountKey extends Google_Model
{
public $keyAlgorithm;
public $name;
public $privateKeyData;
public $privateKeyType;
public $publicKeyData;
public $validAfterTime;
public $validBeforeTime;
public function setKeyAlgorithm($keyAlgorithm)
{
$this->keyAlgorithm = $keyAlgorithm;
}
public function getKeyAlgorithm()
{
return $this->keyAlgorithm;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setPrivateKeyData($privateKeyData)
{
$this->privateKeyData = $privateKeyData;
}
public function getPrivateKeyData()
{
return $this->privateKeyData;
}
public function setPrivateKeyType($privateKeyType)
{
$this->privateKeyType = $privateKeyType;
}
public function getPrivateKeyType()
{
return $this->privateKeyType;
}
public function setPublicKeyData($publicKeyData)
{
$this->publicKeyData = $publicKeyData;
}
public function getPublicKeyData()
{
return $this->publicKeyData;
}
public function setValidAfterTime($validAfterTime)
{
$this->validAfterTime = $validAfterTime;
}
public function getValidAfterTime()
{
return $this->validAfterTime;
}
public function setValidBeforeTime($validBeforeTime)
{
$this->validBeforeTime = $validBeforeTime;
}
public function getValidBeforeTime()
{
return $this->validBeforeTime;
}
}

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_SetIamPolicyRequest extends Google_Model
{
protected $policyType = 'Google_Service_Iam_Policy';
protected $policyDataType = '';
public function setPolicy(Google_Service_Iam_Policy $policy)
{
$this->policy = $policy;
}
public function getPolicy()
{
return $this->policy;
}
}

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_SignBlobRequest extends Google_Model
{
public $bytesToSign;
public function setBytesToSign($bytesToSign)
{
$this->bytesToSign = $bytesToSign;
}
public function getBytesToSign()
{
return $this->bytesToSign;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_SignBlobResponse extends Google_Model
{
public $keyId;
public $signature;
public function setKeyId($keyId)
{
$this->keyId = $keyId;
}
public function getKeyId()
{
return $this->keyId;
}
public function setSignature($signature)
{
$this->signature = $signature;
}
public function getSignature()
{
return $this->signature;
}
}

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_SignJwtRequest extends Google_Model
{
public $payload;
public function setPayload($payload)
{
$this->payload = $payload;
}
public function getPayload()
{
return $this->payload;
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_SignJwtResponse extends Google_Model
{
public $keyId;
public $signedJwt;
public function setKeyId($keyId)
{
$this->keyId = $keyId;
}
public function getKeyId()
{
return $this->keyId;
}
public function setSignedJwt($signedJwt)
{
$this->signedJwt = $signedJwt;
}
public function getSignedJwt()
{
return $this->signedJwt;
}
}

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_TestIamPermissionsRequest extends Google_Collection
{
protected $collection_key = 'permissions';
public $permissions;
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
public function getPermissions()
{
return $this->permissions;
}
}

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_Iam_TestIamPermissionsResponse extends Google_Collection
{
protected $collection_key = 'permissions';
public $permissions;
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
public function getPermissions()
{
return $this->permissions;
}
}