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
@@ -0,0 +1,151 @@
<?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\CloudCommercePartnerProcurementService;
class Account extends \Google\Collection
{
protected $collection_key = 'approvals';
protected $approvalsType = Approval::class;
protected $approvalsDataType = 'array';
/**
* @var string
*/
public $createTime;
/**
* @var array[]
*/
public $inputProperties;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $provider;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
/**
* @param Approval[]
*/
public function setApprovals($approvals)
{
$this->approvals = $approvals;
}
/**
* @return Approval[]
*/
public function getApprovals()
{
return $this->approvals;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param array[]
*/
public function setInputProperties($inputProperties)
{
$this->inputProperties = $inputProperties;
}
/**
* @return array[]
*/
public function getInputProperties()
{
return $this->inputProperties;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setProvider($provider)
{
$this->provider = $provider;
}
/**
* @return string
*/
public function getProvider()
{
return $this->provider;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Account::class, 'Google_Service_CloudCommercePartnerProcurementService_Account');
@@ -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\CloudCommercePartnerProcurementService;
class Approval extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $reason;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Approval::class, 'Google_Service_CloudCommercePartnerProcurementService_Approval');
@@ -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\CloudCommercePartnerProcurementService;
class ApproveAccountRequest extends \Google\Model
{
/**
* @var string
*/
public $approvalName;
/**
* @var string[]
*/
public $properties;
/**
* @var string
*/
public $reason;
/**
* @param string
*/
public function setApprovalName($approvalName)
{
$this->approvalName = $approvalName;
}
/**
* @return string
*/
public function getApprovalName()
{
return $this->approvalName;
}
/**
* @param string[]
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return string[]
*/
public function getProperties()
{
return $this->properties;
}
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApproveAccountRequest::class, 'Google_Service_CloudCommercePartnerProcurementService_ApproveAccountRequest');
@@ -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\CloudCommercePartnerProcurementService;
class ApproveEntitlementPlanChangeRequest extends \Google\Model
{
/**
* @var string
*/
public $pendingPlanName;
/**
* @param string
*/
public function setPendingPlanName($pendingPlanName)
{
$this->pendingPlanName = $pendingPlanName;
}
/**
* @return string
*/
public function getPendingPlanName()
{
return $this->pendingPlanName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApproveEntitlementPlanChangeRequest::class, 'Google_Service_CloudCommercePartnerProcurementService_ApproveEntitlementPlanChangeRequest');
@@ -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\CloudCommercePartnerProcurementService;
class ApproveEntitlementRequest extends \Google\Model
{
/**
* @var string
*/
public $entitlementMigrated;
/**
* @var string[]
*/
public $properties;
/**
* @param string
*/
public function setEntitlementMigrated($entitlementMigrated)
{
$this->entitlementMigrated = $entitlementMigrated;
}
/**
* @return string
*/
public function getEntitlementMigrated()
{
return $this->entitlementMigrated;
}
/**
* @param string[]
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return string[]
*/
public function getProperties()
{
return $this->properties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApproveEntitlementRequest::class, 'Google_Service_CloudCommercePartnerProcurementService_ApproveEntitlementRequest');
@@ -0,0 +1,25 @@
<?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\CloudCommercePartnerProcurementService;
class CloudcommerceprocurementEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudcommerceprocurementEmpty::class, 'Google_Service_CloudCommercePartnerProcurementService_CloudcommerceprocurementEmpty');
@@ -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\CloudCommercePartnerProcurementService;
class Consumer extends \Google\Model
{
/**
* @var string
*/
public $project;
/**
* @param string
*/
public function setProject($project)
{
$this->project = $project;
}
/**
* @return string
*/
public function getProject()
{
return $this->project;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Consumer::class, 'Google_Service_CloudCommercePartnerProcurementService_Consumer');
@@ -0,0 +1,493 @@
<?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\CloudCommercePartnerProcurementService;
class Entitlement extends \Google\Collection
{
protected $collection_key = 'entitlementBenefitIds';
/**
* @var string
*/
public $account;
/**
* @var string
*/
public $cancellationReason;
protected $consumersType = Consumer::class;
protected $consumersDataType = 'array';
/**
* @var string
*/
public $createTime;
/**
* @var string[]
*/
public $entitlementBenefitIds;
/**
* @var array[]
*/
public $inputProperties;
/**
* @var string
*/
public $messageToUser;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $newOfferEndTime;
/**
* @var string
*/
public $newOfferStartTime;
/**
* @var string
*/
public $newPendingOffer;
/**
* @var string
*/
public $newPendingOfferDuration;
/**
* @var string
*/
public $newPendingPlan;
/**
* @var string
*/
public $offer;
/**
* @var string
*/
public $offerDuration;
/**
* @var string
*/
public $offerEndTime;
/**
* @var string
*/
public $orderId;
/**
* @var string
*/
public $plan;
/**
* @var string
*/
public $product;
/**
* @var string
*/
public $productExternalName;
/**
* @var string
*/
public $provider;
/**
* @var string
*/
public $quoteExternalName;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $subscriptionEndTime;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $usageReportingId;
/**
* @param string
*/
public function setAccount($account)
{
$this->account = $account;
}
/**
* @return string
*/
public function getAccount()
{
return $this->account;
}
/**
* @param string
*/
public function setCancellationReason($cancellationReason)
{
$this->cancellationReason = $cancellationReason;
}
/**
* @return string
*/
public function getCancellationReason()
{
return $this->cancellationReason;
}
/**
* @param Consumer[]
*/
public function setConsumers($consumers)
{
$this->consumers = $consumers;
}
/**
* @return Consumer[]
*/
public function getConsumers()
{
return $this->consumers;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string[]
*/
public function setEntitlementBenefitIds($entitlementBenefitIds)
{
$this->entitlementBenefitIds = $entitlementBenefitIds;
}
/**
* @return string[]
*/
public function getEntitlementBenefitIds()
{
return $this->entitlementBenefitIds;
}
/**
* @param array[]
*/
public function setInputProperties($inputProperties)
{
$this->inputProperties = $inputProperties;
}
/**
* @return array[]
*/
public function getInputProperties()
{
return $this->inputProperties;
}
/**
* @param string
*/
public function setMessageToUser($messageToUser)
{
$this->messageToUser = $messageToUser;
}
/**
* @return string
*/
public function getMessageToUser()
{
return $this->messageToUser;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNewOfferEndTime($newOfferEndTime)
{
$this->newOfferEndTime = $newOfferEndTime;
}
/**
* @return string
*/
public function getNewOfferEndTime()
{
return $this->newOfferEndTime;
}
/**
* @param string
*/
public function setNewOfferStartTime($newOfferStartTime)
{
$this->newOfferStartTime = $newOfferStartTime;
}
/**
* @return string
*/
public function getNewOfferStartTime()
{
return $this->newOfferStartTime;
}
/**
* @param string
*/
public function setNewPendingOffer($newPendingOffer)
{
$this->newPendingOffer = $newPendingOffer;
}
/**
* @return string
*/
public function getNewPendingOffer()
{
return $this->newPendingOffer;
}
/**
* @param string
*/
public function setNewPendingOfferDuration($newPendingOfferDuration)
{
$this->newPendingOfferDuration = $newPendingOfferDuration;
}
/**
* @return string
*/
public function getNewPendingOfferDuration()
{
return $this->newPendingOfferDuration;
}
/**
* @param string
*/
public function setNewPendingPlan($newPendingPlan)
{
$this->newPendingPlan = $newPendingPlan;
}
/**
* @return string
*/
public function getNewPendingPlan()
{
return $this->newPendingPlan;
}
/**
* @param string
*/
public function setOffer($offer)
{
$this->offer = $offer;
}
/**
* @return string
*/
public function getOffer()
{
return $this->offer;
}
/**
* @param string
*/
public function setOfferDuration($offerDuration)
{
$this->offerDuration = $offerDuration;
}
/**
* @return string
*/
public function getOfferDuration()
{
return $this->offerDuration;
}
/**
* @param string
*/
public function setOfferEndTime($offerEndTime)
{
$this->offerEndTime = $offerEndTime;
}
/**
* @return string
*/
public function getOfferEndTime()
{
return $this->offerEndTime;
}
/**
* @param string
*/
public function setOrderId($orderId)
{
$this->orderId = $orderId;
}
/**
* @return string
*/
public function getOrderId()
{
return $this->orderId;
}
/**
* @param string
*/
public function setPlan($plan)
{
$this->plan = $plan;
}
/**
* @return string
*/
public function getPlan()
{
return $this->plan;
}
/**
* @param string
*/
public function setProduct($product)
{
$this->product = $product;
}
/**
* @return string
*/
public function getProduct()
{
return $this->product;
}
/**
* @param string
*/
public function setProductExternalName($productExternalName)
{
$this->productExternalName = $productExternalName;
}
/**
* @return string
*/
public function getProductExternalName()
{
return $this->productExternalName;
}
/**
* @param string
*/
public function setProvider($provider)
{
$this->provider = $provider;
}
/**
* @return string
*/
public function getProvider()
{
return $this->provider;
}
/**
* @param string
*/
public function setQuoteExternalName($quoteExternalName)
{
$this->quoteExternalName = $quoteExternalName;
}
/**
* @return string
*/
public function getQuoteExternalName()
{
return $this->quoteExternalName;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setSubscriptionEndTime($subscriptionEndTime)
{
$this->subscriptionEndTime = $subscriptionEndTime;
}
/**
* @return string
*/
public function getSubscriptionEndTime()
{
return $this->subscriptionEndTime;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setUsageReportingId($usageReportingId)
{
$this->usageReportingId = $usageReportingId;
}
/**
* @return string
*/
public function getUsageReportingId()
{
return $this->usageReportingId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entitlement::class, 'Google_Service_CloudCommercePartnerProcurementService_Entitlement');
@@ -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\CloudCommercePartnerProcurementService;
class ListAccountsResponse extends \Google\Collection
{
protected $collection_key = 'accounts';
protected $accountsType = Account::class;
protected $accountsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Account[]
*/
public function setAccounts($accounts)
{
$this->accounts = $accounts;
}
/**
* @return Account[]
*/
public function getAccounts()
{
return $this->accounts;
}
/**
* @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(ListAccountsResponse::class, 'Google_Service_CloudCommercePartnerProcurementService_ListAccountsResponse');
@@ -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\CloudCommercePartnerProcurementService;
class ListEntitlementsResponse extends \Google\Collection
{
protected $collection_key = 'entitlements';
protected $entitlementsType = Entitlement::class;
protected $entitlementsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Entitlement[]
*/
public function setEntitlements($entitlements)
{
$this->entitlements = $entitlements;
}
/**
* @return Entitlement[]
*/
public function getEntitlements()
{
return $this->entitlements;
}
/**
* @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(ListEntitlementsResponse::class, 'Google_Service_CloudCommercePartnerProcurementService_ListEntitlementsResponse');
@@ -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\CloudCommercePartnerProcurementService;
class RejectAccountRequest extends \Google\Model
{
/**
* @var string
*/
public $approvalName;
/**
* @var string
*/
public $reason;
/**
* @param string
*/
public function setApprovalName($approvalName)
{
$this->approvalName = $approvalName;
}
/**
* @return string
*/
public function getApprovalName()
{
return $this->approvalName;
}
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RejectAccountRequest::class, 'Google_Service_CloudCommercePartnerProcurementService_RejectAccountRequest');
@@ -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\CloudCommercePartnerProcurementService;
class RejectEntitlementPlanChangeRequest extends \Google\Model
{
/**
* @var string
*/
public $pendingPlanName;
/**
* @var string
*/
public $reason;
/**
* @param string
*/
public function setPendingPlanName($pendingPlanName)
{
$this->pendingPlanName = $pendingPlanName;
}
/**
* @return string
*/
public function getPendingPlanName()
{
return $this->pendingPlanName;
}
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RejectEntitlementPlanChangeRequest::class, 'Google_Service_CloudCommercePartnerProcurementService_RejectEntitlementPlanChangeRequest');
@@ -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\CloudCommercePartnerProcurementService;
class RejectEntitlementRequest extends \Google\Model
{
/**
* @var string
*/
public $reason;
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RejectEntitlementRequest::class, 'Google_Service_CloudCommercePartnerProcurementService_RejectEntitlementRequest');
@@ -0,0 +1,25 @@
<?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\CloudCommercePartnerProcurementService;
class ResetAccountRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResetAccountRequest::class, 'Google_Service_CloudCommercePartnerProcurementService_ResetAccountRequest');
@@ -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\CloudCommercePartnerProcurementService\Resource;
/**
* The "providers" collection of methods.
* Typical usage is:
* <code>
* $cloudcommerceprocurementService = new Google\Service\CloudCommercePartnerProcurementService(...);
* $providers = $cloudcommerceprocurementService->providers;
* </code>
*/
class Providers extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Providers::class, 'Google_Service_CloudCommercePartnerProcurementService_Resource_Providers');
@@ -0,0 +1,120 @@
<?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\CloudCommercePartnerProcurementService\Resource;
use Google\Service\CloudCommercePartnerProcurementService\Account;
use Google\Service\CloudCommercePartnerProcurementService\ApproveAccountRequest;
use Google\Service\CloudCommercePartnerProcurementService\CloudcommerceprocurementEmpty;
use Google\Service\CloudCommercePartnerProcurementService\ListAccountsResponse;
use Google\Service\CloudCommercePartnerProcurementService\RejectAccountRequest;
use Google\Service\CloudCommercePartnerProcurementService\ResetAccountRequest;
/**
* The "accounts" collection of methods.
* Typical usage is:
* <code>
* $cloudcommerceprocurementService = new Google\Service\CloudCommercePartnerProcurementService(...);
* $accounts = $cloudcommerceprocurementService->providers_accounts;
* </code>
*/
class ProvidersAccounts extends \Google\Service\Resource
{
/**
* Grants an approval on an Account. (accounts.approve)
*
* @param string $name Required. The resource name of the account, with the
* format `providers/{providerId}/accounts/{accountId}`.
* @param ApproveAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudcommerceprocurementEmpty
* @throws \Google\Service\Exception
*/
public function approve($name, ApproveAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params], CloudcommerceprocurementEmpty::class);
}
/**
* Gets a requested Account resource. (accounts.get)
*
* @param string $name Required. The name of the account to retrieve.
* @param array $optParams Optional parameters.
* @return Account
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Account::class);
}
/**
* Lists Accounts that the provider has access to.
* (accounts.listProvidersAccounts)
*
* @param string $parent Required. The parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of entries that are requested. The
* default page size is 25 and the maximum page size is 200.
* @opt_param string pageToken The token for fetching the next page.
* @return ListAccountsResponse
* @throws \Google\Service\Exception
*/
public function listProvidersAccounts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAccountsResponse::class);
}
/**
* Rejects an approval on an Account. (accounts.reject)
*
* @param string $name Required. The resource name of the account.
* @param RejectAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudcommerceprocurementEmpty
* @throws \Google\Service\Exception
*/
public function reject($name, RejectAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reject', [$params], CloudcommerceprocurementEmpty::class);
}
/**
* Resets an Account and cancels all associated Entitlements. Partner can only
* reset accounts they own rather than customer accounts. (accounts.reset)
*
* @param string $name Required. The resource name of the account.
* @param ResetAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudcommerceprocurementEmpty
* @throws \Google\Service\Exception
*/
public function reset($name, ResetAccountRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reset', [$params], CloudcommerceprocurementEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProvidersAccounts::class, 'Google_Service_CloudCommercePartnerProcurementService_Resource_ProvidersAccounts');
@@ -0,0 +1,210 @@
<?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\CloudCommercePartnerProcurementService\Resource;
use Google\Service\CloudCommercePartnerProcurementService\ApproveEntitlementPlanChangeRequest;
use Google\Service\CloudCommercePartnerProcurementService\ApproveEntitlementRequest;
use Google\Service\CloudCommercePartnerProcurementService\CloudcommerceprocurementEmpty;
use Google\Service\CloudCommercePartnerProcurementService\Entitlement;
use Google\Service\CloudCommercePartnerProcurementService\ListEntitlementsResponse;
use Google\Service\CloudCommercePartnerProcurementService\RejectEntitlementPlanChangeRequest;
use Google\Service\CloudCommercePartnerProcurementService\RejectEntitlementRequest;
use Google\Service\CloudCommercePartnerProcurementService\SuspendEntitlementRequest;
/**
* The "entitlements" collection of methods.
* Typical usage is:
* <code>
* $cloudcommerceprocurementService = new Google\Service\CloudCommercePartnerProcurementService(...);
* $entitlements = $cloudcommerceprocurementService->providers_entitlements;
* </code>
*/
class ProvidersEntitlements extends \Google\Service\Resource
{
/**
* Approves an entitlement that is in the
* EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is
* invoked by the provider to approve the creation of the entitlement resource.
* (entitlements.approve)
*
* @param string $name Required. The resource name of the entitlement, with the
* format `providers/{providerId}/entitlements/{entitlementId}`.
* @param ApproveEntitlementRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudcommerceprocurementEmpty
* @throws \Google\Service\Exception
*/
public function approve($name, ApproveEntitlementRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('approve', [$params], CloudcommerceprocurementEmpty::class);
}
/**
* Approves an entitlement plan change that is in the
* EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method
* is invoked by the provider to approve the plan change on the entitlement
* resource. (entitlements.approvePlanChange)
*
* @param string $name Required. The resource name of the entitlement.
* @param ApproveEntitlementPlanChangeRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudcommerceprocurementEmpty
* @throws \Google\Service\Exception
*/
public function approvePlanChange($name, ApproveEntitlementPlanChangeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('approvePlanChange', [$params], CloudcommerceprocurementEmpty::class);
}
/**
* Gets a requested Entitlement resource. (entitlements.get)
*
* @param string $name Required. The name of the entitlement to retrieve.
* @param array $optParams Optional parameters.
* @return Entitlement
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Entitlement::class);
}
/**
* Lists Entitlements for which the provider has read access.
* (entitlements.listProvidersEntitlements)
*
* @param string $parent Required. The parent resource name.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The filter that can be used to limit the list
* request. The filter is a query string that can match a selected set of
* attributes with string values. For example `account=E-1234-5678-ABCD-EFGH`,
* `state=pending_cancellation`, and `plan!=foo-plan`. Supported query
* attributes are * `account` * `customer_billing_account` with value in the
* format of: `billingAccounts/{id}` * `product_external_name` *
* `quote_external_name` * `offer` * `new_pending_offer` * `plan` *
* `newPendingPlan` or `new_pending_plan` * `state` * `consumers.project` *
* `change_history.new_offer` Note that the consumers and
* change_history.new_offer match works on repeated structures, so equality
* (`consumers.project=projects/123456789`) is not supported. Set membership can
* be expressed with the `:` operator. For example,
* `consumers.project:projects/123456789` finds entitlements with at least one
* consumer with project field equal to `projects/123456789`.
* `change_history.new_offer` retrieves all entitlements that were once
* associated or are currently active with the offer. Also note that the state
* name match is case-insensitive and query can omit the prefix "ENTITLEMENT_".
* For example, `state=active` is equivalent to `state=ENTITLEMENT_ACTIVE`. If
* the query contains some special characters other than letters, underscore, or
* digits, the phrase must be quoted with double quotes. For example,
* `product="providerId:productId"`, where the product name needs to be quoted
* because it contains special character colon. Queries can be combined with
* `AND`, `OR`, and `NOT` to form more complex queries. They can also be grouped
* to force a desired evaluation order. For example, `state=active AND
* (account=E-1234 OR account=5678) AND NOT (product=foo-product)`. Connective
* `AND` can be omitted between two predicates. For example `account=E-1234
* state=active` is equivalent to `account=E-1234 AND state=active`.
* @opt_param int pageSize The maximum number of entries that are requested. The
* default page size is 200.
* @opt_param string pageToken The token for fetching the next page.
* @return ListEntitlementsResponse
* @throws \Google\Service\Exception
*/
public function listProvidersEntitlements($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEntitlementsResponse::class);
}
/**
* Updates an existing Entitlement. (entitlements.patch)
*
* @param string $name Required. The name of the entitlement to update.
* @param Entitlement $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The update mask that applies to the resource.
* See the [FieldMask definition] (https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask) for more details.
* @return Entitlement
* @throws \Google\Service\Exception
*/
public function patch($name, Entitlement $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Entitlement::class);
}
/**
* Rejects an entitlement that is in the
* EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is
* invoked by the provider to reject the creation of the entitlement resource.
* (entitlements.reject)
*
* @param string $name Required. The resource name of the entitlement.
* @param RejectEntitlementRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudcommerceprocurementEmpty
* @throws \Google\Service\Exception
*/
public function reject($name, RejectEntitlementRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reject', [$params], CloudcommerceprocurementEmpty::class);
}
/**
* Rejects an entitlement plan change that is in the
* EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method
* is invoked by the provider to reject the plan change on the entitlement
* resource. (entitlements.rejectPlanChange)
*
* @param string $name Required. The resource name of the entitlement.
* @param RejectEntitlementPlanChangeRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudcommerceprocurementEmpty
* @throws \Google\Service\Exception
*/
public function rejectPlanChange($name, RejectEntitlementPlanChangeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rejectPlanChange', [$params], CloudcommerceprocurementEmpty::class);
}
/**
* Requests suspension of an active Entitlement. This is not yet supported.
* (entitlements.suspend)
*
* @param string $name Required. The name of the entitlement to suspend.
* @param SuspendEntitlementRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudcommerceprocurementEmpty
* @throws \Google\Service\Exception
*/
public function suspend($name, SuspendEntitlementRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('suspend', [$params], CloudcommerceprocurementEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProvidersEntitlements::class, 'Google_Service_CloudCommercePartnerProcurementService_Resource_ProvidersEntitlements');
@@ -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\CloudCommercePartnerProcurementService;
class SuspendEntitlementRequest extends \Google\Model
{
/**
* @var string
*/
public $reason;
/**
* @param string
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SuspendEntitlementRequest::class, 'Google_Service_CloudCommercePartnerProcurementService_SuspendEntitlementRequest');