* The My Business Account Management API provides an interface for managing * access to a location on Google.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class MyBusinessAccountManagement extends \Google\Service { public $accounts; public $accounts_admins; public $accounts_invitations; public $locations; public $locations_admins; /** * Constructs the internal representation of the MyBusinessAccountManagement * service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://mybusinessaccountmanagement.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'mybusinessaccountmanagement'; $this->accounts = new MyBusinessAccountManagement\Resource\Accounts( $this, $this->serviceName, 'accounts', [ 'methods' => [ 'create' => [ 'path' => 'v1/accounts', 'httpMethod' => 'POST', 'parameters' => [], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/accounts', 'httpMethod' => 'GET', 'parameters' => [ 'filter' => [ 'location' => 'query', 'type' => 'string', ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], 'parentAccount' => [ 'location' => 'query', 'type' => 'string', ], ], ],'patch' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], 'validateOnly' => [ 'location' => 'query', 'type' => 'boolean', ], ], ], ] ] ); $this->accounts_admins = new MyBusinessAccountManagement\Resource\AccountsAdmins( $this, $this->serviceName, 'admins', [ 'methods' => [ 'create' => [ 'path' => 'v1/{+parent}/admins', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'delete' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/admins', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'patch' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->accounts_invitations = new MyBusinessAccountManagement\Resource\AccountsInvitations( $this, $this->serviceName, 'invitations', [ 'methods' => [ 'accept' => [ 'path' => 'v1/{+name}:accept', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'decline' => [ 'path' => 'v1/{+name}:decline', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/invitations', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'filter' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->locations = new MyBusinessAccountManagement\Resource\Locations( $this, $this->serviceName, 'locations', [ 'methods' => [ 'transfer' => [ 'path' => 'v1/{+name}:transfer', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->locations_admins = new MyBusinessAccountManagement\Resource\LocationsAdmins( $this, $this->serviceName, 'admins', [ 'methods' => [ 'create' => [ 'path' => 'v1/{+parent}/admins', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'delete' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/admins', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'patch' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(MyBusinessAccountManagement::class, 'Google_Service_MyBusinessAccountManagement');