Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class AggregationInfo extends \Google\Model
{
/**
* @var int
*/
public $aggregationCount;
/**
* @var string
*/
public $aggregationInterval;
/**
* @var string
*/
public $aggregationLevel;
/**
* @param int
*/
public function setAggregationCount($aggregationCount)
{
$this->aggregationCount = $aggregationCount;
}
/**
* @return int
*/
public function getAggregationCount()
{
return $this->aggregationCount;
}
/**
* @param string
*/
public function setAggregationInterval($aggregationInterval)
{
$this->aggregationInterval = $aggregationInterval;
}
/**
* @return string
*/
public function getAggregationInterval()
{
return $this->aggregationInterval;
}
/**
* @param string
*/
public function setAggregationLevel($aggregationLevel)
{
$this->aggregationLevel = $aggregationLevel;
}
/**
* @return string
*/
public function getAggregationLevel()
{
return $this->aggregationLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregationInfo::class, 'Google_Service_Cloudbilling_AggregationInfo');

View File

@@ -0,0 +1,61 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* @var string
*/
public $service;
/**
* @param AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_Cloudbilling_AuditConfig');

View File

@@ -0,0 +1,63 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class AuditLogConfig extends \Google\Collection
{
protected $collection_key = 'exemptedMembers';
/**
* @var string[]
*/
public $exemptedMembers;
/**
* @var string
*/
public $logType;
/**
* @param string[]
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* @param string
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return string
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_Cloudbilling_AuditLogConfig');

View File

@@ -0,0 +1,134 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class BillingAccount extends \Google\Model
{
/**
* @var string
*/
public $currencyCode;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $masterBillingAccount;
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $open;
/**
* @var string
*/
public $parent;
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setMasterBillingAccount($masterBillingAccount)
{
$this->masterBillingAccount = $masterBillingAccount;
}
/**
* @return string
*/
public function getMasterBillingAccount()
{
return $this->masterBillingAccount;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setOpen($open)
{
$this->open = $open;
}
/**
* @return bool
*/
public function getOpen()
{
return $this->open;
}
/**
* @param string
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccount::class, 'Google_Service_Cloudbilling_BillingAccount');

View File

@@ -0,0 +1,79 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_Cloudbilling_Binding');

View File

@@ -0,0 +1,98 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class Category extends \Google\Model
{
/**
* @var string
*/
public $resourceFamily;
/**
* @var string
*/
public $resourceGroup;
/**
* @var string
*/
public $serviceDisplayName;
/**
* @var string
*/
public $usageType;
/**
* @param string
*/
public function setResourceFamily($resourceFamily)
{
$this->resourceFamily = $resourceFamily;
}
/**
* @return string
*/
public function getResourceFamily()
{
return $this->resourceFamily;
}
/**
* @param string
*/
public function setResourceGroup($resourceGroup)
{
$this->resourceGroup = $resourceGroup;
}
/**
* @return string
*/
public function getResourceGroup()
{
return $this->resourceGroup;
}
/**
* @param string
*/
public function setServiceDisplayName($serviceDisplayName)
{
$this->serviceDisplayName = $serviceDisplayName;
}
/**
* @return string
*/
public function getServiceDisplayName()
{
return $this->serviceDisplayName;
}
/**
* @param string
*/
public function setUsageType($usageType)
{
$this->usageType = $usageType;
}
/**
* @return string
*/
public function getUsageType()
{
return $this->usageType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Category::class, 'Google_Service_Cloudbilling_Category');

View File

@@ -0,0 +1,98 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Cloudbilling_Expr');

View File

@@ -0,0 +1,63 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class GeoTaxonomy extends \Google\Collection
{
protected $collection_key = 'regions';
/**
* @var string[]
*/
public $regions;
/**
* @var string
*/
public $type;
/**
* @param string[]
*/
public function setRegions($regions)
{
$this->regions = $regions;
}
/**
* @return string[]
*/
public function getRegions()
{
return $this->regions;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeoTaxonomy::class, 'Google_Service_Cloudbilling_GeoTaxonomy');

View File

@@ -0,0 +1,61 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class ListBillingAccountsResponse extends \Google\Collection
{
protected $collection_key = 'billingAccounts';
protected $billingAccountsType = BillingAccount::class;
protected $billingAccountsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param BillingAccount[]
*/
public function setBillingAccounts($billingAccounts)
{
$this->billingAccounts = $billingAccounts;
}
/**
* @return BillingAccount[]
*/
public function getBillingAccounts()
{
return $this->billingAccounts;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBillingAccountsResponse::class, 'Google_Service_Cloudbilling_ListBillingAccountsResponse');

View File

@@ -0,0 +1,61 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class ListProjectBillingInfoResponse extends \Google\Collection
{
protected $collection_key = 'projectBillingInfo';
/**
* @var string
*/
public $nextPageToken;
protected $projectBillingInfoType = ProjectBillingInfo::class;
protected $projectBillingInfoDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param ProjectBillingInfo[]
*/
public function setProjectBillingInfo($projectBillingInfo)
{
$this->projectBillingInfo = $projectBillingInfo;
}
/**
* @return ProjectBillingInfo[]
*/
public function getProjectBillingInfo()
{
return $this->projectBillingInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListProjectBillingInfoResponse::class, 'Google_Service_Cloudbilling_ListProjectBillingInfoResponse');

View File

@@ -0,0 +1,61 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class ListServicesResponse extends \Google\Collection
{
protected $collection_key = 'services';
/**
* @var string
*/
public $nextPageToken;
protected $servicesType = Service::class;
protected $servicesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Service[]
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return Service[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServicesResponse::class, 'Google_Service_Cloudbilling_ListServicesResponse');

View File

@@ -0,0 +1,61 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class ListSkusResponse extends \Google\Collection
{
protected $collection_key = 'skus';
/**
* @var string
*/
public $nextPageToken;
protected $skusType = Sku::class;
protected $skusDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Sku[]
*/
public function setSkus($skus)
{
$this->skus = $skus;
}
/**
* @return Sku[]
*/
public function getSkus()
{
return $this->skus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSkusResponse::class, 'Google_Service_Cloudbilling_ListSkusResponse');

View File

@@ -0,0 +1,80 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class Money extends \Google\Model
{
/**
* @var string
*/
public $currencyCode;
/**
* @var int
*/
public $nanos;
/**
* @var string
*/
public $units;
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param int
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* @param string
*/
public function setUnits($units)
{
$this->units = $units;
}
/**
* @return string
*/
public function getUnits()
{
return $this->units;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Money::class, 'Google_Service_Cloudbilling_Money');

View File

@@ -0,0 +1,44 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class MoveBillingAccountRequest extends \Google\Model
{
/**
* @var string
*/
public $destinationParent;
/**
* @param string
*/
public function setDestinationParent($destinationParent)
{
$this->destinationParent = $destinationParent;
}
/**
* @return string
*/
public function getDestinationParent()
{
return $this->destinationParent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MoveBillingAccountRequest::class, 'Google_Service_Cloudbilling_MoveBillingAccountRequest');

View File

@@ -0,0 +1,95 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param AuditConfig[]
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_Cloudbilling_Policy');

View File

@@ -0,0 +1,133 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class PricingExpression extends \Google\Collection
{
protected $collection_key = 'tieredRates';
/**
* @var string
*/
public $baseUnit;
public $baseUnitConversionFactor;
/**
* @var string
*/
public $baseUnitDescription;
public $displayQuantity;
protected $tieredRatesType = TierRate::class;
protected $tieredRatesDataType = 'array';
/**
* @var string
*/
public $usageUnit;
/**
* @var string
*/
public $usageUnitDescription;
/**
* @param string
*/
public function setBaseUnit($baseUnit)
{
$this->baseUnit = $baseUnit;
}
/**
* @return string
*/
public function getBaseUnit()
{
return $this->baseUnit;
}
public function setBaseUnitConversionFactor($baseUnitConversionFactor)
{
$this->baseUnitConversionFactor = $baseUnitConversionFactor;
}
public function getBaseUnitConversionFactor()
{
return $this->baseUnitConversionFactor;
}
/**
* @param string
*/
public function setBaseUnitDescription($baseUnitDescription)
{
$this->baseUnitDescription = $baseUnitDescription;
}
/**
* @return string
*/
public function getBaseUnitDescription()
{
return $this->baseUnitDescription;
}
public function setDisplayQuantity($displayQuantity)
{
$this->displayQuantity = $displayQuantity;
}
public function getDisplayQuantity()
{
return $this->displayQuantity;
}
/**
* @param TierRate[]
*/
public function setTieredRates($tieredRates)
{
$this->tieredRates = $tieredRates;
}
/**
* @return TierRate[]
*/
public function getTieredRates()
{
return $this->tieredRates;
}
/**
* @param string
*/
public function setUsageUnit($usageUnit)
{
$this->usageUnit = $usageUnit;
}
/**
* @return string
*/
public function getUsageUnit()
{
return $this->usageUnit;
}
/**
* @param string
*/
public function setUsageUnitDescription($usageUnitDescription)
{
$this->usageUnitDescription = $usageUnitDescription;
}
/**
* @return string
*/
public function getUsageUnitDescription()
{
return $this->usageUnitDescription;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PricingExpression::class, 'Google_Service_Cloudbilling_PricingExpression');

View File

@@ -0,0 +1,103 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class PricingInfo extends \Google\Model
{
protected $aggregationInfoType = AggregationInfo::class;
protected $aggregationInfoDataType = '';
public $currencyConversionRate;
/**
* @var string
*/
public $effectiveTime;
protected $pricingExpressionType = PricingExpression::class;
protected $pricingExpressionDataType = '';
/**
* @var string
*/
public $summary;
/**
* @param AggregationInfo
*/
public function setAggregationInfo(AggregationInfo $aggregationInfo)
{
$this->aggregationInfo = $aggregationInfo;
}
/**
* @return AggregationInfo
*/
public function getAggregationInfo()
{
return $this->aggregationInfo;
}
public function setCurrencyConversionRate($currencyConversionRate)
{
$this->currencyConversionRate = $currencyConversionRate;
}
public function getCurrencyConversionRate()
{
return $this->currencyConversionRate;
}
/**
* @param string
*/
public function setEffectiveTime($effectiveTime)
{
$this->effectiveTime = $effectiveTime;
}
/**
* @return string
*/
public function getEffectiveTime()
{
return $this->effectiveTime;
}
/**
* @param PricingExpression
*/
public function setPricingExpression(PricingExpression $pricingExpression)
{
$this->pricingExpression = $pricingExpression;
}
/**
* @return PricingExpression
*/
public function getPricingExpression()
{
return $this->pricingExpression;
}
/**
* @param string
*/
public function setSummary($summary)
{
$this->summary = $summary;
}
/**
* @return string
*/
public function getSummary()
{
return $this->summary;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PricingInfo::class, 'Google_Service_Cloudbilling_PricingInfo');

View File

@@ -0,0 +1,98 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class ProjectBillingInfo extends \Google\Model
{
/**
* @var string
*/
public $billingAccountName;
/**
* @var bool
*/
public $billingEnabled;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $projectId;
/**
* @param string
*/
public function setBillingAccountName($billingAccountName)
{
$this->billingAccountName = $billingAccountName;
}
/**
* @return string
*/
public function getBillingAccountName()
{
return $this->billingAccountName;
}
/**
* @param bool
*/
public function setBillingEnabled($billingEnabled)
{
$this->billingEnabled = $billingEnabled;
}
/**
* @return bool
*/
public function getBillingEnabled()
{
return $this->billingEnabled;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectBillingInfo::class, 'Google_Service_Cloudbilling_ProjectBillingInfo');

View File

@@ -0,0 +1,238 @@
<?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.
*/
namespace Google\Service\Cloudbilling\Resource;
use Google\Service\Cloudbilling\BillingAccount;
use Google\Service\Cloudbilling\ListBillingAccountsResponse;
use Google\Service\Cloudbilling\MoveBillingAccountRequest;
use Google\Service\Cloudbilling\Policy;
use Google\Service\Cloudbilling\SetIamPolicyRequest;
use Google\Service\Cloudbilling\TestIamPermissionsRequest;
use Google\Service\Cloudbilling\TestIamPermissionsResponse;
/**
* The "billingAccounts" collection of methods.
* Typical usage is:
* <code>
* $cloudbillingService = new Google\Service\Cloudbilling(...);
* $billingAccounts = $cloudbillingService->billingAccounts;
* </code>
*/
class BillingAccounts extends \Google\Service\Resource
{
/**
* This method creates [billing
* subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
* Google Cloud resellers should use the Channel Services APIs, [accounts.custom
* ers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.
* customers/create) and [accounts.customers.entitlements.create](https://cloud.
* google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/cre
* ate). When creating a subaccount, the current authenticated user must have
* the `billing.accounts.update` IAM permission on the parent account, which is
* typically given to billing account
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-
* access). This method will return an error if the parent account has not been
* provisioned for subaccounts. (billingAccounts.create)
*
* @param BillingAccount $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string parent Optional. The parent to create a billing account
* from. Format: - `billingAccounts/{billing_account_id}`, for example,
* `billingAccounts/012345-567890-ABCDEF`
* @return BillingAccount
* @throws \Google\Service\Exception
*/
public function create(BillingAccount $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], BillingAccount::class);
}
/**
* Gets information about a billing account. The current authenticated user must
* be a [viewer of the billing
* account](https://cloud.google.com/billing/docs/how-to/billing-access).
* (billingAccounts.get)
*
* @param string $name Required. The resource name of the billing account to
* retrieve. For example, `billingAccounts/012345-567890-ABCDEF`.
* @param array $optParams Optional parameters.
* @return BillingAccount
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BillingAccount::class);
}
/**
* 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). (billingAccounts.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* 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 string filter Options for how to filter the returned billing
* accounts. This only supports filtering for
* [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single
* provided parent billing account. (for example,
* `master_billing_account=billingAccounts/012345-678901-ABCDEF`). Boolean
* algebra and other fields are not currently supported.
* @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 string parent Optional. The parent resource to list billing
* accounts from. Format: - `organizations/{organization_id}`, for example,
* `organizations/12345678` - `billingAccounts/{billing_account_id}`, for
* example, `billingAccounts/012345-567890-ABCDEF`
* @return ListBillingAccountsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccounts($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBillingAccountsResponse::class);
}
/**
* Changes which parent organization a billing account belongs to.
* (billingAccounts.move)
*
* @param string $name Required. The resource name of the billing account to
* move. Must be of the form `billingAccounts/{billing_account_id}`. The
* specified billing account cannot be a subaccount, since a subaccount always
* belongs to the same organization as its parent account.
* @param MoveBillingAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return BillingAccount
* @throws \Google\Service\Exception
*/
public function move($name, MoveBillingAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('move', [$params], BillingAccount::class);
}
/**
* 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. (billingAccounts.patch)
*
* @param string $name Required. The name of the billing account resource to be
* updated.
* @param 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 BillingAccount
* @throws \Google\Service\Exception
*/
public function patch($name, BillingAccount $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], BillingAccount::class);
}
/**
* 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). (billingAccounts.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* 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.
* (billingAccounts.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccounts::class, 'Google_Service_Cloudbilling_Resource_BillingAccounts');

View File

@@ -0,0 +1,62 @@
<?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.
*/
namespace Google\Service\Cloudbilling\Resource;
use Google\Service\Cloudbilling\ListProjectBillingInfoResponse;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $cloudbillingService = new Google\Service\Cloudbilling(...);
* $projects = $cloudbillingService->billingAccounts_projects;
* </code>
*/
class BillingAccountsProjects extends \Google\Service\Resource
{
/**
* Lists the projects associated with a billing account. The current
* 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 Required. The resource name of the billing account
* associated with the projects that you want to list. For example,
* `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.
* @return ListProjectBillingInfoResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsProjects($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProjectBillingInfoResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsProjects::class, 'Google_Service_Cloudbilling_Resource_BillingAccountsProjects');

View File

@@ -0,0 +1,96 @@
<?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.
*/
namespace Google\Service\Cloudbilling\Resource;
use Google\Service\Cloudbilling\BillingAccount;
use Google\Service\Cloudbilling\ListBillingAccountsResponse;
/**
* The "subAccounts" collection of methods.
* Typical usage is:
* <code>
* $cloudbillingService = new Google\Service\Cloudbilling(...);
* $subAccounts = $cloudbillingService->billingAccounts_subAccounts;
* </code>
*/
class BillingAccountsSubAccounts extends \Google\Service\Resource
{
/**
* This method creates [billing
* subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
* Google Cloud resellers should use the Channel Services APIs, [accounts.custom
* ers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.
* customers/create) and [accounts.customers.entitlements.create](https://cloud.
* google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/cre
* ate). When creating a subaccount, the current authenticated user must have
* the `billing.accounts.update` IAM permission on the parent account, which is
* typically given to billing account
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-
* access). This method will return an error if the parent account has not been
* provisioned for subaccounts. (subAccounts.create)
*
* @param string $parent Optional. The parent to create a billing account from.
* Format: - `billingAccounts/{billing_account_id}`, for example,
* `billingAccounts/012345-567890-ABCDEF`
* @param BillingAccount $postBody
* @param array $optParams Optional parameters.
* @return BillingAccount
* @throws \Google\Service\Exception
*/
public function create($parent, BillingAccount $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], BillingAccount::class);
}
/**
* Lists the billing accounts that the current authenticated user has permission
* to [view](https://cloud.google.com/billing/docs/how-to/billing-access).
* (subAccounts.listBillingAccountsSubAccounts)
*
* @param string $parent Optional. The parent resource to list billing accounts
* from. Format: - `organizations/{organization_id}`, for example,
* `organizations/12345678` - `billingAccounts/{billing_account_id}`, for
* example, `billingAccounts/012345-567890-ABCDEF`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Options for how to filter the returned billing
* accounts. This only supports filtering for
* [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single
* provided parent billing account. (for example,
* `master_billing_account=billingAccounts/012345-678901-ABCDEF`). Boolean
* algebra and other fields are not currently supported.
* @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.
* @return ListBillingAccountsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsSubAccounts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBillingAccountsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsSubAccounts::class, 'Google_Service_Cloudbilling_Resource_BillingAccountsSubAccounts');

View File

@@ -0,0 +1,33 @@
<?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.
*/
namespace Google\Service\Cloudbilling\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $cloudbillingService = new Google\Service\Cloudbilling(...);
* $organizations = $cloudbillingService->organizations;
* </code>
*/
class Organizations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organizations::class, 'Google_Service_Cloudbilling_Resource_Organizations');

View File

@@ -0,0 +1,117 @@
<?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.
*/
namespace Google\Service\Cloudbilling\Resource;
use Google\Service\Cloudbilling\BillingAccount;
use Google\Service\Cloudbilling\ListBillingAccountsResponse;
/**
* The "billingAccounts" collection of methods.
* Typical usage is:
* <code>
* $cloudbillingService = new Google\Service\Cloudbilling(...);
* $billingAccounts = $cloudbillingService->organizations_billingAccounts;
* </code>
*/
class OrganizationsBillingAccounts extends \Google\Service\Resource
{
/**
* This method creates [billing
* subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
* Google Cloud resellers should use the Channel Services APIs, [accounts.custom
* ers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.
* customers/create) and [accounts.customers.entitlements.create](https://cloud.
* google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/cre
* ate). When creating a subaccount, the current authenticated user must have
* the `billing.accounts.update` IAM permission on the parent account, which is
* typically given to billing account
* [administrators](https://cloud.google.com/billing/docs/how-to/billing-
* access). This method will return an error if the parent account has not been
* provisioned for subaccounts. (billingAccounts.create)
*
* @param string $parent Optional. The parent to create a billing account from.
* Format: - `billingAccounts/{billing_account_id}`, for example,
* `billingAccounts/012345-567890-ABCDEF`
* @param BillingAccount $postBody
* @param array $optParams Optional parameters.
* @return BillingAccount
* @throws \Google\Service\Exception
*/
public function create($parent, BillingAccount $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], BillingAccount::class);
}
/**
* Lists the billing accounts that the current authenticated user has permission
* to [view](https://cloud.google.com/billing/docs/how-to/billing-access).
* (billingAccounts.listOrganizationsBillingAccounts)
*
* @param string $parent Optional. The parent resource to list billing accounts
* from. Format: - `organizations/{organization_id}`, for example,
* `organizations/12345678` - `billingAccounts/{billing_account_id}`, for
* example, `billingAccounts/012345-567890-ABCDEF`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Options for how to filter the returned billing
* accounts. This only supports filtering for
* [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single
* provided parent billing account. (for example,
* `master_billing_account=billingAccounts/012345-678901-ABCDEF`). Boolean
* algebra and other fields are not currently supported.
* @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.
* @return ListBillingAccountsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsBillingAccounts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBillingAccountsResponse::class);
}
/**
* Changes which parent organization a billing account belongs to.
* (billingAccounts.move)
*
* @param string $destinationParent Required. The resource name of the
* Organization to move the billing account under. Must be of the form
* `organizations/{organization_id}`.
* @param string $name Required. The resource name of the billing account to
* move. Must be of the form `billingAccounts/{billing_account_id}`. The
* specified billing account cannot be a subaccount, since a subaccount always
* belongs to the same organization as its parent account.
* @param array $optParams Optional parameters.
* @return BillingAccount
* @throws \Google\Service\Exception
*/
public function move($destinationParent, $name, $optParams = [])
{
$params = ['destinationParent' => $destinationParent, 'name' => $name];
$params = array_merge($params, $optParams);
return $this->call('move', [$params], BillingAccount::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsBillingAccounts::class, 'Google_Service_Cloudbilling_Resource_OrganizationsBillingAccounts');

View File

@@ -0,0 +1,95 @@
<?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.
*/
namespace Google\Service\Cloudbilling\Resource;
use Google\Service\Cloudbilling\ProjectBillingInfo;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $cloudbillingService = new Google\Service\Cloudbilling(...);
* $projects = $cloudbillingService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Gets the billing information for a project. The current authenticated user
* must have the `resourcemanager.projects.get` permission for the project,
* which can be granted by assigning the [Project
* Viewer](https://cloud.google.com/iam/docs/understanding-
* roles#predefined_roles) role. (projects.getBillingInfo)
*
* @param string $name Required. The resource name of the project for which
* billing information is retrieved. For example, `projects/tokyo-rain-123`.
* @param array $optParams Optional parameters.
* @return ProjectBillingInfo
* @throws \Google\Service\Exception
*/
public function getBillingInfo($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getBillingInfo', [$params], ProjectBillingInfo::class);
}
/**
* Sets or updates the billing account associated with a project. You specify
* the new billing account by setting the `billing_account_name` in the
* `ProjectBillingInfo` resource to the resource name of a billing account.
* Associating a project with an open billing account enables billing on the
* project and allows charges for resource usage. If the project already had a
* billing account, this method changes the billing account used for resource
* usage charges. *Note:* Incurred charges that have not yet been reported in
* the transaction history of the Google Cloud 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://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 the project. Any billable activity of your in-use
* services will stop, and your application could stop functioning as expected.
* Any unbilled charges to date will be billed to the previously associated
* account. The current authenticated user must be either an owner of the
* project or an owner of the billing account for the project. Note that
* associating a project with a *closed* billing account will have much the same
* effect as disabling billing on the project: any paid resources used by the
* project will be shut down. Thus, unless you wish to disable billing, you
* should always call this method with the name of an *open* billing account.
* (projects.updateBillingInfo)
*
* @param string $name Required. The resource name of the project associated
* with the billing information that you want to update. For example,
* `projects/tokyo-rain-123`.
* @param ProjectBillingInfo $postBody
* @param array $optParams Optional parameters.
* @return ProjectBillingInfo
* @throws \Google\Service\Exception
*/
public function updateBillingInfo($name, ProjectBillingInfo $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateBillingInfo', [$params], ProjectBillingInfo::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Cloudbilling_Resource_Projects');

View File

@@ -0,0 +1,53 @@
<?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.
*/
namespace Google\Service\Cloudbilling\Resource;
use Google\Service\Cloudbilling\ListServicesResponse;
/**
* The "services" collection of methods.
* Typical usage is:
* <code>
* $cloudbillingService = new Google\Service\Cloudbilling(...);
* $services = $cloudbillingService->services;
* </code>
*/
class Services extends \Google\Service\Resource
{
/**
* Lists all public cloud services. (services.listServices)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. Defaults to 5000.
* @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
* `ListServices` call. If unspecified, the first page of results is returned.
* @return ListServicesResponse
* @throws \Google\Service\Exception
*/
public function listServices($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServicesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Services::class, 'Google_Service_Cloudbilling_Resource_Services');

View File

@@ -0,0 +1,69 @@
<?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.
*/
namespace Google\Service\Cloudbilling\Resource;
use Google\Service\Cloudbilling\ListSkusResponse;
/**
* The "skus" collection of methods.
* Typical usage is:
* <code>
* $cloudbillingService = new Google\Service\Cloudbilling(...);
* $skus = $cloudbillingService->services_skus;
* </code>
*/
class ServicesSkus extends \Google\Service\Resource
{
/**
* Lists all publicly available SKUs for a given cloud service.
* (skus.listServicesSkus)
*
* @param string $parent Required. The name of the service. Example:
* "services/6F81-5844-456A"
* @param array $optParams Optional parameters.
*
* @opt_param string currencyCode The ISO 4217 currency code for the pricing
* info in the response proto. Will use the conversion rate as of start_time.
* Optional. If not specified USD will be used.
* @opt_param string endTime Optional exclusive end time of the time range for
* which the pricing versions will be returned. Timestamps in the future are not
* allowed. The time range has to be within a single calendar month in
* America/Los_Angeles timezone. Time range as a whole is optional. If not
* specified, the latest pricing will be returned (up to 12 hours old at most).
* @opt_param int pageSize Requested page size. Defaults to 5000.
* @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 `ListSkus`
* call. If unspecified, the first page of results is returned.
* @opt_param string startTime Optional inclusive start time of the time range
* for which the pricing versions will be returned. Timestamps in the future are
* not allowed. The time range has to be within a single calendar month in
* America/Los_Angeles timezone. Time range as a whole is optional. If not
* specified, the latest pricing will be returned (up to 12 hours old at most).
* @return ListSkusResponse
* @throws \Google\Service\Exception
*/
public function listServicesSkus($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSkusResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesSkus::class, 'Google_Service_Cloudbilling_Resource_ServicesSkus');

View File

@@ -0,0 +1,98 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class Service extends \Google\Model
{
/**
* @var string
*/
public $businessEntityName;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $serviceId;
/**
* @param string
*/
public function setBusinessEntityName($businessEntityName)
{
$this->businessEntityName = $businessEntityName;
}
/**
* @return string
*/
public function getBusinessEntityName()
{
return $this->businessEntityName;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setServiceId($serviceId)
{
$this->serviceId = $serviceId;
}
/**
* @return string
*/
public function getServiceId()
{
return $this->serviceId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Service::class, 'Google_Service_Cloudbilling_Service');

View File

@@ -0,0 +1,60 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_Cloudbilling_SetIamPolicyRequest');

View File

@@ -0,0 +1,165 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class Sku extends \Google\Collection
{
protected $collection_key = 'serviceRegions';
protected $categoryType = Category::class;
protected $categoryDataType = '';
/**
* @var string
*/
public $description;
protected $geoTaxonomyType = GeoTaxonomy::class;
protected $geoTaxonomyDataType = '';
/**
* @var string
*/
public $name;
protected $pricingInfoType = PricingInfo::class;
protected $pricingInfoDataType = 'array';
/**
* @var string
*/
public $serviceProviderName;
/**
* @var string[]
*/
public $serviceRegions;
/**
* @var string
*/
public $skuId;
/**
* @param Category
*/
public function setCategory(Category $category)
{
$this->category = $category;
}
/**
* @return Category
*/
public function getCategory()
{
return $this->category;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param GeoTaxonomy
*/
public function setGeoTaxonomy(GeoTaxonomy $geoTaxonomy)
{
$this->geoTaxonomy = $geoTaxonomy;
}
/**
* @return GeoTaxonomy
*/
public function getGeoTaxonomy()
{
return $this->geoTaxonomy;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PricingInfo[]
*/
public function setPricingInfo($pricingInfo)
{
$this->pricingInfo = $pricingInfo;
}
/**
* @return PricingInfo[]
*/
public function getPricingInfo()
{
return $this->pricingInfo;
}
/**
* @param string
*/
public function setServiceProviderName($serviceProviderName)
{
$this->serviceProviderName = $serviceProviderName;
}
/**
* @return string
*/
public function getServiceProviderName()
{
return $this->serviceProviderName;
}
/**
* @param string[]
*/
public function setServiceRegions($serviceRegions)
{
$this->serviceRegions = $serviceRegions;
}
/**
* @return string[]
*/
public function getServiceRegions()
{
return $this->serviceRegions;
}
/**
* @param string
*/
public function setSkuId($skuId)
{
$this->skuId = $skuId;
}
/**
* @return string
*/
public function getSkuId()
{
return $this->skuId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sku::class, 'Google_Service_Cloudbilling_Sku');

View File

@@ -0,0 +1,45 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_Cloudbilling_TestIamPermissionsRequest');

View File

@@ -0,0 +1,45 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_Cloudbilling_TestIamPermissionsResponse');

View File

@@ -0,0 +1,51 @@
<?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.
*/
namespace Google\Service\Cloudbilling;
class TierRate extends \Google\Model
{
public $startUsageAmount;
protected $unitPriceType = Money::class;
protected $unitPriceDataType = '';
public function setStartUsageAmount($startUsageAmount)
{
$this->startUsageAmount = $startUsageAmount;
}
public function getStartUsageAmount()
{
return $this->startUsageAmount;
}
/**
* @param Money
*/
public function setUnitPrice(Money $unitPrice)
{
$this->unitPrice = $unitPrice;
}
/**
* @return Money
*/
public function getUnitPrice()
{
return $this->unitPrice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TierRate::class, 'Google_Service_Cloudbilling_TierRate');