PluginProbe
Authorizer / 2.2
Authorizer v2.2
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / inc / google-api-php-client / src / Google / Service / GroupsMigration.php

GroupsMigration.php in Authorizer 2.2, at inc/google-api-php-client/src/Google/Service/GroupsMigration.php

130 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Copyright 2010 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 GroupsMigration (v1).
20 *
21 * <p>
22 * Groups Migration Api.
23 * </p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://developers.google.com/google-apps/groups-migration/" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32 class Google_Service_GroupsMigration extends Google_Service
33 {
34
35
36 public $archive;
37
38
39 /**
40 * Constructs the internal representation of the GroupsMigration service.
41 *
42 * @param Google_Client $client
43 */
44 public function __construct(Google_Client $client)
45 {
46 parent::__construct($client);
47 $this->servicePath = 'groups/v1/groups/';
48 $this->version = 'v1';
49 $this->serviceName = 'groupsmigration';
50
51 $this->archive = new Google_Service_GroupsMigration_Archive_Resource(
52 $this,
53 $this->serviceName,
54 'archive',
55 array(
56 'methods' => array(
57 'insert' => array(
58 'path' => '{groupId}/archive',
59 'httpMethod' => 'POST',
60 'parameters' => array(
61 'groupId' => array(
62 'location' => 'path',
63 'type' => 'string',
64 'required' => true,
65 ),
66 ),
67 ),
68 )
69 )
70 );
71 }
72 }
73
74
75 /**
76 * The "archive" collection of methods.
77 * Typical usage is:
78 * <code>
79 * $groupsmigrationService = new Google_Service_GroupsMigration(...);
80 * $archive = $groupsmigrationService->archive;
81 * </code>
82 */
83 class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Resource
84 {
85
86 /**
87 * Inserts a new mail into the archive of the Google group. (archive.insert)
88 *
89 * @param string $groupId
90 * The group ID
91 * @param array $optParams Optional parameters.
92 * @return Google_Service_GroupsMigration_Groups
93 */
94 public function insert($groupId, $optParams = array())
95 {
96 $params = array('groupId' => $groupId);
97 $params = array_merge($params, $optParams);
98 return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups");
99 }
100 }
101
102
103
104
105 class Google_Service_GroupsMigration_Groups extends Google_Model
106 {
107 public $kind;
108 public $responseCode;
109
110 public function setKind($kind)
111 {
112 $this->kind = $kind;
113 }
114
115 public function getKind()
116 {
117 return $this->kind;
118 }
119
120 public function setResponseCode($responseCode)
121 {
122 $this->responseCode = $responseCode;
123 }
124
125 public function getResponseCode()
126 {
127 return $this->responseCode;
128 }
129 }
130