PluginProbe
UpdraftPlus: WP Backup & Migration Plugin / 1.16.5
UpdraftPlus: WP Backup & Migration Plugin v1.16.5
1.26.7 1.26.6 1.26.5 1.26.4 1.26.3 1.9.19 1.9.25 1.9.26 1.9.30 1.9.31 1.9.32 1.9.4 1.9.40 1.9.41 1.9.42 1.9.43 1.9.44 1.9.45 1.9.46 1.9.5 1.9.50 1.9.51 1.9.60 1.9.62 1.9.63 All 371 releases
updraftplus / includes / Google / Service / GroupsMigration.php

GroupsMigration.php in UpdraftPlus: WP Backup & Migration Plugin 1.16.5, at includes/Google/Service/GroupsMigration.php

130 lines 3.2 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.</p>
23 *
24 * <p>
25 * For more information about this service, see the API
26 * <a href="https://developers.google.com/google-apps/groups-migration/" target="_blank">Documentation</a>
27 * </p>
28 *
29 * @author Google, Inc.
30 */
31 class Google_Service_GroupsMigration extends Google_Service
32 {
33 /** Manage messages in groups on your domain. */
34 const APPS_GROUPS_MIGRATION =
35 "https://www.googleapis.com/auth/apps.groups.migration";
36
37 public $archive;
38
39
40 /**
41 * Constructs the internal representation of the GroupsMigration service.
42 *
43 * @param Google_Client $client
44 */
45 public function __construct(Google_Client $client)
46 {
47 parent::__construct($client);
48 $this->servicePath = 'groups/v1/groups/';
49 $this->version = 'v1';
50 $this->serviceName = 'groupsmigration';
51
52 $this->archive = new Google_Service_GroupsMigration_Archive_Resource(
53 $this,
54 $this->serviceName,
55 'archive',
56 array(
57 'methods' => array(
58 'insert' => array(
59 'path' => '{groupId}/archive',
60 'httpMethod' => 'POST',
61 'parameters' => array(
62 'groupId' => array(
63 'location' => 'path',
64 'type' => 'string',
65 'required' => true,
66 ),
67 ),
68 ),
69 )
70 )
71 );
72 }
73 }
74
75
76 /**
77 * The "archive" collection of methods.
78 * Typical usage is:
79 * <code>
80 * $groupsmigrationService = new Google_Service_GroupsMigration(...);
81 * $archive = $groupsmigrationService->archive;
82 * </code>
83 */
84 class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Resource
85 {
86
87 /**
88 * Inserts a new mail into the archive of the Google group. (archive.insert)
89 *
90 * @param string $groupId 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 protected $internal_gapi_mappings = array(
108 );
109 public $kind;
110 public $responseCode;
111
112
113 public function setKind($kind)
114 {
115 $this->kind = $kind;
116 }
117 public function getKind()
118 {
119 return $this->kind;
120 }
121 public function setResponseCode($responseCode)
122 {
123 $this->responseCode = $responseCode;
124 }
125 public function getResponseCode()
126 {
127 return $this->responseCode;
128 }
129 }
130