Mise à jour des librairies

This commit is contained in:
lars
2019-03-10 23:30:23 +01:00
parent 2040b7be39
commit 7df3d72953
3603 changed files with 233169 additions and 107764 deletions

View File

@@ -18,9 +18,25 @@
class Google_Service_Iam_Binding extends Google_Collection
{
protected $collection_key = 'members';
protected $conditionType = 'Google_Service_Iam_Expr';
protected $conditionDataType = '';
public $members;
public $role;
/**
* @param Google_Service_Iam_Expr
*/
public function setCondition(Google_Service_Iam_Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Google_Service_Iam_Expr
*/
public function getCondition()
{
return $this->condition;
}
public function setMembers($members)
{
$this->members = $members;

View File

@@ -18,6 +18,8 @@
class Google_Service_Iam_BindingDelta extends Google_Model
{
public $action;
protected $conditionType = 'Google_Service_Iam_Expr';
protected $conditionDataType = '';
public $member;
public $role;
@@ -29,6 +31,20 @@ class Google_Service_Iam_BindingDelta extends Google_Model
{
return $this->action;
}
/**
* @param Google_Service_Iam_Expr
*/
public function setCondition(Google_Service_Iam_Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Google_Service_Iam_Expr
*/
public function getCondition()
{
return $this->condition;
}
public function setMember($member)
{
$this->member = $member;

View File

@@ -0,0 +1,57 @@
<?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.
*/
class Google_Service_Iam_Expr extends Google_Model
{
public $description;
public $expression;
public $location;
public $title;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setExpression($expression)
{
$this->expression = $expression;
}
public function getExpression()
{
return $this->expression;
}
public function setLocation($location)
{
$this->location = $location;
}
public function getLocation()
{
return $this->location;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}

View File

@@ -0,0 +1,87 @@
<?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.
*/
class Google_Service_Iam_LintPolicyRequest extends Google_Model
{
protected $bindingType = 'Google_Service_Iam_Binding';
protected $bindingDataType = '';
protected $conditionType = 'Google_Service_Iam_Expr';
protected $conditionDataType = '';
public $context;
public $fullResourceName;
protected $policyType = 'Google_Service_Iam_Policy';
protected $policyDataType = '';
/**
* @param Google_Service_Iam_Binding
*/
public function setBinding(Google_Service_Iam_Binding $binding)
{
$this->binding = $binding;
}
/**
* @return Google_Service_Iam_Binding
*/
public function getBinding()
{
return $this->binding;
}
/**
* @param Google_Service_Iam_Expr
*/
public function setCondition(Google_Service_Iam_Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Google_Service_Iam_Expr
*/
public function getCondition()
{
return $this->condition;
}
public function setContext($context)
{
$this->context = $context;
}
public function getContext()
{
return $this->context;
}
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* @param Google_Service_Iam_Policy
*/
public function setPolicy(Google_Service_Iam_Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Google_Service_Iam_Policy
*/
public function getPolicy()
{
return $this->policy;
}
}

View File

@@ -0,0 +1,38 @@
<?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.
*/
class Google_Service_Iam_LintPolicyResponse extends Google_Collection
{
protected $collection_key = 'lintResults';
protected $lintResultsType = 'Google_Service_Iam_LintResult';
protected $lintResultsDataType = 'array';
/**
* @param Google_Service_Iam_LintResult
*/
public function setLintResults($lintResults)
{
$this->lintResults = $lintResults;
}
/**
* @return Google_Service_Iam_LintResult
*/
public function getLintResults()
{
return $this->lintResults;
}
}

View File

@@ -0,0 +1,84 @@
<?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.
*/
class Google_Service_Iam_LintResult extends Google_Model
{
public $bindingOrdinal;
public $debugMessage;
public $fieldName;
public $level;
public $locationOffset;
public $severity;
public $validationUnitName;
public function setBindingOrdinal($bindingOrdinal)
{
$this->bindingOrdinal = $bindingOrdinal;
}
public function getBindingOrdinal()
{
return $this->bindingOrdinal;
}
public function setDebugMessage($debugMessage)
{
$this->debugMessage = $debugMessage;
}
public function getDebugMessage()
{
return $this->debugMessage;
}
public function setFieldName($fieldName)
{
$this->fieldName = $fieldName;
}
public function getFieldName()
{
return $this->fieldName;
}
public function setLevel($level)
{
$this->level = $level;
}
public function getLevel()
{
return $this->level;
}
public function setLocationOffset($locationOffset)
{
$this->locationOffset = $locationOffset;
}
public function getLocationOffset()
{
return $this->locationOffset;
}
public function setSeverity($severity)
{
$this->severity = $severity;
}
public function getSeverity()
{
return $this->severity;
}
public function setValidationUnitName($validationUnitName)
{
$this->validationUnitName = $validationUnitName;
}
public function getValidationUnitName()
{
return $this->validationUnitName;
}
}

View File

@@ -25,6 +25,39 @@
*/
class Google_Service_Iam_Resource_IamPolicies extends Google_Service_Resource
{
/**
* Lints a Cloud IAM policy object or its sub fields. Currently supports
* google.iam.v1.Policy, google.iam.v1.Binding and
* google.iam.v1.Binding.condition.
*
* Each lint operation consists of multiple lint validation units. Validation
* units have the following properties:
*
* - Each unit inspects the input object in regard to a particular linting
* aspect and issues a google.iam.admin.v1.LintResult disclosing the result. -
* Domain of discourse of each unit can be either google.iam.v1.Policy,
* google.iam.v1.Binding, or google.iam.v1.Binding.condition depending on the
* purpose of the validation. - A unit may require additional data (like the
* list of all possible enumerable values of a particular attribute used in
* the policy instance) which shall be provided by the caller. Refer to the
* comments of google.iam.admin.v1.LintPolicyRequest.context for more details.
*
* The set of applicable validation units is determined by the Cloud IAM server
* and is not configurable.
*
* Regardless of any lint issues or their severities, successful calls to
* `lintPolicy` return an HTTP 200 OK status code. (iamPolicies.lintPolicy)
*
* @param Google_Service_Iam_LintPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_LintPolicyResponse
*/
public function lintPolicy(Google_Service_Iam_LintPolicyRequest $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('lintPolicy', array($params), "Google_Service_Iam_LintPolicyResponse");
}
/**
* Returns a list of services that support service level audit logging
* configuration for the given resource. (iamPolicies.queryAuditableServices)

View File

@@ -91,7 +91,10 @@ class Google_Service_Iam_Resource_OrganizationsRoles extends Google_Service_Reso
* ListRolesResponse.
* @opt_param int pageSize Optional limit on the number of roles to include in
* the response.
* @opt_param string view Optional view for the returned Role objects.
* @opt_param string view Optional view for the returned Role objects. When
* `FULL` is specified, the `includedPermissions` field is returned, which
* includes a list of all permissions in the role. The default value is `BASIC`,
* which does not return the `includedPermissions` field.
* @return Google_Service_Iam_ListRolesResponse
*/
public function listOrganizationsRoles($parent, $optParams = array())

View File

@@ -91,7 +91,10 @@ class Google_Service_Iam_Resource_ProjectsRoles extends Google_Service_Resource
* ListRolesResponse.
* @opt_param int pageSize Optional limit on the number of roles to include in
* the response.
* @opt_param string view Optional view for the returned Role objects.
* @opt_param string view Optional view for the returned Role objects. When
* `FULL` is specified, the `includedPermissions` field is returned, which
* includes a list of all permissions in the role. The default value is `BASIC`,
* which does not return the `includedPermissions` field.
* @return Google_Service_Iam_ListRolesResponse
*/
public function listProjectsRoles($parent, $optParams = array())

View File

@@ -75,7 +75,18 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service
return $this->call('get', array($params), "Google_Service_Iam_ServiceAccount");
}
/**
* Returns the IAM access control policy for a ServiceAccount.
* Returns the Cloud IAM access control policy for a ServiceAccount.
*
* Note: Service accounts are both [resources and identities](/iam/docs/service-
* accounts#service_account_permissions). This method treats the service account
* as a resource. It returns the Cloud IAM policy that reflects what members
* have access to the service account.
*
* This method does not return what resources the service account has access to.
* To see if a service account has access to a resource, call the `getIamPolicy`
* method on the target resource. For example, to view grants for a project,
* call the [projects.getIamPolicy](/resource-
* manager/reference/rest/v1/projects/getIamPolicy) method.
* (serviceAccounts.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
@@ -98,12 +109,12 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service
* 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.
* @opt_param string pageToken Optional pagination token returned in an earlier
* ListServiceAccountsResponse.next_page_token.
* @return Google_Service_Iam_ListServiceAccountsResponse
*/
public function listProjectsServiceAccounts($name, $optParams = array())
@@ -113,7 +124,19 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service
return $this->call('list', array($params), "Google_Service_Iam_ListServiceAccountsResponse");
}
/**
* Sets the IAM access control policy for a ServiceAccount.
* Sets the Cloud IAM access control policy for a ServiceAccount.
*
* Note: Service accounts are both [resources and identities](/iam/docs/service-
* accounts#service_account_permissions). This method treats the service account
* as a resource. Use it to grant members access to the service account, such as
* when they need to impersonate it.
*
* This method does not grant the service account access to other resources,
* such as projects. To grant a service account access to resources, include the
* service account in the Cloud IAM policy for the desired resource, then call
* the appropriate `setIamPolicy` method on the target resource. For example, to
* grant a service account access to a project, call the [projects.setIamPolicy
* ](/resource-manager/reference/rest/v1/projects/setIamPolicy) method.
* (serviceAccounts.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
@@ -130,6 +153,10 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service
return $this->call('setIamPolicy', array($params), "Google_Service_Iam_Policy");
}
/**
* **Note**: This method is in the process of being deprecated. Call the [`signB
* lob()`](/iam/credentials/reference/rest/v1/projects.serviceAccounts/signBlob)
* method of the Cloud IAM Service Account Credentials API instead.
*
* Signs a blob using a service account's system-managed private key.
* (serviceAccounts.signBlob)
*
@@ -149,6 +176,10 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service
return $this->call('signBlob', array($params), "Google_Service_Iam_SignBlobResponse");
}
/**
* **Note**: This method is in the process of being deprecated. Call the [`signJ
* wt()`](/iam/credentials/reference/rest/v1/projects.serviceAccounts/signJwt)
* method of the Cloud IAM Service Account Credentials API instead.
*
* 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
@@ -188,6 +219,26 @@ class Google_Service_Iam_Resource_ProjectsServiceAccounts extends Google_Service
return $this->call('testIamPermissions', array($params), "Google_Service_Iam_TestIamPermissionsResponse");
}
/**
* Restores a deleted ServiceAccount. (serviceAccounts.undelete)
*
* @param string $name The resource name of the service account in the following
* format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}'. Using
* `-` as a wildcard for the `PROJECT_ID` will infer the project from the
* account.
* @param Google_Service_Iam_UndeleteServiceAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Iam_UndeleteServiceAccountResponse
*/
public function undelete($name, Google_Service_Iam_UndeleteServiceAccountRequest $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('undelete', array($params), "Google_Service_Iam_UndeleteServiceAccountResponse");
}
/**
* Note: This method is in the process of being deprecated. Use
* PatchServiceAccount instead.
*
* Updates a ServiceAccount.
*
* Currently, only the following fields are updatable: `display_name` . The

View File

@@ -46,15 +46,18 @@ class Google_Service_Iam_Resource_Roles extends Google_Service_Resource
*
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional pagination token returned in an earlier
* ListRolesResponse.
* @opt_param int pageSize Optional limit on the number of roles to include in
* the response.
* @opt_param string view Optional view for the returned Role objects.
* @opt_param string view Optional view for the returned Role objects. When
* `FULL` is specified, the `includedPermissions` field is returned, which
* includes a list of all permissions in the role. The default value is `BASIC`,
* which does not return the `includedPermissions` field.
* @opt_param string parent The resource name of the parent resource in one of
* the following formats: `` (empty string) -- this refers to curated roles.
* `organizations/{ORGANIZATION_ID}` `projects/{PROJECT_ID}`
* @opt_param bool showDeleted Include Roles that have been deleted.
* @opt_param string pageToken Optional pagination token returned in an earlier
* ListRolesResponse.
* @return Google_Service_Iam_ListRolesResponse
*/
public function listRoles($optParams = array())

View File

@@ -17,6 +17,7 @@
class Google_Service_Iam_ServiceAccount extends Google_Model
{
public $disabled;
public $displayName;
public $email;
public $etag;
@@ -25,6 +26,14 @@ class Google_Service_Iam_ServiceAccount extends Google_Model
public $projectId;
public $uniqueId;
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
public function getDisabled()
{
return $this->disabled;
}
public function setDisplayName($displayName)
{
$this->displayName = $displayName;

View File

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

View File

@@ -0,0 +1,37 @@
<?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.
*/
class Google_Service_Iam_UndeleteServiceAccountResponse extends Google_Model
{
protected $restoredAccountType = 'Google_Service_Iam_ServiceAccount';
protected $restoredAccountDataType = '';
/**
* @param Google_Service_Iam_ServiceAccount
*/
public function setRestoredAccount(Google_Service_Iam_ServiceAccount $restoredAccount)
{
$this->restoredAccount = $restoredAccount;
}
/**
* @return Google_Service_Iam_ServiceAccount
*/
public function getRestoredAccount()
{
return $this->restoredAccount;
}
}