PluginProbe
WP-Stateless – Google Cloud Storage / 3.0.4
WP-Stateless – Google Cloud Storage v3.0.4
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 / DefaultObjectAccessControls.php

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

164 lines 7.2 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 "defaultObjectAccessControls" collection of methods.
20 * Typical usage is:
21 * <code>
22 * $storageService = new Google_Service_Storage(...);
23 * $defaultObjectAccessControls = $storageService->defaultObjectAccessControls;
24 * </code>
25 */
26 namespace wpCloud\StatelessMedia\Google_Client;
27
28 class Google_Service_Storage_Resource_DefaultObjectAccessControls extends Google_Service_Resource
29 {
30 /**
31 * Permanently deletes the default object ACL entry for the specified entity on
32 * the specified bucket. (defaultObjectAccessControls.delete)
33 *
34 * @param string $bucket Name of a bucket.
35 * @param string $entity The entity holding the permission. Can be user-userId,
36 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
37 * allAuthenticatedUsers.
38 * @param array $optParams Optional parameters.
39 *
40 * @opt_param string provisionalUserProject The project to be billed for this
41 * request if the target bucket is requester-pays bucket.
42 * @opt_param string userProject The project to be billed for this request.
43 * Required for Requester Pays buckets.
44 */
45 public function delete($bucket, $entity, $optParams = array())
46 {
47 $params = array('bucket' => $bucket, 'entity' => $entity);
48 $params = array_merge($params, $optParams);
49 return $this->call('delete', array($params));
50 }
51 /**
52 * Returns the default object ACL entry for the specified entity on the
53 * specified bucket. (defaultObjectAccessControls.get)
54 *
55 * @param string $bucket Name of a bucket.
56 * @param string $entity The entity holding the permission. Can be user-userId,
57 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
58 * allAuthenticatedUsers.
59 * @param array $optParams Optional parameters.
60 *
61 * @opt_param string provisionalUserProject The project to be billed for this
62 * request if the target bucket is requester-pays bucket.
63 * @opt_param string userProject The project to be billed for this request.
64 * Required for Requester Pays buckets.
65 * @return Google_Service_Storage_ObjectAccessControl
66 */
67 public function get($bucket, $entity, $optParams = array())
68 {
69 $params = array('bucket' => $bucket, 'entity' => $entity);
70 $params = array_merge($params, $optParams);
71 return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
72 }
73 /**
74 * Creates a new default object ACL entry on the specified bucket.
75 * (defaultObjectAccessControls.insert)
76 *
77 * @param string $bucket Name of a bucket.
78 * @param Google_Service_Storage_ObjectAccessControl $postBody
79 * @param array $optParams Optional parameters.
80 *
81 * @opt_param string provisionalUserProject The project to be billed for this
82 * request if the target bucket is requester-pays bucket.
83 * @opt_param string userProject The project to be billed for this request.
84 * Required for Requester Pays buckets.
85 * @return Google_Service_Storage_ObjectAccessControl
86 */
87 public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
88 {
89 $params = array('bucket' => $bucket, 'postBody' => $postBody);
90 $params = array_merge($params, $optParams);
91 return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
92 }
93 /**
94 * Retrieves default object ACL entries on the specified bucket.
95 * (defaultObjectAccessControls.listDefaultObjectAccessControls)
96 *
97 * @param string $bucket Name of a bucket.
98 * @param array $optParams Optional parameters.
99 *
100 * @opt_param string ifMetagenerationMatch If present, only return default ACL
101 * listing if the bucket's current metageneration matches this value.
102 * @opt_param string ifMetagenerationNotMatch If present, only return default
103 * ACL listing if the bucket's current metageneration does not match the given
104 * value.
105 * @opt_param string provisionalUserProject The project to be billed for this
106 * request if the target bucket is requester-pays bucket.
107 * @opt_param string userProject The project to be billed for this request.
108 * Required for Requester Pays buckets.
109 * @return Google_Service_Storage_ObjectAccessControls
110 */
111 public function listDefaultObjectAccessControls($bucket, $optParams = array())
112 {
113 $params = array('bucket' => $bucket);
114 $params = array_merge($params, $optParams);
115 return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
116 }
117 /**
118 * Patches a default object ACL entry on the specified bucket.
119 * (defaultObjectAccessControls.patch)
120 *
121 * @param string $bucket Name of a bucket.
122 * @param string $entity The entity holding the permission. Can be user-userId,
123 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
124 * allAuthenticatedUsers.
125 * @param Google_Service_Storage_ObjectAccessControl $postBody
126 * @param array $optParams Optional parameters.
127 *
128 * @opt_param string provisionalUserProject The project to be billed for this
129 * request if the target bucket is requester-pays bucket.
130 * @opt_param string userProject The project to be billed for this request.
131 * Required for Requester Pays buckets.
132 * @return Google_Service_Storage_ObjectAccessControl
133 */
134 public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
135 {
136 $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
137 $params = array_merge($params, $optParams);
138 return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
139 }
140 /**
141 * Updates a default object ACL entry on the specified bucket.
142 * (defaultObjectAccessControls.update)
143 *
144 * @param string $bucket Name of a bucket.
145 * @param string $entity The entity holding the permission. Can be user-userId,
146 * user-emailAddress, group-groupId, group-emailAddress, allUsers, or
147 * allAuthenticatedUsers.
148 * @param Google_Service_Storage_ObjectAccessControl $postBody
149 * @param array $optParams Optional parameters.
150 *
151 * @opt_param string provisionalUserProject The project to be billed for this
152 * request if the target bucket is requester-pays bucket.
153 * @opt_param string userProject The project to be billed for this request.
154 * Required for Requester Pays buckets.
155 * @return Google_Service_Storage_ObjectAccessControl
156 */
157 public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
158 {
159 $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
160 $params = array_merge($params, $optParams);
161 return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
162 }
163 }
164