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/** 19 * Service definition for Licensing (v1). 20 * 21 * <p> 22 * Views and manages licenses for your domain.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/google-apps/licensing/" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_Licensing extends Google_Service 32{ 33 /** View and manage G Suite licenses for your domain. */ 34 const APPS_LICENSING = 35 "https://www.googleapis.com/auth/apps.licensing"; 36 37 public $licenseAssignments; 38 39 /** 40 * Constructs the internal representation of the Licensing service. 41 * 42 * @param Google_Client $client 43 */ 44 public function __construct(Google_Client $client) 45 { 46 parent::__construct($client); 47 $this->rootUrl = 'https://www.googleapis.com/'; 48 $this->servicePath = 'apps/licensing/v1/product/'; 49 $this->batchPath = 'batch/licensing/v1'; 50 $this->version = 'v1'; 51 $this->serviceName = 'licensing'; 52 53 $this->licenseAssignments = new Google_Service_Licensing_Resource_LicenseAssignments( 54 $this, 55 $this->serviceName, 56 'licenseAssignments', 57 array( 58 'methods' => array( 59 'delete' => array( 60 'path' => '{productId}/sku/{skuId}/user/{userId}', 61 'httpMethod' => 'DELETE', 62 'parameters' => array( 63 'productId' => array( 64 'location' => 'path', 65 'type' => 'string', 66 'required' => true, 67 ), 68 'skuId' => array( 69 'location' => 'path', 70 'type' => 'string', 71 'required' => true, 72 ), 73 'userId' => array( 74 'location' => 'path', 75 'type' => 'string', 76 'required' => true, 77 ), 78 ), 79 ),'get' => array( 80 'path' => '{productId}/sku/{skuId}/user/{userId}', 81 'httpMethod' => 'GET', 82 'parameters' => array( 83 'productId' => array( 84 'location' => 'path', 85 'type' => 'string', 86 'required' => true, 87 ), 88 'skuId' => array( 89 'location' => 'path', 90 'type' => 'string', 91 'required' => true, 92 ), 93 'userId' => array( 94 'location' => 'path', 95 'type' => 'string', 96 'required' => true, 97 ), 98 ), 99 ),'insert' => array( 100 'path' => '{productId}/sku/{skuId}/user', 101 'httpMethod' => 'POST', 102 'parameters' => array( 103 'productId' => array( 104 'location' => 'path', 105 'type' => 'string', 106 'required' => true, 107 ), 108 'skuId' => array( 109 'location' => 'path', 110 'type' => 'string', 111 'required' => true, 112 ), 113 ), 114 ),'listForProduct' => array( 115 'path' => '{productId}/users', 116 'httpMethod' => 'GET', 117 'parameters' => array( 118 'productId' => array( 119 'location' => 'path', 120 'type' => 'string', 121 'required' => true, 122 ), 123 'customerId' => array( 124 'location' => 'query', 125 'type' => 'string', 126 'required' => true, 127 ), 128 'maxResults' => array( 129 'location' => 'query', 130 'type' => 'integer', 131 ), 132 'pageToken' => array( 133 'location' => 'query', 134 'type' => 'string', 135 ), 136 ), 137 ),'listForProductAndSku' => array( 138 'path' => '{productId}/sku/{skuId}/users', 139 'httpMethod' => 'GET', 140 'parameters' => array( 141 'productId' => array( 142 'location' => 'path', 143 'type' => 'string', 144 'required' => true, 145 ), 146 'skuId' => array( 147 'location' => 'path', 148 'type' => 'string', 149 'required' => true, 150 ), 151 'customerId' => array( 152 'location' => 'query', 153 'type' => 'string', 154 'required' => true, 155 ), 156 'maxResults' => array( 157 'location' => 'query', 158 'type' => 'integer', 159 ), 160 'pageToken' => array( 161 'location' => 'query', 162 'type' => 'string', 163 ), 164 ), 165 ),'patch' => array( 166 'path' => '{productId}/sku/{skuId}/user/{userId}', 167 'httpMethod' => 'PATCH', 168 'parameters' => array( 169 'productId' => array( 170 'location' => 'path', 171 'type' => 'string', 172 'required' => true, 173 ), 174 'skuId' => array( 175 'location' => 'path', 176 'type' => 'string', 177 'required' => true, 178 ), 179 'userId' => array( 180 'location' => 'path', 181 'type' => 'string', 182 'required' => true, 183 ), 184 ), 185 ),'update' => array( 186 'path' => '{productId}/sku/{skuId}/user/{userId}', 187 'httpMethod' => 'PUT', 188 'parameters' => array( 189 'productId' => array( 190 'location' => 'path', 191 'type' => 'string', 192 'required' => true, 193 ), 194 'skuId' => array( 195 'location' => 'path', 196 'type' => 'string', 197 'required' => true, 198 ), 199 'userId' => array( 200 'location' => 'path', 201 'type' => 'string', 202 'required' => true, 203 ), 204 ), 205 ), 206 ) 207 ) 208 ); 209 } 210} 211