Mise à jour des librairies vendor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* 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
|
||||
@@ -18,6 +18,7 @@
|
||||
class Google_Service_Cloudbilling_BillingAccount extends Google_Model
|
||||
{
|
||||
public $displayName;
|
||||
public $masterBillingAccount;
|
||||
public $name;
|
||||
public $open;
|
||||
|
||||
@@ -29,6 +30,14 @@ class Google_Service_Cloudbilling_BillingAccount extends Google_Model
|
||||
{
|
||||
return $this->displayName;
|
||||
}
|
||||
public function setMasterBillingAccount($masterBillingAccount)
|
||||
{
|
||||
$this->masterBillingAccount = $masterBillingAccount;
|
||||
}
|
||||
public function getMasterBillingAccount()
|
||||
{
|
||||
return $this->masterBillingAccount;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* 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
|
||||
@@ -22,10 +22,16 @@ class Google_Service_Cloudbilling_ListBillingAccountsResponse extends Google_Col
|
||||
protected $billingAccountsDataType = 'array';
|
||||
public $nextPageToken;
|
||||
|
||||
/**
|
||||
* @param Google_Service_Cloudbilling_BillingAccount
|
||||
*/
|
||||
public function setBillingAccounts($billingAccounts)
|
||||
{
|
||||
$this->billingAccounts = $billingAccounts;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_Cloudbilling_BillingAccount
|
||||
*/
|
||||
public function getBillingAccounts()
|
||||
{
|
||||
return $this->billingAccounts;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* 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
|
||||
@@ -30,10 +30,16 @@ class Google_Service_Cloudbilling_ListProjectBillingInfoResponse extends Google_
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
/**
|
||||
* @param Google_Service_Cloudbilling_ProjectBillingInfo
|
||||
*/
|
||||
public function setProjectBillingInfo($projectBillingInfo)
|
||||
{
|
||||
$this->projectBillingInfo = $projectBillingInfo;
|
||||
}
|
||||
/**
|
||||
* @return Google_Service_Cloudbilling_ProjectBillingInfo
|
||||
*/
|
||||
public function getProjectBillingInfo()
|
||||
{
|
||||
return $this->projectBillingInfo;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* 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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* 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
|
||||
@@ -25,11 +25,32 @@
|
||||
*/
|
||||
class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Creates a billing account. This method can only be used to create [billing
|
||||
* subaccounts](https://cloud.google.com/billing/docs/concepts) for GCP
|
||||
* resellers. When creating a subaccount, the current authenticated user must
|
||||
* have the `billing.accounts.update` IAM permission on the master account,
|
||||
* which is typically given to billing account
|
||||
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-
|
||||
* access).
|
||||
*
|
||||
* > This method is currently in > [Beta](https://cloud.google.com/terms/launch-
|
||||
* stages). (billingAccounts.create)
|
||||
*
|
||||
* @param Google_Service_Cloudbilling_BillingAccount $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudbilling_BillingAccount
|
||||
*/
|
||||
public function create(Google_Service_Cloudbilling_BillingAccount $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_Cloudbilling_BillingAccount");
|
||||
}
|
||||
/**
|
||||
* Gets information about a billing account. The current authenticated user must
|
||||
* be an [owner of the billing
|
||||
* account](https://support.google.com/cloud/answer/4430947).
|
||||
* (billingAccounts.get)
|
||||
* be a [viewer of the billing account](https://cloud.google.com/billing/docs
|
||||
* /how-to/billing-access). (billingAccounts.get)
|
||||
*
|
||||
* @param string $name The resource name of the billing account to retrieve. For
|
||||
* example, `billingAccounts/012345-567890-ABCDEF`.
|
||||
@@ -43,18 +64,48 @@ class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Servic
|
||||
return $this->call('get', array($params), "Google_Service_Cloudbilling_BillingAccount");
|
||||
}
|
||||
/**
|
||||
* Lists the billing accounts that the current authenticated user
|
||||
* [owns](https://support.google.com/cloud/answer/4430947).
|
||||
* Gets the access control policy for a billing account. The caller must have
|
||||
* the `billing.accounts.getIamPolicy` permission on the account, which is often
|
||||
* given to billing account [viewers](https://cloud.google.com/billing/docs/how-
|
||||
* to/billing-access).
|
||||
*
|
||||
* > This method is currently in > [Beta](https://cloud.google.com/terms/launch-
|
||||
* stages). (billingAccounts.getIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which the policy is being
|
||||
* requested. See the operation documentation for the appropriate value for this
|
||||
* field.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudbilling_Policy
|
||||
*/
|
||||
public function getIamPolicy($resource, $optParams = array())
|
||||
{
|
||||
$params = array('resource' => $resource);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getIamPolicy', array($params), "Google_Service_Cloudbilling_Policy");
|
||||
}
|
||||
/**
|
||||
* Lists the billing accounts that the current authenticated user has permission
|
||||
* to [view](https://cloud.google.com/billing/docs/how-to/billing-access).
|
||||
* (billingAccounts.listBillingAccounts)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int pageSize Requested page size. The maximum page size is 100;
|
||||
* this is also the default.
|
||||
* @opt_param string pageToken A token identifying a page of results to return.
|
||||
* This should be a `next_page_token` value returned from a previous
|
||||
* `ListBillingAccounts` call. If unspecified, the first page of results is
|
||||
* returned.
|
||||
* @opt_param int pageSize Requested page size. The maximum page size is 100;
|
||||
* this is also the default.
|
||||
* @opt_param string filter Options for how to filter the returned billing
|
||||
* accounts. Currently this only supports filtering for
|
||||
* [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single
|
||||
* provided reseller billing account. (e.g.
|
||||
* "master_billing_account=billingAccounts/012345-678901-ABCDEF"). Boolean
|
||||
* algebra and other fields are not currently supported.
|
||||
*
|
||||
* > This field is currently in > [Beta](https://cloud.google.com/terms/launch-
|
||||
* stages).
|
||||
* @return Google_Service_Cloudbilling_ListBillingAccountsResponse
|
||||
*/
|
||||
public function listBillingAccounts($optParams = array())
|
||||
@@ -63,4 +114,72 @@ class Google_Service_Cloudbilling_Resource_BillingAccounts extends Google_Servic
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_Cloudbilling_ListBillingAccountsResponse");
|
||||
}
|
||||
/**
|
||||
* Updates a billing account's fields. Currently the only field that can be
|
||||
* edited is `display_name`. The current authenticated user must have the
|
||||
* `billing.accounts.update` IAM permission, which is typically given to the
|
||||
* [administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
|
||||
* of the billing account.
|
||||
*
|
||||
* > This method is currently in > [Beta](https://cloud.google.com/terms/launch-
|
||||
* stages). (billingAccounts.patch)
|
||||
*
|
||||
* @param string $name The name of the billing account resource to be updated.
|
||||
* @param Google_Service_Cloudbilling_BillingAccount $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string updateMask The update mask applied to the resource. Only
|
||||
* "display_name" is currently supported.
|
||||
* @return Google_Service_Cloudbilling_BillingAccount
|
||||
*/
|
||||
public function patch($name, Google_Service_Cloudbilling_BillingAccount $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('patch', array($params), "Google_Service_Cloudbilling_BillingAccount");
|
||||
}
|
||||
/**
|
||||
* Sets the access control policy for a billing account. Replaces any existing
|
||||
* policy. The caller must have the `billing.accounts.setIamPolicy` permission
|
||||
* on the account, which is often given to billing account
|
||||
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-
|
||||
* access).
|
||||
*
|
||||
* > This method is currently in > [Beta](https://cloud.google.com/terms/launch-
|
||||
* stages). (billingAccounts.setIamPolicy)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which the policy is being
|
||||
* specified. See the operation documentation for the appropriate value for this
|
||||
* field.
|
||||
* @param Google_Service_Cloudbilling_SetIamPolicyRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudbilling_Policy
|
||||
*/
|
||||
public function setIamPolicy($resource, Google_Service_Cloudbilling_SetIamPolicyRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resource' => $resource, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('setIamPolicy', array($params), "Google_Service_Cloudbilling_Policy");
|
||||
}
|
||||
/**
|
||||
* Tests the access control policy for a billing account. This method takes the
|
||||
* resource and a set of permissions as input and returns the subset of the
|
||||
* input permissions that the caller is allowed for that resource.
|
||||
*
|
||||
* > This method is currently in > [Beta](https://cloud.google.com/terms/launch-
|
||||
* stages). (billingAccounts.testIamPermissions)
|
||||
*
|
||||
* @param string $resource REQUIRED: The resource for which the policy detail is
|
||||
* being requested. See the operation documentation for the appropriate value
|
||||
* for this field.
|
||||
* @param Google_Service_Cloudbilling_TestIamPermissionsRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_Cloudbilling_TestIamPermissionsResponse
|
||||
*/
|
||||
public function testIamPermissions($resource, Google_Service_Cloudbilling_TestIamPermissionsRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resource' => $resource, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('testIamPermissions', array($params), "Google_Service_Cloudbilling_TestIamPermissionsResponse");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* 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
|
||||
@@ -27,8 +27,9 @@ class Google_Service_Cloudbilling_Resource_BillingAccountsProjects extends Googl
|
||||
{
|
||||
/**
|
||||
* Lists the projects associated with a billing account. The current
|
||||
* authenticated user must be an [owner of the billing
|
||||
* account](https://support.google.com/cloud/answer/4430947).
|
||||
* authenticated user must have the `billing.resourceAssociations.list` IAM
|
||||
* permission, which is often given to billing account
|
||||
* [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
|
||||
* (projects.listBillingAccountsProjects)
|
||||
*
|
||||
* @param string $name The resource name of the billing account associated with
|
||||
@@ -36,12 +37,12 @@ class Google_Service_Cloudbilling_Resource_BillingAccountsProjects extends Googl
|
||||
* `billingAccounts/012345-567890-ABCDEF`.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int pageSize Requested page size. The maximum page size is 100;
|
||||
* this is also the default.
|
||||
* @opt_param string pageToken A token identifying a page of results to be
|
||||
* returned. This should be a `next_page_token` value returned from a previous
|
||||
* `ListProjectBillingInfo` call. If unspecified, the first page of results is
|
||||
* returned.
|
||||
* @opt_param int pageSize Requested page size. The maximum page size is 100;
|
||||
* this is also the default.
|
||||
* @return Google_Service_Cloudbilling_ListProjectBillingInfoResponse
|
||||
*/
|
||||
public function listBillingAccountsProjects($name, $optParams = array())
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 Google Inc.
|
||||
* 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
|
||||
@@ -51,13 +51,14 @@ class Google_Service_Cloudbilling_Resource_Projects extends Google_Service_Resou
|
||||
* usage charges.
|
||||
*
|
||||
* *Note:* Incurred charges that have not yet been reported in the transaction
|
||||
* history of the Google Cloud Console may be billed to the new billing account,
|
||||
* even if the charge occurred before the new billing account was assigned to
|
||||
* the project.
|
||||
* history of the GCP Console might be billed to the new billing account, even
|
||||
* if the charge occurred before the new billing account was assigned to the
|
||||
* project.
|
||||
*
|
||||
* The current authenticated user must have ownership privileges for both the
|
||||
* [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo )
|
||||
* and the [billing account](https://support.google.com/cloud/answer/4430947).
|
||||
* and the [billing account](https://cloud.google.com/billing/docs/how-to
|
||||
* /billing-access).
|
||||
*
|
||||
* You can disable billing on the project by setting the `billing_account_name`
|
||||
* field to empty. This action disassociates the current billing account from
|
||||
|
||||
Reference in New Issue
Block a user