Edit File: Cloudchannel.php
<?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. */ /** * Service definition for Cloudchannel (v1). * * <p> </p> * * <p> * For more information about this service, see the API * <a href="https://cloud.google.com/channel" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class Google_Service_Cloudchannel extends Google_Service { /** Manage users on your domain. */ const APPS_ORDER = "https://www.googleapis.com/auth/apps.order"; public $accounts; public $accounts_channelPartnerLinks; public $accounts_channelPartnerLinks_customers; public $accounts_customers; public $accounts_customers_entitlements; public $accounts_offers; public $operations; public $products; public $products_skus; /** * Constructs the internal representation of the Cloudchannel service. * * @param Google_Client $client The client used to deliver requests. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct(Google_Client $client, $rootUrl = null) { parent::__construct($client); $this->rootUrl = $rootUrl ?: 'https://cloudchannel.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'cloudchannel'; $this->accounts = new Google_Service_Cloudchannel_Resource_Accounts( $this, $this->serviceName, 'accounts', array( 'methods' => array( 'checkCloudIdentityAccountsExist' => array( 'path' => 'v1/{+parent}:checkCloudIdentityAccountsExist', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'listSubscribers' => array( 'path' => 'v1/{+account}:listSubscribers', 'httpMethod' => 'GET', 'parameters' => array( 'account' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'listTransferableOffers' => array( 'path' => 'v1/{+parent}:listTransferableOffers', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'listTransferableSkus' => array( 'path' => 'v1/{+parent}:listTransferableSkus', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'register' => array( 'path' => 'v1/{+account}:register', 'httpMethod' => 'POST', 'parameters' => array( 'account' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'unregister' => array( 'path' => 'v1/{+account}:unregister', 'httpMethod' => 'POST', 'parameters' => array( 'account' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->accounts_channelPartnerLinks = new Google_Service_Cloudchannel_Resource_AccountsChannelPartnerLinks( $this, $this->serviceName, 'channelPartnerLinks', array( 'methods' => array( 'create' => array( 'path' => 'v1/{+parent}/channelPartnerLinks', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'view' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'v1/{+parent}/channelPartnerLinks', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'view' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->accounts_channelPartnerLinks_customers = new Google_Service_Cloudchannel_Resource_AccountsChannelPartnerLinksCustomers( $this, $this->serviceName, 'customers', array( 'methods' => array( 'create' => array( 'path' => 'v1/{+parent}/customers', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+parent}/customers', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->accounts_customers = new Google_Service_Cloudchannel_Resource_AccountsCustomers( $this, $this->serviceName, 'customers', array( 'methods' => array( 'create' => array( 'path' => 'v1/{+parent}/customers', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+parent}/customers', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'listPurchasableOffers' => array( 'path' => 'v1/{+customer}:listPurchasableOffers', 'httpMethod' => 'GET', 'parameters' => array( 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'changeOfferPurchase.entitlement' => array( 'location' => 'query', 'type' => 'string', ), 'changeOfferPurchase.newSku' => array( 'location' => 'query', 'type' => 'string', ), 'createEntitlementPurchase.sku' => array( 'location' => 'query', 'type' => 'string', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'listPurchasableSkus' => array( 'path' => 'v1/{+customer}:listPurchasableSkus', 'httpMethod' => 'GET', 'parameters' => array( 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'changeOfferPurchase.changeType' => array( 'location' => 'query', 'type' => 'string', ), 'changeOfferPurchase.entitlement' => array( 'location' => 'query', 'type' => 'string', ), 'createEntitlementPurchase.product' => array( 'location' => 'query', 'type' => 'string', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'patch' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'updateMask' => array( 'location' => 'query', 'type' => 'string', ), ), ),'provisionCloudIdentity' => array( 'path' => 'v1/{+customer}:provisionCloudIdentity', 'httpMethod' => 'POST', 'parameters' => array( 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'transferEntitlements' => array( 'path' => 'v1/{+parent}:transferEntitlements', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'transferEntitlementsToGoogle' => array( 'path' => 'v1/{+parent}:transferEntitlementsToGoogle', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->accounts_customers_entitlements = new Google_Service_Cloudchannel_Resource_AccountsCustomersEntitlements( $this, $this->serviceName, 'entitlements', array( 'methods' => array( 'activate' => array( 'path' => 'v1/{+name}:activate', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'cancel' => array( 'path' => 'v1/{+name}:cancel', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'changeOffer' => array( 'path' => 'v1/{+name}:changeOffer', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'changeParameters' => array( 'path' => 'v1/{+name}:changeParameters', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'changeRenewalSettings' => array( 'path' => 'v1/{+name}:changeRenewalSettings', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'create' => array( 'path' => 'v1/{+parent}/entitlements', 'httpMethod' => 'POST', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+parent}/entitlements', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'lookupOffer' => array( 'path' => 'v1/{+entitlement}:lookupOffer', 'httpMethod' => 'GET', 'parameters' => array( 'entitlement' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'startPaidService' => array( 'path' => 'v1/{+name}:startPaidService', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'suspend' => array( 'path' => 'v1/{+name}:suspend', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->accounts_offers = new Google_Service_Cloudchannel_Resource_AccountsOffers( $this, $this->serviceName, 'offers', array( 'methods' => array( 'list' => array( 'path' => 'v1/{+parent}/offers', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->operations = new Google_Service_Cloudchannel_Resource_Operations( $this, $this->serviceName, 'operations', array( 'methods' => array( 'cancel' => array( 'path' => 'v1/{+name}:cancel', 'httpMethod' => 'POST', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'filter' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->products = new Google_Service_Cloudchannel_Resource_Products( $this, $this->serviceName, 'products', array( 'methods' => array( 'list' => array( 'path' => 'v1/products', 'httpMethod' => 'GET', 'parameters' => array( 'account' => array( 'location' => 'query', 'type' => 'string', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->products_skus = new Google_Service_Cloudchannel_Resource_ProductsSkus( $this, $this->serviceName, 'skus', array( 'methods' => array( 'list' => array( 'path' => 'v1/{+parent}/skus', 'httpMethod' => 'GET', 'parameters' => array( 'parent' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'account' => array( 'location' => 'query', 'type' => 'string', ), 'languageCode' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); } }