PluginProbe
WP-Stateless – Google Cloud Storage / 3.0.3
WP-Stateless – Google Cloud Storage v3.0.3
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
wp-stateless / lib / Google / src / Google / Service / Storage / Resource / ObjectAccessControls.php

ObjectAccessControls.php in WP-Stateless – Google Cloud Storage 3.0.3, at lib/Google/src/Google/Service/Storage/Resource/ObjectAccessControls.php

181 lines 8.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 * The "objectAccessControls" collection of methods.
20 * Typical usage is:
21 * <code>
22 * $storageService = new Google_Service_Storage(...);
23 * $objectAccessControls = $storageService->objectAccessControls;
24 * </code>
25 */
26 namespace wpCloud\StatelessMedia\Google_Client;
27
28 class Google_Service_Storage_Resource_ObjectAccessControls extends Google_Service_Resource
29 {
30 /**
31 * Permanently deletes the ACL entry for the specified entity on the specified
32 * object. (objectAccessControls.delete)
33 *
34 * @param string $bucket Name of a bucket.
35 * @param string $object Name of the object. For information about how to URL
36 * encode object names to be path safe, see Encoding URI Path Parts.
37 * @param string $entity The entity holding the permission. Can be user-userId,
38 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
39 * allAuthenticatedUsers.
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string generation If present, selects a specific revision of this
43 * object (as opposed to the latest version, the default).
44 * @opt_param string provisionalUserProject The project to be billed for this
45 * request if the target bucket is requester-pays bucket.
46 * @opt_param string userProject The project to be billed for this request.
47 * Required for Requester Pays buckets.
48 */
49 public function delete($bucket, $object, $entity, $optParams = array())
50 {
51 $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
52 $params = array_merge($params, $optParams);
53 return $this->call('delete', array($params));
54 }
55 /**
56 * Returns the ACL entry for the specified entity on the specified object.
57 * (objectAccessControls.get)
58 *
59 * @param string $bucket Name of a bucket.
60 * @param string $object Name of the object. For information about how to URL
61 * encode object names to be path safe, see Encoding URI Path Parts.
62 * @param string $entity The entity holding the permission. Can be user-userId,
63 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
64 * allAuthenticatedUsers.
65 * @param array $optParams Optional parameters.
66 *
67 * @opt_param string generation If present, selects a specific revision of this
68 * object (as opposed to the latest version, the default).
69 * @opt_param string provisionalUserProject The project to be billed for this
70 * request if the target bucket is requester-pays bucket.
71 * @opt_param string userProject The project to be billed for this request.
72 * Required for Requester Pays buckets.
73 * @return Google_Service_Storage_ObjectAccessControl
74 */
75 public function get($bucket, $object, $entity, $optParams = array())
76 {
77 $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
78 $params = array_merge($params, $optParams);
79 return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
80 }
81 /**
82 * Creates a new ACL entry on the specified object.
83 * (objectAccessControls.insert)
84 *
85 * @param string $bucket Name of a bucket.
86 * @param string $object Name of the object. For information about how to URL
87 * encode object names to be path safe, see Encoding URI Path Parts.
88 * @param Google_Service_Storage_ObjectAccessControl $postBody
89 * @param array $optParams Optional parameters.
90 *
91 * @opt_param string generation If present, selects a specific revision of this
92 * object (as opposed to the latest version, the default).
93 * @opt_param string provisionalUserProject The project to be billed for this
94 * request if the target bucket is requester-pays bucket.
95 * @opt_param string userProject The project to be billed for this request.
96 * Required for Requester Pays buckets.
97 * @return Google_Service_Storage_ObjectAccessControl
98 */
99 public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
100 {
101 $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
102 $params = array_merge($params, $optParams);
103 return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
104 }
105 /**
106 * Retrieves ACL entries on the specified object.
107 * (objectAccessControls.listObjectAccessControls)
108 *
109 * @param string $bucket Name of a bucket.
110 * @param string $object Name of the object. For information about how to URL
111 * encode object names to be path safe, see Encoding URI Path Parts.
112 * @param array $optParams Optional parameters.
113 *
114 * @opt_param string generation If present, selects a specific revision of this
115 * object (as opposed to the latest version, the default).
116 * @opt_param string provisionalUserProject The project to be billed for this
117 * request if the target bucket is requester-pays bucket.
118 * @opt_param string userProject The project to be billed for this request.
119 * Required for Requester Pays buckets.
120 * @return Google_Service_Storage_ObjectAccessControls
121 */
122 public function listObjectAccessControls($bucket, $object, $optParams = array())
123 {
124 $params = array('bucket' => $bucket, 'object' => $object);
125 $params = array_merge($params, $optParams);
126 return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
127 }
128 /**
129 * Patches an ACL entry on the specified object. (objectAccessControls.patch)
130 *
131 * @param string $bucket Name of a bucket.
132 * @param string $object Name of the object. For information about how to URL
133 * encode object names to be path safe, see Encoding URI Path Parts.
134 * @param string $entity The entity holding the permission. Can be user-userId,
135 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
136 * allAuthenticatedUsers.
137 * @param Google_Service_Storage_ObjectAccessControl $postBody
138 * @param array $optParams Optional parameters.
139 *
140 * @opt_param string generation If present, selects a specific revision of this
141 * object (as opposed to the latest version, the default).
142 * @opt_param string provisionalUserProject The project to be billed for this
143 * request if the target bucket is requester-pays bucket.
144 * @opt_param string userProject The project to be billed for this request.
145 * Required for Requester Pays buckets.
146 * @return Google_Service_Storage_ObjectAccessControl
147 */
148 public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
149 {
150 $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
151 $params = array_merge($params, $optParams);
152 return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
153 }
154 /**
155 * Updates an ACL entry on the specified object. (objectAccessControls.update)
156 *
157 * @param string $bucket Name of a bucket.
158 * @param string $object Name of the object. For information about how to URL
159 * encode object names to be path safe, see Encoding URI Path Parts.
160 * @param string $entity The entity holding the permission. Can be user-userId,
161 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
162 * allAuthenticatedUsers.
163 * @param Google_Service_Storage_ObjectAccessControl $postBody
164 * @param array $optParams Optional parameters.
165 *
166 * @opt_param string generation If present, selects a specific revision of this
167 * object (as opposed to the latest version, the default).
168 * @opt_param string provisionalUserProject The project to be billed for this
169 * request if the target bucket is requester-pays bucket.
170 * @opt_param string userProject The project to be billed for this request.
171 * Required for Requester Pays buckets.
172 * @return Google_Service_Storage_ObjectAccessControl
173 */
174 public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
175 {
176 $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
177 $params = array_merge($params, $optParams);
178 return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
179 }
180 }
181