[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service;
|
---|
| 19 |
|
---|
| 20 | use Google\Client;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * Service definition for DataTransfer (datatransfer_v1).
|
---|
| 24 | *
|
---|
| 25 | * <p>
|
---|
| 26 | * Admin SDK lets administrators of enterprise domains to view and manage
|
---|
| 27 | * resources like user, groups etc. It also provides audit and usage reports of
|
---|
| 28 | * domain.</p>
|
---|
| 29 | *
|
---|
| 30 | * <p>
|
---|
| 31 | * For more information about this service, see the API
|
---|
| 32 | * <a href="https://developers.google.com/admin-sdk/" target="_blank">Documentation</a>
|
---|
| 33 | * </p>
|
---|
| 34 | *
|
---|
| 35 | * @author Google, Inc.
|
---|
| 36 | */
|
---|
| 37 | class DataTransfer extends \Google\Service
|
---|
| 38 | {
|
---|
| 39 | /** View and manage data transfers between users in your organization. */
|
---|
| 40 | const ADMIN_DATATRANSFER =
|
---|
| 41 | "https://www.googleapis.com/auth/admin.datatransfer";
|
---|
| 42 | /** View data transfers between users in your organization. */
|
---|
| 43 | const ADMIN_DATATRANSFER_READONLY =
|
---|
| 44 | "https://www.googleapis.com/auth/admin.datatransfer.readonly";
|
---|
| 45 |
|
---|
| 46 | public $applications;
|
---|
| 47 | public $transfers;
|
---|
| 48 | public $rootUrlTemplate;
|
---|
| 49 |
|
---|
| 50 | /**
|
---|
| 51 | * Constructs the internal representation of the DataTransfer service.
|
---|
| 52 | *
|
---|
| 53 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
| 54 | * config array to pass to a new Client instance.
|
---|
| 55 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
| 56 | */
|
---|
| 57 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
| 58 | {
|
---|
| 59 | parent::__construct($clientOrConfig);
|
---|
| 60 | $this->rootUrl = $rootUrl ?: 'https://admin.googleapis.com/';
|
---|
| 61 | $this->rootUrlTemplate = $rootUrl ?: 'https://admin.UNIVERSE_DOMAIN/';
|
---|
| 62 | $this->servicePath = '';
|
---|
| 63 | $this->batchPath = 'batch';
|
---|
| 64 | $this->version = 'datatransfer_v1';
|
---|
| 65 | $this->serviceName = 'admin';
|
---|
| 66 |
|
---|
| 67 | $this->applications = new DataTransfer\Resource\Applications(
|
---|
| 68 | $this,
|
---|
| 69 | $this->serviceName,
|
---|
| 70 | 'applications',
|
---|
| 71 | [
|
---|
| 72 | 'methods' => [
|
---|
| 73 | 'get' => [
|
---|
| 74 | 'path' => 'admin/datatransfer/v1/applications/{applicationId}',
|
---|
| 75 | 'httpMethod' => 'GET',
|
---|
| 76 | 'parameters' => [
|
---|
| 77 | 'applicationId' => [
|
---|
| 78 | 'location' => 'path',
|
---|
| 79 | 'type' => 'string',
|
---|
| 80 | 'required' => true,
|
---|
| 81 | ],
|
---|
| 82 | ],
|
---|
| 83 | ],'list' => [
|
---|
| 84 | 'path' => 'admin/datatransfer/v1/applications',
|
---|
| 85 | 'httpMethod' => 'GET',
|
---|
| 86 | 'parameters' => [
|
---|
| 87 | 'customerId' => [
|
---|
| 88 | 'location' => 'query',
|
---|
| 89 | 'type' => 'string',
|
---|
| 90 | ],
|
---|
| 91 | 'maxResults' => [
|
---|
| 92 | 'location' => 'query',
|
---|
| 93 | 'type' => 'integer',
|
---|
| 94 | ],
|
---|
| 95 | 'pageToken' => [
|
---|
| 96 | 'location' => 'query',
|
---|
| 97 | 'type' => 'string',
|
---|
| 98 | ],
|
---|
| 99 | ],
|
---|
| 100 | ],
|
---|
| 101 | ]
|
---|
| 102 | ]
|
---|
| 103 | );
|
---|
| 104 | $this->transfers = new DataTransfer\Resource\Transfers(
|
---|
| 105 | $this,
|
---|
| 106 | $this->serviceName,
|
---|
| 107 | 'transfers',
|
---|
| 108 | [
|
---|
| 109 | 'methods' => [
|
---|
| 110 | 'get' => [
|
---|
| 111 | 'path' => 'admin/datatransfer/v1/transfers/{dataTransferId}',
|
---|
| 112 | 'httpMethod' => 'GET',
|
---|
| 113 | 'parameters' => [
|
---|
| 114 | 'dataTransferId' => [
|
---|
| 115 | 'location' => 'path',
|
---|
| 116 | 'type' => 'string',
|
---|
| 117 | 'required' => true,
|
---|
| 118 | ],
|
---|
| 119 | ],
|
---|
| 120 | ],'insert' => [
|
---|
| 121 | 'path' => 'admin/datatransfer/v1/transfers',
|
---|
| 122 | 'httpMethod' => 'POST',
|
---|
| 123 | 'parameters' => [],
|
---|
| 124 | ],'list' => [
|
---|
| 125 | 'path' => 'admin/datatransfer/v1/transfers',
|
---|
| 126 | 'httpMethod' => 'GET',
|
---|
| 127 | 'parameters' => [
|
---|
| 128 | 'customerId' => [
|
---|
| 129 | 'location' => 'query',
|
---|
| 130 | 'type' => 'string',
|
---|
| 131 | ],
|
---|
| 132 | 'maxResults' => [
|
---|
| 133 | 'location' => 'query',
|
---|
| 134 | 'type' => 'integer',
|
---|
| 135 | ],
|
---|
| 136 | 'newOwnerUserId' => [
|
---|
| 137 | 'location' => 'query',
|
---|
| 138 | 'type' => 'string',
|
---|
| 139 | ],
|
---|
| 140 | 'oldOwnerUserId' => [
|
---|
| 141 | 'location' => 'query',
|
---|
| 142 | 'type' => 'string',
|
---|
| 143 | ],
|
---|
| 144 | 'pageToken' => [
|
---|
| 145 | 'location' => 'query',
|
---|
| 146 | 'type' => 'string',
|
---|
| 147 | ],
|
---|
| 148 | 'status' => [
|
---|
| 149 | 'location' => 'query',
|
---|
| 150 | 'type' => 'string',
|
---|
| 151 | ],
|
---|
| 152 | ],
|
---|
| 153 | ],
|
---|
| 154 | ]
|
---|
| 155 | ]
|
---|
| 156 | );
|
---|
| 157 | }
|
---|
| 158 | }
|
---|
| 159 |
|
---|
| 160 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 161 | class_alias(DataTransfer::class, 'Google_Service_DataTransfer');
|
---|