@maxim_mazurok/gapi.client.storage-v1 0.0.20220806
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3246 -0
- package/package.json +20 -0
- package/readme.md +310 -0
- package/tests.ts +1508 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,3246 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud Storage JSON API v1 0.0 */
|
|
2
|
+
// Project: https://developers.google.com/storage/docs/json_api/
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://storage.googleapis.com/$discovery/rest?version=v1
|
|
13
|
+
// Revision: 20220806
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud Storage JSON API v1 */
|
|
19
|
+
function load(urlOrObject: "https://storage.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "storage", version: "v1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "storage", version: "v1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace storage {
|
|
26
|
+
interface Bucket {
|
|
27
|
+
/** Access controls on the bucket. */
|
|
28
|
+
acl?: BucketAccessControl[];
|
|
29
|
+
/** The bucket's Autoclass configuration. */
|
|
30
|
+
autoclass?: {
|
|
31
|
+
/** Whether or not Autoclass is enabled on this bucket */
|
|
32
|
+
enabled?: boolean;
|
|
33
|
+
/** A date and time in RFC 3339 format representing the instant at which "enabled" was last toggled. */
|
|
34
|
+
toggleTime?: string;
|
|
35
|
+
};
|
|
36
|
+
/** The bucket's billing configuration. */
|
|
37
|
+
billing?: {
|
|
38
|
+
/** When set to true, Requester Pays is enabled for this bucket. */
|
|
39
|
+
requesterPays?: boolean;
|
|
40
|
+
};
|
|
41
|
+
/** The bucket's Cross-Origin Resource Sharing (CORS) configuration. */
|
|
42
|
+
cors?: Array<{
|
|
43
|
+
/** The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses. */
|
|
44
|
+
maxAgeSeconds?: number;
|
|
45
|
+
/** The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method". */
|
|
46
|
+
method?: string[];
|
|
47
|
+
/** The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin". */
|
|
48
|
+
origin?: string[];
|
|
49
|
+
/** The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains. */
|
|
50
|
+
responseHeader?: string[];
|
|
51
|
+
}>;
|
|
52
|
+
/** The bucket's custom placement configuration for Custom Dual Regions. */
|
|
53
|
+
customPlacementConfig?: {
|
|
54
|
+
/** The list of regional locations in which data is placed. */
|
|
55
|
+
dataLocations?: string[];
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the
|
|
59
|
+
* hold's release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at
|
|
60
|
+
* least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for
|
|
61
|
+
* any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins
|
|
62
|
+
* from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.
|
|
63
|
+
*/
|
|
64
|
+
defaultEventBasedHold?: boolean;
|
|
65
|
+
/** Default access controls to apply to new objects when no ACL is provided. */
|
|
66
|
+
defaultObjectAcl?: ObjectAccessControl[];
|
|
67
|
+
/** Encryption configuration for a bucket. */
|
|
68
|
+
encryption?: {
|
|
69
|
+
/** A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified. */
|
|
70
|
+
defaultKmsKeyName?: string;
|
|
71
|
+
};
|
|
72
|
+
/** HTTP 1.1 Entity tag for the bucket. */
|
|
73
|
+
etag?: string;
|
|
74
|
+
/** The bucket's IAM configuration. */
|
|
75
|
+
iamConfiguration?: {
|
|
76
|
+
/**
|
|
77
|
+
* The bucket's uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with
|
|
78
|
+
* identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.
|
|
79
|
+
*/
|
|
80
|
+
bucketPolicyOnly?: {
|
|
81
|
+
/** If set, access is controlled only by bucket-level or above IAM policies. */
|
|
82
|
+
enabled?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true
|
|
85
|
+
* to false until the locked time, after which the field is immutable.
|
|
86
|
+
*/
|
|
87
|
+
lockedTime?: string;
|
|
88
|
+
};
|
|
89
|
+
/** The bucket's Public Access Prevention configuration. Currently, 'inherited' and 'enforced' are supported. */
|
|
90
|
+
publicAccessPrevention?: string;
|
|
91
|
+
/** The bucket's uniform bucket-level access configuration. */
|
|
92
|
+
uniformBucketLevelAccess?: {
|
|
93
|
+
/** If set, access is controlled only by bucket-level or above IAM policies. */
|
|
94
|
+
enabled?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be
|
|
97
|
+
* changed from true to false until the locked time, after which the field is immutable.
|
|
98
|
+
*/
|
|
99
|
+
lockedTime?: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
/** The ID of the bucket. For buckets, the id and name properties are the same. */
|
|
103
|
+
id?: string;
|
|
104
|
+
/** The kind of item this is. For buckets, this is always storage#bucket. */
|
|
105
|
+
kind?: string;
|
|
106
|
+
/** User-provided labels, in key/value pairs. */
|
|
107
|
+
labels?: { [P in string]: string };
|
|
108
|
+
/** The bucket's lifecycle configuration. See lifecycle management for more information. */
|
|
109
|
+
lifecycle?: {
|
|
110
|
+
/** A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken. */
|
|
111
|
+
rule?: Array<{
|
|
112
|
+
/** The action to take. */
|
|
113
|
+
action?: {
|
|
114
|
+
/** Target storage class. Required iff the type of the action is SetStorageClass. */
|
|
115
|
+
storageClass?: string;
|
|
116
|
+
/** Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported. */
|
|
117
|
+
type?: string;
|
|
118
|
+
};
|
|
119
|
+
/** The condition(s) under which the action will be taken. */
|
|
120
|
+
condition?: {
|
|
121
|
+
/** Age of an object (in days). This condition is satisfied when an object reaches the specified age. */
|
|
122
|
+
age?: number;
|
|
123
|
+
/**
|
|
124
|
+
* A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when an object is created before midnight of the specified
|
|
125
|
+
* date in UTC.
|
|
126
|
+
*/
|
|
127
|
+
createdBefore?: string;
|
|
128
|
+
/** A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when the custom time on an object is before this date in UTC. */
|
|
129
|
+
customTimeBefore?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom
|
|
132
|
+
* timestamp is specified on an object, the condition does not apply.
|
|
133
|
+
*/
|
|
134
|
+
daysSinceCustomTime?: number;
|
|
135
|
+
/**
|
|
136
|
+
* Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant
|
|
137
|
+
* only for versioned objects. The value of the field must be a nonnegative integer. If it's zero, the object version will become eligible for Lifecycle action as soon as
|
|
138
|
+
* it becomes noncurrent.
|
|
139
|
+
*/
|
|
140
|
+
daysSinceNoncurrentTime?: number;
|
|
141
|
+
/** Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects. */
|
|
142
|
+
isLive?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in
|
|
145
|
+
* the "Early Access" launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that
|
|
146
|
+
* it is not guaranteed to be released.
|
|
147
|
+
*/
|
|
148
|
+
matchesPattern?: string;
|
|
149
|
+
/** List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name. */
|
|
150
|
+
matchesPrefix?: string[];
|
|
151
|
+
/**
|
|
152
|
+
* Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD,
|
|
153
|
+
* and DURABLE_REDUCED_AVAILABILITY.
|
|
154
|
+
*/
|
|
155
|
+
matchesStorageClass?: string[];
|
|
156
|
+
/** List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name. */
|
|
157
|
+
matchesSuffix?: string[];
|
|
158
|
+
/**
|
|
159
|
+
* A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when the noncurrent time on an object is before this date in
|
|
160
|
+
* UTC. This condition is relevant only for versioned objects.
|
|
161
|
+
*/
|
|
162
|
+
noncurrentTimeBefore?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this
|
|
165
|
+
* version of the object.
|
|
166
|
+
*/
|
|
167
|
+
numNewerVersions?: number;
|
|
168
|
+
};
|
|
169
|
+
}>;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the developer's guide for the authoritative
|
|
173
|
+
* list.
|
|
174
|
+
*/
|
|
175
|
+
location?: string;
|
|
176
|
+
/** The type of the bucket location. */
|
|
177
|
+
locationType?: string;
|
|
178
|
+
/** The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs. */
|
|
179
|
+
logging?: {
|
|
180
|
+
/** The destination bucket where the current bucket's logs should be placed. */
|
|
181
|
+
logBucket?: string;
|
|
182
|
+
/** A prefix for log object names. */
|
|
183
|
+
logObjectPrefix?: string;
|
|
184
|
+
};
|
|
185
|
+
/** The metadata generation of this bucket. */
|
|
186
|
+
metageneration?: string;
|
|
187
|
+
/** The name of the bucket. */
|
|
188
|
+
name?: string;
|
|
189
|
+
/** The owner of the bucket. This is always the project team's owner group. */
|
|
190
|
+
owner?: {
|
|
191
|
+
/** The entity, in the form project-owner-projectId. */
|
|
192
|
+
entity?: string;
|
|
193
|
+
/** The ID for the entity. */
|
|
194
|
+
entityId?: string;
|
|
195
|
+
};
|
|
196
|
+
/** The project number of the project the bucket belongs to. */
|
|
197
|
+
projectNumber?: string;
|
|
198
|
+
/**
|
|
199
|
+
* The bucket's retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite
|
|
200
|
+
* or delete objects younger than the retention period will result in a PERMISSION_DENIED error. An unlocked retention policy can be modified or removed from the bucket via a
|
|
201
|
+
* storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a
|
|
202
|
+
* locked retention policy will result in a PERMISSION_DENIED error.
|
|
203
|
+
*/
|
|
204
|
+
retentionPolicy?: {
|
|
205
|
+
/** Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format. */
|
|
206
|
+
effectiveTime?: string;
|
|
207
|
+
/** Once locked, an object retention policy cannot be modified. */
|
|
208
|
+
isLocked?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less
|
|
211
|
+
* than a day is not guaranteed. Such periods should only be used for testing purposes.
|
|
212
|
+
*/
|
|
213
|
+
retentionPeriod?: string;
|
|
214
|
+
};
|
|
215
|
+
/** The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket. */
|
|
216
|
+
rpo?: string;
|
|
217
|
+
/** Reserved for future use. */
|
|
218
|
+
satisfiesPZS?: boolean;
|
|
219
|
+
/** The URI of this bucket. */
|
|
220
|
+
selfLink?: string;
|
|
221
|
+
/**
|
|
222
|
+
* The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA
|
|
223
|
+
* and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the
|
|
224
|
+
* bucket is created, it will default to STANDARD. For more information, see storage classes.
|
|
225
|
+
*/
|
|
226
|
+
storageClass?: string;
|
|
227
|
+
/** The creation time of the bucket in RFC 3339 format. */
|
|
228
|
+
timeCreated?: string;
|
|
229
|
+
/** The modification time of the bucket in RFC 3339 format. */
|
|
230
|
+
updated?: string;
|
|
231
|
+
/** The bucket's versioning configuration. */
|
|
232
|
+
versioning?: {
|
|
233
|
+
/** While set to true, versioning is fully enabled for this bucket. */
|
|
234
|
+
enabled?: boolean;
|
|
235
|
+
};
|
|
236
|
+
/** The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information. */
|
|
237
|
+
website?: {
|
|
238
|
+
/**
|
|
239
|
+
* If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the
|
|
240
|
+
* creation of index.html objects to represent directory pages.
|
|
241
|
+
*/
|
|
242
|
+
mainPageSuffix?: string;
|
|
243
|
+
/**
|
|
244
|
+
* If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a
|
|
245
|
+
* 404 Not Found result.
|
|
246
|
+
*/
|
|
247
|
+
notFoundPage?: string;
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
interface BucketAccessControl {
|
|
251
|
+
/** The name of the bucket. */
|
|
252
|
+
bucket?: string;
|
|
253
|
+
/** The domain associated with the entity, if any. */
|
|
254
|
+
domain?: string;
|
|
255
|
+
/** The email address associated with the entity, if any. */
|
|
256
|
+
email?: string;
|
|
257
|
+
/**
|
|
258
|
+
* The entity holding the permission, in one of the following forms:
|
|
259
|
+
* - user-userId
|
|
260
|
+
* - user-email
|
|
261
|
+
* - group-groupId
|
|
262
|
+
* - group-email
|
|
263
|
+
* - domain-domain
|
|
264
|
+
* - project-team-projectId
|
|
265
|
+
* - allUsers
|
|
266
|
+
* - allAuthenticatedUsers Examples:
|
|
267
|
+
* - The user liz@example.com would be user-liz@example.com.
|
|
268
|
+
* - The group example@googlegroups.com would be group-example@googlegroups.com.
|
|
269
|
+
* - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
|
|
270
|
+
*/
|
|
271
|
+
entity?: string;
|
|
272
|
+
/** The ID for the entity, if any. */
|
|
273
|
+
entityId?: string;
|
|
274
|
+
/** HTTP 1.1 Entity tag for the access-control entry. */
|
|
275
|
+
etag?: string;
|
|
276
|
+
/** The ID of the access-control entry. */
|
|
277
|
+
id?: string;
|
|
278
|
+
/** The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl. */
|
|
279
|
+
kind?: string;
|
|
280
|
+
/** The project team associated with the entity, if any. */
|
|
281
|
+
projectTeam?: {
|
|
282
|
+
/** The project number. */
|
|
283
|
+
projectNumber?: string;
|
|
284
|
+
/** The team. */
|
|
285
|
+
team?: string;
|
|
286
|
+
};
|
|
287
|
+
/** The access permission for the entity. */
|
|
288
|
+
role?: string;
|
|
289
|
+
/** The link to this access-control entry. */
|
|
290
|
+
selfLink?: string;
|
|
291
|
+
}
|
|
292
|
+
interface BucketAccessControls {
|
|
293
|
+
/** The list of items. */
|
|
294
|
+
items?: BucketAccessControl[];
|
|
295
|
+
/** The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls. */
|
|
296
|
+
kind?: string;
|
|
297
|
+
}
|
|
298
|
+
interface Buckets {
|
|
299
|
+
/** The list of items. */
|
|
300
|
+
items?: Bucket[];
|
|
301
|
+
/** The kind of item this is. For lists of buckets, this is always storage#buckets. */
|
|
302
|
+
kind?: string;
|
|
303
|
+
/** The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. */
|
|
304
|
+
nextPageToken?: string;
|
|
305
|
+
}
|
|
306
|
+
interface Channel {
|
|
307
|
+
/** The address where notifications are delivered for this channel. */
|
|
308
|
+
address?: string;
|
|
309
|
+
/** Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. */
|
|
310
|
+
expiration?: string;
|
|
311
|
+
/** A UUID or similar unique string that identifies this channel. */
|
|
312
|
+
id?: string;
|
|
313
|
+
/** Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel". */
|
|
314
|
+
kind?: string;
|
|
315
|
+
/** Additional parameters controlling delivery channel behavior. Optional. */
|
|
316
|
+
params?: { [P in string]: string };
|
|
317
|
+
/** A Boolean value to indicate whether payload is wanted. Optional. */
|
|
318
|
+
payload?: boolean;
|
|
319
|
+
/** An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. */
|
|
320
|
+
resourceId?: string;
|
|
321
|
+
/** A version-specific identifier for the watched resource. */
|
|
322
|
+
resourceUri?: string;
|
|
323
|
+
/** An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. */
|
|
324
|
+
token?: string;
|
|
325
|
+
/** The type of delivery mechanism used for this channel. */
|
|
326
|
+
type?: string;
|
|
327
|
+
}
|
|
328
|
+
interface ComposeRequest {
|
|
329
|
+
/** Properties of the resulting object. */
|
|
330
|
+
// tslint:disable-next-line:ban-types
|
|
331
|
+
destination?: Object;
|
|
332
|
+
/** The kind of item this is. */
|
|
333
|
+
kind?: string;
|
|
334
|
+
/** The list of source objects that will be concatenated into a single object. */
|
|
335
|
+
sourceObjects?: Array<{
|
|
336
|
+
/** The generation of this object to use as the source. */
|
|
337
|
+
generation?: string;
|
|
338
|
+
/** The source object's name. All source objects must reside in the same bucket. */
|
|
339
|
+
name?: string;
|
|
340
|
+
/** Conditions that must be met for this operation to execute. */
|
|
341
|
+
objectPreconditions?: {
|
|
342
|
+
/**
|
|
343
|
+
* Only perform the composition if the generation of the source object that would be used matches this value. If this value and a generation are both specified, they must be
|
|
344
|
+
* the same value or the call will fail.
|
|
345
|
+
*/
|
|
346
|
+
ifGenerationMatch?: string;
|
|
347
|
+
};
|
|
348
|
+
}>;
|
|
349
|
+
}
|
|
350
|
+
interface Expr {
|
|
351
|
+
/** An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
352
|
+
description?: string;
|
|
353
|
+
/**
|
|
354
|
+
* Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is
|
|
355
|
+
* supported.
|
|
356
|
+
*/
|
|
357
|
+
expression?: string;
|
|
358
|
+
/** An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
359
|
+
location?: string;
|
|
360
|
+
/** An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
|
|
361
|
+
title?: string;
|
|
362
|
+
}
|
|
363
|
+
interface HmacKey {
|
|
364
|
+
/** The kind of item this is. For HMAC keys, this is always storage#hmacKey. */
|
|
365
|
+
kind?: string;
|
|
366
|
+
/** Key metadata. */
|
|
367
|
+
metadata?: HmacKeyMetadata;
|
|
368
|
+
/** HMAC secret key material. */
|
|
369
|
+
secret?: string;
|
|
370
|
+
}
|
|
371
|
+
interface HmacKeyMetadata {
|
|
372
|
+
/** The ID of the HMAC Key. */
|
|
373
|
+
accessId?: string;
|
|
374
|
+
/** HTTP 1.1 Entity tag for the HMAC key. */
|
|
375
|
+
etag?: string;
|
|
376
|
+
/** The ID of the HMAC key, including the Project ID and the Access ID. */
|
|
377
|
+
id?: string;
|
|
378
|
+
/** The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata. */
|
|
379
|
+
kind?: string;
|
|
380
|
+
/** Project ID owning the service account to which the key authenticates. */
|
|
381
|
+
projectId?: string;
|
|
382
|
+
/** The link to this resource. */
|
|
383
|
+
selfLink?: string;
|
|
384
|
+
/** The email address of the key's associated service account. */
|
|
385
|
+
serviceAccountEmail?: string;
|
|
386
|
+
/** The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED. */
|
|
387
|
+
state?: string;
|
|
388
|
+
/** The creation time of the HMAC key in RFC 3339 format. */
|
|
389
|
+
timeCreated?: string;
|
|
390
|
+
/** The last modification time of the HMAC key metadata in RFC 3339 format. */
|
|
391
|
+
updated?: string;
|
|
392
|
+
}
|
|
393
|
+
interface HmacKeysMetadata {
|
|
394
|
+
/** The list of items. */
|
|
395
|
+
items?: HmacKeyMetadata[];
|
|
396
|
+
/** The kind of item this is. For lists of hmacKeys, this is always storage#hmacKeysMetadata. */
|
|
397
|
+
kind?: string;
|
|
398
|
+
/** The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. */
|
|
399
|
+
nextPageToken?: string;
|
|
400
|
+
}
|
|
401
|
+
interface Notification {
|
|
402
|
+
/** An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription. */
|
|
403
|
+
custom_attributes?: { [P in string]: string };
|
|
404
|
+
/** HTTP 1.1 Entity tag for this subscription notification. */
|
|
405
|
+
etag?: string;
|
|
406
|
+
/** If present, only send notifications about listed event types. If empty, sent notifications for all event types. */
|
|
407
|
+
event_types?: string[];
|
|
408
|
+
/** The ID of the notification. */
|
|
409
|
+
id?: string;
|
|
410
|
+
/** The kind of item this is. For notifications, this is always storage#notification. */
|
|
411
|
+
kind?: string;
|
|
412
|
+
/** If present, only apply this notification configuration to object names that begin with this prefix. */
|
|
413
|
+
object_name_prefix?: string;
|
|
414
|
+
/** The desired content of the Payload. */
|
|
415
|
+
payload_format?: string;
|
|
416
|
+
/** The canonical URL of this notification. */
|
|
417
|
+
selfLink?: string;
|
|
418
|
+
/** The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}' */
|
|
419
|
+
topic?: string;
|
|
420
|
+
}
|
|
421
|
+
interface Notifications {
|
|
422
|
+
/** The list of items. */
|
|
423
|
+
items?: Notification[];
|
|
424
|
+
/** The kind of item this is. For lists of notifications, this is always storage#notifications. */
|
|
425
|
+
kind?: string;
|
|
426
|
+
}
|
|
427
|
+
interface Object {
|
|
428
|
+
/** Access controls on the object. */
|
|
429
|
+
acl?: ObjectAccessControl[];
|
|
430
|
+
/** The name of the bucket containing this object. */
|
|
431
|
+
bucket?: string;
|
|
432
|
+
/** Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max-age=3600. */
|
|
433
|
+
cacheControl?: string;
|
|
434
|
+
/** Number of underlying components that make up this object. Components are accumulated by compose operations. */
|
|
435
|
+
componentCount?: number;
|
|
436
|
+
/** Content-Disposition of the object data. */
|
|
437
|
+
contentDisposition?: string;
|
|
438
|
+
/** Content-Encoding of the object data. */
|
|
439
|
+
contentEncoding?: string;
|
|
440
|
+
/** Content-Language of the object data. */
|
|
441
|
+
contentLanguage?: string;
|
|
442
|
+
/** Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream. */
|
|
443
|
+
contentType?: string;
|
|
444
|
+
/**
|
|
445
|
+
* CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags:
|
|
446
|
+
* Best Practices.
|
|
447
|
+
*/
|
|
448
|
+
crc32c?: string;
|
|
449
|
+
/** Metadata of customer-supplied encryption key, if the object is encrypted by such a key. */
|
|
450
|
+
customerEncryption?: {
|
|
451
|
+
/** The encryption algorithm. */
|
|
452
|
+
encryptionAlgorithm?: string;
|
|
453
|
+
/** SHA256 hash value of the encryption key. */
|
|
454
|
+
keySha256?: string;
|
|
455
|
+
};
|
|
456
|
+
/** A timestamp in RFC 3339 format specified by the user for an object. */
|
|
457
|
+
customTime?: string;
|
|
458
|
+
/** HTTP 1.1 Entity tag for the object. */
|
|
459
|
+
etag?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold's release (i.e. this value is set to
|
|
462
|
+
* false). After being released (set to false), such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents
|
|
463
|
+
* for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is the loan being paid in full. In this example, these objects will be held
|
|
464
|
+
* intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the
|
|
465
|
+
* objects begins from the moment event-based hold transitioned from true to false.
|
|
466
|
+
*/
|
|
467
|
+
eventBasedHold?: boolean;
|
|
468
|
+
/** The content generation of this object. Used for object versioning. */
|
|
469
|
+
generation?: string;
|
|
470
|
+
/** The ID of the object, including the bucket name, object name, and generation number. */
|
|
471
|
+
id?: string;
|
|
472
|
+
/** The kind of item this is. For objects, this is always storage#object. */
|
|
473
|
+
kind?: string;
|
|
474
|
+
/** Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request. */
|
|
475
|
+
kmsKeyName?: string;
|
|
476
|
+
/** MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices. */
|
|
477
|
+
md5Hash?: string;
|
|
478
|
+
/** Media download link. */
|
|
479
|
+
mediaLink?: string;
|
|
480
|
+
/** User-provided metadata, in key/value pairs. */
|
|
481
|
+
metadata?: { [P in string]: string };
|
|
482
|
+
/**
|
|
483
|
+
* The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the
|
|
484
|
+
* context of a particular generation of a particular object.
|
|
485
|
+
*/
|
|
486
|
+
metageneration?: string;
|
|
487
|
+
/** The name of the object. Required if not specified by URL parameter. */
|
|
488
|
+
name?: string;
|
|
489
|
+
/** The owner of the object. This will always be the uploader of the object. */
|
|
490
|
+
owner?: {
|
|
491
|
+
/** The entity, in the form user-userId. */
|
|
492
|
+
entity?: string;
|
|
493
|
+
/** The ID for the entity. */
|
|
494
|
+
entityId?: string;
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* A server-determined value that specifies the earliest time that the object's retention period expires. This value is in RFC 3339 format. Note 1: This field is not provided for
|
|
498
|
+
* objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that
|
|
499
|
+
* the user can reason about policy without having to first unset the temporary hold).
|
|
500
|
+
*/
|
|
501
|
+
retentionExpirationTime?: string;
|
|
502
|
+
/** The link to this object. */
|
|
503
|
+
selfLink?: string;
|
|
504
|
+
/** Content-Length of the data in bytes. */
|
|
505
|
+
size?: string;
|
|
506
|
+
/** Storage class of the object. */
|
|
507
|
+
storageClass?: string;
|
|
508
|
+
/**
|
|
509
|
+
* Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory
|
|
510
|
+
* investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of
|
|
511
|
+
* an object.
|
|
512
|
+
*/
|
|
513
|
+
temporaryHold?: boolean;
|
|
514
|
+
/** The creation time of the object in RFC 3339 format. */
|
|
515
|
+
timeCreated?: string;
|
|
516
|
+
/** The deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted. */
|
|
517
|
+
timeDeleted?: string;
|
|
518
|
+
/** The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated. */
|
|
519
|
+
timeStorageClassUpdated?: string;
|
|
520
|
+
/**
|
|
521
|
+
* The modification time of the object metadata in RFC 3339 format. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes
|
|
522
|
+
* changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an
|
|
523
|
+
* Object Lifecycle Configuration.
|
|
524
|
+
*/
|
|
525
|
+
updated?: string;
|
|
526
|
+
}
|
|
527
|
+
interface ObjectAccessControl {
|
|
528
|
+
/** The name of the bucket. */
|
|
529
|
+
bucket?: string;
|
|
530
|
+
/** The domain associated with the entity, if any. */
|
|
531
|
+
domain?: string;
|
|
532
|
+
/** The email address associated with the entity, if any. */
|
|
533
|
+
email?: string;
|
|
534
|
+
/**
|
|
535
|
+
* The entity holding the permission, in one of the following forms:
|
|
536
|
+
* - user-userId
|
|
537
|
+
* - user-email
|
|
538
|
+
* - group-groupId
|
|
539
|
+
* - group-email
|
|
540
|
+
* - domain-domain
|
|
541
|
+
* - project-team-projectId
|
|
542
|
+
* - allUsers
|
|
543
|
+
* - allAuthenticatedUsers Examples:
|
|
544
|
+
* - The user liz@example.com would be user-liz@example.com.
|
|
545
|
+
* - The group example@googlegroups.com would be group-example@googlegroups.com.
|
|
546
|
+
* - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
|
|
547
|
+
*/
|
|
548
|
+
entity?: string;
|
|
549
|
+
/** The ID for the entity, if any. */
|
|
550
|
+
entityId?: string;
|
|
551
|
+
/** HTTP 1.1 Entity tag for the access-control entry. */
|
|
552
|
+
etag?: string;
|
|
553
|
+
/** The content generation of the object, if applied to an object. */
|
|
554
|
+
generation?: string;
|
|
555
|
+
/** The ID of the access-control entry. */
|
|
556
|
+
id?: string;
|
|
557
|
+
/** The kind of item this is. For object access control entries, this is always storage#objectAccessControl. */
|
|
558
|
+
kind?: string;
|
|
559
|
+
/** The name of the object, if applied to an object. */
|
|
560
|
+
object?: string;
|
|
561
|
+
/** The project team associated with the entity, if any. */
|
|
562
|
+
projectTeam?: {
|
|
563
|
+
/** The project number. */
|
|
564
|
+
projectNumber?: string;
|
|
565
|
+
/** The team. */
|
|
566
|
+
team?: string;
|
|
567
|
+
};
|
|
568
|
+
/** The access permission for the entity. */
|
|
569
|
+
role?: string;
|
|
570
|
+
/** The link to this access-control entry. */
|
|
571
|
+
selfLink?: string;
|
|
572
|
+
}
|
|
573
|
+
interface ObjectAccessControls {
|
|
574
|
+
/** The list of items. */
|
|
575
|
+
items?: ObjectAccessControl[];
|
|
576
|
+
/** The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls. */
|
|
577
|
+
kind?: string;
|
|
578
|
+
}
|
|
579
|
+
interface Objects {
|
|
580
|
+
/** The list of items. */
|
|
581
|
+
// tslint:disable-next-line:ban-types
|
|
582
|
+
items?: Object[];
|
|
583
|
+
/** The kind of item this is. For lists of objects, this is always storage#objects. */
|
|
584
|
+
kind?: string;
|
|
585
|
+
/** The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. */
|
|
586
|
+
nextPageToken?: string;
|
|
587
|
+
/** The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter. */
|
|
588
|
+
prefixes?: string[];
|
|
589
|
+
}
|
|
590
|
+
interface Policy {
|
|
591
|
+
/** An association between a role, which comes with a set of permissions, and members who may assume that role. */
|
|
592
|
+
bindings?: Array<{
|
|
593
|
+
/**
|
|
594
|
+
* The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their
|
|
595
|
+
* conditions, are examined independently.
|
|
596
|
+
*/
|
|
597
|
+
condition?: Expr;
|
|
598
|
+
/**
|
|
599
|
+
* A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:
|
|
600
|
+
* - allUsers — A special identifier that represents anyone on the internet; with or without a Google account.
|
|
601
|
+
* - allAuthenticatedUsers — A special identifier that represents anyone who is authenticated with a Google account or a service account.
|
|
602
|
+
* - user:emailid — An email address that represents a specific account. For example, user:alice@gmail.com or user:joe@example.com.
|
|
603
|
+
* - serviceAccount:emailid — An email address that represents a service account. For example, serviceAccount:my-other-app@appspot.gserviceaccount.com .
|
|
604
|
+
* - group:emailid — An email address that represents a Google group. For example, group:admins@example.com.
|
|
605
|
+
* - domain:domain — A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.
|
|
606
|
+
* - projectOwner:projectid — Owners of the given project. For example, projectOwner:my-example-project
|
|
607
|
+
* - projectEditor:projectid — Editors of the given project. For example, projectEditor:my-example-project
|
|
608
|
+
* - projectViewer:projectid — Viewers of the given project. For example, projectViewer:my-example-project
|
|
609
|
+
*/
|
|
610
|
+
members?: string[];
|
|
611
|
+
/**
|
|
612
|
+
* The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM
|
|
613
|
+
* roles, which do map directly to ACL permissions. All roles are of the format roles/storage.specificRole.
|
|
614
|
+
* The new IAM roles are:
|
|
615
|
+
* - roles/storage.admin — Full control of Google Cloud Storage resources.
|
|
616
|
+
* - roles/storage.objectViewer — Read-Only access to Google Cloud Storage objects.
|
|
617
|
+
* - roles/storage.objectCreator — Access to create objects in Google Cloud Storage.
|
|
618
|
+
* - roles/storage.objectAdmin — Full control of Google Cloud Storage objects. The legacy IAM roles are:
|
|
619
|
+
* - roles/storage.legacyObjectReader — Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.
|
|
620
|
+
* - roles/storage.legacyObjectOwner — Read/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.
|
|
621
|
+
* - roles/storage.legacyBucketReader — Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.
|
|
622
|
+
* - roles/storage.legacyBucketWriter — Read access to buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.
|
|
623
|
+
* - roles/storage.legacyBucketOwner — Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
|
|
624
|
+
*/
|
|
625
|
+
role?: string;
|
|
626
|
+
}>;
|
|
627
|
+
/** HTTP 1.1 Entity tag for the policy. */
|
|
628
|
+
etag?: string;
|
|
629
|
+
/** The kind of item this is. For policies, this is always storage#policy. This field is ignored on input. */
|
|
630
|
+
kind?: string;
|
|
631
|
+
/**
|
|
632
|
+
* The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, and projects/_/buckets/bucket/objects/object for objects. A specific
|
|
633
|
+
* generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be
|
|
634
|
+
* denoted with #0. This field is ignored on input.
|
|
635
|
+
*/
|
|
636
|
+
resourceId?: string;
|
|
637
|
+
/** The IAM policy format version. */
|
|
638
|
+
version?: number;
|
|
639
|
+
}
|
|
640
|
+
interface RewriteResponse {
|
|
641
|
+
/** true if the copy is finished; otherwise, false if the copy is in progress. This property is always present in the response. */
|
|
642
|
+
done?: boolean;
|
|
643
|
+
/** The kind of item this is. */
|
|
644
|
+
kind?: string;
|
|
645
|
+
/** The total size of the object being copied in bytes. This property is always present in the response. */
|
|
646
|
+
objectSize?: string;
|
|
647
|
+
/** A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes. */
|
|
648
|
+
// tslint:disable-next-line:ban-types
|
|
649
|
+
resource?: Object;
|
|
650
|
+
/** A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy. */
|
|
651
|
+
rewriteToken?: string;
|
|
652
|
+
/** The total bytes written so far, which can be used to provide a waiting user with a progress indicator. This property is always present in the response. */
|
|
653
|
+
totalBytesRewritten?: string;
|
|
654
|
+
}
|
|
655
|
+
interface ServiceAccount {
|
|
656
|
+
/** The ID of the notification. */
|
|
657
|
+
email_address?: string;
|
|
658
|
+
/** The kind of item this is. For notifications, this is always storage#notification. */
|
|
659
|
+
kind?: string;
|
|
660
|
+
}
|
|
661
|
+
interface TestIamPermissionsResponse {
|
|
662
|
+
/** The kind of item this is. */
|
|
663
|
+
kind?: string;
|
|
664
|
+
/**
|
|
665
|
+
* The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets or objects. The supported permissions are as
|
|
666
|
+
* follows:
|
|
667
|
+
* - storage.buckets.delete — Delete bucket.
|
|
668
|
+
* - storage.buckets.get — Read bucket metadata.
|
|
669
|
+
* - storage.buckets.getIamPolicy — Read bucket IAM policy.
|
|
670
|
+
* - storage.buckets.create — Create bucket.
|
|
671
|
+
* - storage.buckets.list — List buckets.
|
|
672
|
+
* - storage.buckets.setIamPolicy — Update bucket IAM policy.
|
|
673
|
+
* - storage.buckets.update — Update bucket metadata.
|
|
674
|
+
* - storage.objects.delete — Delete object.
|
|
675
|
+
* - storage.objects.get — Read object data and metadata.
|
|
676
|
+
* - storage.objects.getIamPolicy — Read object IAM policy.
|
|
677
|
+
* - storage.objects.create — Create object.
|
|
678
|
+
* - storage.objects.list — List objects.
|
|
679
|
+
* - storage.objects.setIamPolicy — Update object IAM policy.
|
|
680
|
+
* - storage.objects.update — Update object metadata.
|
|
681
|
+
*/
|
|
682
|
+
permissions?: string[];
|
|
683
|
+
}
|
|
684
|
+
interface BucketAccessControlsResource {
|
|
685
|
+
/** Permanently deletes the ACL entry for the specified entity on the specified bucket. */
|
|
686
|
+
delete(request?: {
|
|
687
|
+
/** Data format for the response. */
|
|
688
|
+
alt?: string;
|
|
689
|
+
/** Name of a bucket. */
|
|
690
|
+
bucket: string;
|
|
691
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
692
|
+
entity: string;
|
|
693
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
694
|
+
fields?: string;
|
|
695
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
696
|
+
key?: string;
|
|
697
|
+
/** OAuth 2.0 token for the current user. */
|
|
698
|
+
oauth_token?: string;
|
|
699
|
+
/** Returns response with indentations and line breaks. */
|
|
700
|
+
prettyPrint?: boolean;
|
|
701
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
702
|
+
quotaUser?: string;
|
|
703
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
704
|
+
uploadType?: string;
|
|
705
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
706
|
+
userIp?: string;
|
|
707
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
708
|
+
userProject?: string;
|
|
709
|
+
}): Request<void>;
|
|
710
|
+
/** Returns the ACL entry for the specified entity on the specified bucket. */
|
|
711
|
+
get(request?: {
|
|
712
|
+
/** Data format for the response. */
|
|
713
|
+
alt?: string;
|
|
714
|
+
/** Name of a bucket. */
|
|
715
|
+
bucket: string;
|
|
716
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
717
|
+
entity: string;
|
|
718
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
719
|
+
fields?: string;
|
|
720
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
721
|
+
key?: string;
|
|
722
|
+
/** OAuth 2.0 token for the current user. */
|
|
723
|
+
oauth_token?: string;
|
|
724
|
+
/** Returns response with indentations and line breaks. */
|
|
725
|
+
prettyPrint?: boolean;
|
|
726
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
727
|
+
quotaUser?: string;
|
|
728
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
729
|
+
uploadType?: string;
|
|
730
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
731
|
+
userIp?: string;
|
|
732
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
733
|
+
userProject?: string;
|
|
734
|
+
}): Request<BucketAccessControl>;
|
|
735
|
+
/** Creates a new ACL entry on the specified bucket. */
|
|
736
|
+
insert(request: {
|
|
737
|
+
/** Data format for the response. */
|
|
738
|
+
alt?: string;
|
|
739
|
+
/** Name of a bucket. */
|
|
740
|
+
bucket: string;
|
|
741
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
742
|
+
fields?: string;
|
|
743
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
744
|
+
key?: string;
|
|
745
|
+
/** OAuth 2.0 token for the current user. */
|
|
746
|
+
oauth_token?: string;
|
|
747
|
+
/** Returns response with indentations and line breaks. */
|
|
748
|
+
prettyPrint?: boolean;
|
|
749
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
750
|
+
quotaUser?: string;
|
|
751
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
752
|
+
uploadType?: string;
|
|
753
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
754
|
+
userIp?: string;
|
|
755
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
756
|
+
userProject?: string;
|
|
757
|
+
/** Request body */
|
|
758
|
+
resource: BucketAccessControl;
|
|
759
|
+
}): Request<BucketAccessControl>;
|
|
760
|
+
insert(request: {
|
|
761
|
+
/** Data format for the response. */
|
|
762
|
+
alt?: string;
|
|
763
|
+
/** Name of a bucket. */
|
|
764
|
+
bucket: string;
|
|
765
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
766
|
+
fields?: string;
|
|
767
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
768
|
+
key?: string;
|
|
769
|
+
/** OAuth 2.0 token for the current user. */
|
|
770
|
+
oauth_token?: string;
|
|
771
|
+
/** Returns response with indentations and line breaks. */
|
|
772
|
+
prettyPrint?: boolean;
|
|
773
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
774
|
+
quotaUser?: string;
|
|
775
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
776
|
+
uploadType?: string;
|
|
777
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
778
|
+
userIp?: string;
|
|
779
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
780
|
+
userProject?: string;
|
|
781
|
+
},
|
|
782
|
+
body: BucketAccessControl): Request<BucketAccessControl>;
|
|
783
|
+
/** Retrieves ACL entries on the specified bucket. */
|
|
784
|
+
list(request?: {
|
|
785
|
+
/** Data format for the response. */
|
|
786
|
+
alt?: string;
|
|
787
|
+
/** Name of a bucket. */
|
|
788
|
+
bucket: string;
|
|
789
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
790
|
+
fields?: string;
|
|
791
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
792
|
+
key?: string;
|
|
793
|
+
/** OAuth 2.0 token for the current user. */
|
|
794
|
+
oauth_token?: string;
|
|
795
|
+
/** Returns response with indentations and line breaks. */
|
|
796
|
+
prettyPrint?: boolean;
|
|
797
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
798
|
+
quotaUser?: string;
|
|
799
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
800
|
+
uploadType?: string;
|
|
801
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
802
|
+
userIp?: string;
|
|
803
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
804
|
+
userProject?: string;
|
|
805
|
+
}): Request<BucketAccessControls>;
|
|
806
|
+
/** Patches an ACL entry on the specified bucket. */
|
|
807
|
+
patch(request: {
|
|
808
|
+
/** Data format for the response. */
|
|
809
|
+
alt?: string;
|
|
810
|
+
/** Name of a bucket. */
|
|
811
|
+
bucket: string;
|
|
812
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
813
|
+
entity: string;
|
|
814
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
815
|
+
fields?: string;
|
|
816
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
817
|
+
key?: string;
|
|
818
|
+
/** OAuth 2.0 token for the current user. */
|
|
819
|
+
oauth_token?: string;
|
|
820
|
+
/** Returns response with indentations and line breaks. */
|
|
821
|
+
prettyPrint?: boolean;
|
|
822
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
823
|
+
quotaUser?: string;
|
|
824
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
825
|
+
uploadType?: string;
|
|
826
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
827
|
+
userIp?: string;
|
|
828
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
829
|
+
userProject?: string;
|
|
830
|
+
/** Request body */
|
|
831
|
+
resource: BucketAccessControl;
|
|
832
|
+
}): Request<BucketAccessControl>;
|
|
833
|
+
patch(request: {
|
|
834
|
+
/** Data format for the response. */
|
|
835
|
+
alt?: string;
|
|
836
|
+
/** Name of a bucket. */
|
|
837
|
+
bucket: string;
|
|
838
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
839
|
+
entity: string;
|
|
840
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
841
|
+
fields?: string;
|
|
842
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
843
|
+
key?: string;
|
|
844
|
+
/** OAuth 2.0 token for the current user. */
|
|
845
|
+
oauth_token?: string;
|
|
846
|
+
/** Returns response with indentations and line breaks. */
|
|
847
|
+
prettyPrint?: boolean;
|
|
848
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
849
|
+
quotaUser?: string;
|
|
850
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
851
|
+
uploadType?: string;
|
|
852
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
853
|
+
userIp?: string;
|
|
854
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
855
|
+
userProject?: string;
|
|
856
|
+
},
|
|
857
|
+
body: BucketAccessControl): Request<BucketAccessControl>;
|
|
858
|
+
/** Updates an ACL entry on the specified bucket. */
|
|
859
|
+
update(request: {
|
|
860
|
+
/** Data format for the response. */
|
|
861
|
+
alt?: string;
|
|
862
|
+
/** Name of a bucket. */
|
|
863
|
+
bucket: string;
|
|
864
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
865
|
+
entity: string;
|
|
866
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
867
|
+
fields?: string;
|
|
868
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
869
|
+
key?: string;
|
|
870
|
+
/** OAuth 2.0 token for the current user. */
|
|
871
|
+
oauth_token?: string;
|
|
872
|
+
/** Returns response with indentations and line breaks. */
|
|
873
|
+
prettyPrint?: boolean;
|
|
874
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
875
|
+
quotaUser?: string;
|
|
876
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
877
|
+
uploadType?: string;
|
|
878
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
879
|
+
userIp?: string;
|
|
880
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
881
|
+
userProject?: string;
|
|
882
|
+
/** Request body */
|
|
883
|
+
resource: BucketAccessControl;
|
|
884
|
+
}): Request<BucketAccessControl>;
|
|
885
|
+
update(request: {
|
|
886
|
+
/** Data format for the response. */
|
|
887
|
+
alt?: string;
|
|
888
|
+
/** Name of a bucket. */
|
|
889
|
+
bucket: string;
|
|
890
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
891
|
+
entity: string;
|
|
892
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
893
|
+
fields?: string;
|
|
894
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
895
|
+
key?: string;
|
|
896
|
+
/** OAuth 2.0 token for the current user. */
|
|
897
|
+
oauth_token?: string;
|
|
898
|
+
/** Returns response with indentations and line breaks. */
|
|
899
|
+
prettyPrint?: boolean;
|
|
900
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
901
|
+
quotaUser?: string;
|
|
902
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
903
|
+
uploadType?: string;
|
|
904
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
905
|
+
userIp?: string;
|
|
906
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
907
|
+
userProject?: string;
|
|
908
|
+
},
|
|
909
|
+
body: BucketAccessControl): Request<BucketAccessControl>;
|
|
910
|
+
}
|
|
911
|
+
interface BucketsResource {
|
|
912
|
+
/** Permanently deletes an empty bucket. */
|
|
913
|
+
delete(request?: {
|
|
914
|
+
/** Data format for the response. */
|
|
915
|
+
alt?: string;
|
|
916
|
+
/** Name of a bucket. */
|
|
917
|
+
bucket: string;
|
|
918
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
919
|
+
fields?: string;
|
|
920
|
+
/** If set, only deletes the bucket if its metageneration matches this value. */
|
|
921
|
+
ifMetagenerationMatch?: string;
|
|
922
|
+
/** If set, only deletes the bucket if its metageneration does not match this value. */
|
|
923
|
+
ifMetagenerationNotMatch?: string;
|
|
924
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
925
|
+
key?: string;
|
|
926
|
+
/** OAuth 2.0 token for the current user. */
|
|
927
|
+
oauth_token?: string;
|
|
928
|
+
/** Returns response with indentations and line breaks. */
|
|
929
|
+
prettyPrint?: boolean;
|
|
930
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
931
|
+
quotaUser?: string;
|
|
932
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
933
|
+
uploadType?: string;
|
|
934
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
935
|
+
userIp?: string;
|
|
936
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
937
|
+
userProject?: string;
|
|
938
|
+
}): Request<void>;
|
|
939
|
+
/** Returns metadata for the specified bucket. */
|
|
940
|
+
get(request?: {
|
|
941
|
+
/** Data format for the response. */
|
|
942
|
+
alt?: string;
|
|
943
|
+
/** Name of a bucket. */
|
|
944
|
+
bucket: string;
|
|
945
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
946
|
+
fields?: string;
|
|
947
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. */
|
|
948
|
+
ifMetagenerationMatch?: string;
|
|
949
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. */
|
|
950
|
+
ifMetagenerationNotMatch?: string;
|
|
951
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
952
|
+
key?: string;
|
|
953
|
+
/** OAuth 2.0 token for the current user. */
|
|
954
|
+
oauth_token?: string;
|
|
955
|
+
/** Returns response with indentations and line breaks. */
|
|
956
|
+
prettyPrint?: boolean;
|
|
957
|
+
/** Set of properties to return. Defaults to noAcl. */
|
|
958
|
+
projection?: string;
|
|
959
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
960
|
+
quotaUser?: string;
|
|
961
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
962
|
+
uploadType?: string;
|
|
963
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
964
|
+
userIp?: string;
|
|
965
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
966
|
+
userProject?: string;
|
|
967
|
+
}): Request<Bucket>;
|
|
968
|
+
/** Returns an IAM policy for the specified bucket. */
|
|
969
|
+
getIamPolicy(request?: {
|
|
970
|
+
/** Data format for the response. */
|
|
971
|
+
alt?: string;
|
|
972
|
+
/** Name of a bucket. */
|
|
973
|
+
bucket: string;
|
|
974
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
975
|
+
fields?: string;
|
|
976
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
977
|
+
key?: string;
|
|
978
|
+
/** OAuth 2.0 token for the current user. */
|
|
979
|
+
oauth_token?: string;
|
|
980
|
+
/**
|
|
981
|
+
* The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request
|
|
982
|
+
* fails.
|
|
983
|
+
*/
|
|
984
|
+
optionsRequestedPolicyVersion?: number;
|
|
985
|
+
/** Returns response with indentations and line breaks. */
|
|
986
|
+
prettyPrint?: boolean;
|
|
987
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
988
|
+
quotaUser?: string;
|
|
989
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
990
|
+
uploadType?: string;
|
|
991
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
992
|
+
userIp?: string;
|
|
993
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
994
|
+
userProject?: string;
|
|
995
|
+
}): Request<Policy>;
|
|
996
|
+
/** Creates a new bucket. */
|
|
997
|
+
insert(request: {
|
|
998
|
+
/** Data format for the response. */
|
|
999
|
+
alt?: string;
|
|
1000
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1001
|
+
fields?: string;
|
|
1002
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1003
|
+
key?: string;
|
|
1004
|
+
/** OAuth 2.0 token for the current user. */
|
|
1005
|
+
oauth_token?: string;
|
|
1006
|
+
/** Apply a predefined set of access controls to this bucket. */
|
|
1007
|
+
predefinedAcl?: string;
|
|
1008
|
+
/** Apply a predefined set of default object access controls to this bucket. */
|
|
1009
|
+
predefinedDefaultObjectAcl?: string;
|
|
1010
|
+
/** Returns response with indentations and line breaks. */
|
|
1011
|
+
prettyPrint?: boolean;
|
|
1012
|
+
/** A valid API project identifier. */
|
|
1013
|
+
project: string;
|
|
1014
|
+
/** Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. */
|
|
1015
|
+
projection?: string;
|
|
1016
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1017
|
+
quotaUser?: string;
|
|
1018
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1019
|
+
uploadType?: string;
|
|
1020
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1021
|
+
userIp?: string;
|
|
1022
|
+
/** The project to be billed for this request. */
|
|
1023
|
+
userProject?: string;
|
|
1024
|
+
/** Request body */
|
|
1025
|
+
resource: Bucket;
|
|
1026
|
+
}): Request<Bucket>;
|
|
1027
|
+
insert(request: {
|
|
1028
|
+
/** Data format for the response. */
|
|
1029
|
+
alt?: string;
|
|
1030
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1031
|
+
fields?: string;
|
|
1032
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1033
|
+
key?: string;
|
|
1034
|
+
/** OAuth 2.0 token for the current user. */
|
|
1035
|
+
oauth_token?: string;
|
|
1036
|
+
/** Apply a predefined set of access controls to this bucket. */
|
|
1037
|
+
predefinedAcl?: string;
|
|
1038
|
+
/** Apply a predefined set of default object access controls to this bucket. */
|
|
1039
|
+
predefinedDefaultObjectAcl?: string;
|
|
1040
|
+
/** Returns response with indentations and line breaks. */
|
|
1041
|
+
prettyPrint?: boolean;
|
|
1042
|
+
/** A valid API project identifier. */
|
|
1043
|
+
project: string;
|
|
1044
|
+
/** Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. */
|
|
1045
|
+
projection?: string;
|
|
1046
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1047
|
+
quotaUser?: string;
|
|
1048
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1049
|
+
uploadType?: string;
|
|
1050
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1051
|
+
userIp?: string;
|
|
1052
|
+
/** The project to be billed for this request. */
|
|
1053
|
+
userProject?: string;
|
|
1054
|
+
},
|
|
1055
|
+
body: Bucket): Request<Bucket>;
|
|
1056
|
+
/** Retrieves a list of buckets for a given project. */
|
|
1057
|
+
list(request?: {
|
|
1058
|
+
/** Data format for the response. */
|
|
1059
|
+
alt?: string;
|
|
1060
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1061
|
+
fields?: string;
|
|
1062
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1063
|
+
key?: string;
|
|
1064
|
+
/** Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller. */
|
|
1065
|
+
maxResults?: number;
|
|
1066
|
+
/** OAuth 2.0 token for the current user. */
|
|
1067
|
+
oauth_token?: string;
|
|
1068
|
+
/** A previously-returned page token representing part of the larger set of results to view. */
|
|
1069
|
+
pageToken?: string;
|
|
1070
|
+
/** Filter results to buckets whose names begin with this prefix. */
|
|
1071
|
+
prefix?: string;
|
|
1072
|
+
/** Returns response with indentations and line breaks. */
|
|
1073
|
+
prettyPrint?: boolean;
|
|
1074
|
+
/** A valid API project identifier. */
|
|
1075
|
+
project: string;
|
|
1076
|
+
/** Set of properties to return. Defaults to noAcl. */
|
|
1077
|
+
projection?: string;
|
|
1078
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1079
|
+
quotaUser?: string;
|
|
1080
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1081
|
+
uploadType?: string;
|
|
1082
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1083
|
+
userIp?: string;
|
|
1084
|
+
/** The project to be billed for this request. */
|
|
1085
|
+
userProject?: string;
|
|
1086
|
+
}): Request<Buckets>;
|
|
1087
|
+
/** Locks retention policy on a bucket. */
|
|
1088
|
+
lockRetentionPolicy(request?: {
|
|
1089
|
+
/** Data format for the response. */
|
|
1090
|
+
alt?: string;
|
|
1091
|
+
/** Name of a bucket. */
|
|
1092
|
+
bucket: string;
|
|
1093
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1094
|
+
fields?: string;
|
|
1095
|
+
/** Makes the operation conditional on whether bucket's current metageneration matches the given value. */
|
|
1096
|
+
ifMetagenerationMatch: string;
|
|
1097
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1098
|
+
key?: string;
|
|
1099
|
+
/** OAuth 2.0 token for the current user. */
|
|
1100
|
+
oauth_token?: string;
|
|
1101
|
+
/** Returns response with indentations and line breaks. */
|
|
1102
|
+
prettyPrint?: boolean;
|
|
1103
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1104
|
+
quotaUser?: string;
|
|
1105
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1106
|
+
uploadType?: string;
|
|
1107
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1108
|
+
userIp?: string;
|
|
1109
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1110
|
+
userProject?: string;
|
|
1111
|
+
}): Request<Bucket>;
|
|
1112
|
+
/** Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. */
|
|
1113
|
+
patch(request: {
|
|
1114
|
+
/** Data format for the response. */
|
|
1115
|
+
alt?: string;
|
|
1116
|
+
/** Name of a bucket. */
|
|
1117
|
+
bucket: string;
|
|
1118
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1119
|
+
fields?: string;
|
|
1120
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. */
|
|
1121
|
+
ifMetagenerationMatch?: string;
|
|
1122
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. */
|
|
1123
|
+
ifMetagenerationNotMatch?: string;
|
|
1124
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1125
|
+
key?: string;
|
|
1126
|
+
/** OAuth 2.0 token for the current user. */
|
|
1127
|
+
oauth_token?: string;
|
|
1128
|
+
/** Apply a predefined set of access controls to this bucket. */
|
|
1129
|
+
predefinedAcl?: string;
|
|
1130
|
+
/** Apply a predefined set of default object access controls to this bucket. */
|
|
1131
|
+
predefinedDefaultObjectAcl?: string;
|
|
1132
|
+
/** Returns response with indentations and line breaks. */
|
|
1133
|
+
prettyPrint?: boolean;
|
|
1134
|
+
/** Set of properties to return. Defaults to full. */
|
|
1135
|
+
projection?: string;
|
|
1136
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1137
|
+
quotaUser?: string;
|
|
1138
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1139
|
+
uploadType?: string;
|
|
1140
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1141
|
+
userIp?: string;
|
|
1142
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1143
|
+
userProject?: string;
|
|
1144
|
+
/** Request body */
|
|
1145
|
+
resource: Bucket;
|
|
1146
|
+
}): Request<Bucket>;
|
|
1147
|
+
patch(request: {
|
|
1148
|
+
/** Data format for the response. */
|
|
1149
|
+
alt?: string;
|
|
1150
|
+
/** Name of a bucket. */
|
|
1151
|
+
bucket: string;
|
|
1152
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1153
|
+
fields?: string;
|
|
1154
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. */
|
|
1155
|
+
ifMetagenerationMatch?: string;
|
|
1156
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. */
|
|
1157
|
+
ifMetagenerationNotMatch?: string;
|
|
1158
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1159
|
+
key?: string;
|
|
1160
|
+
/** OAuth 2.0 token for the current user. */
|
|
1161
|
+
oauth_token?: string;
|
|
1162
|
+
/** Apply a predefined set of access controls to this bucket. */
|
|
1163
|
+
predefinedAcl?: string;
|
|
1164
|
+
/** Apply a predefined set of default object access controls to this bucket. */
|
|
1165
|
+
predefinedDefaultObjectAcl?: string;
|
|
1166
|
+
/** Returns response with indentations and line breaks. */
|
|
1167
|
+
prettyPrint?: boolean;
|
|
1168
|
+
/** Set of properties to return. Defaults to full. */
|
|
1169
|
+
projection?: string;
|
|
1170
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1171
|
+
quotaUser?: string;
|
|
1172
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1173
|
+
uploadType?: string;
|
|
1174
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1175
|
+
userIp?: string;
|
|
1176
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1177
|
+
userProject?: string;
|
|
1178
|
+
},
|
|
1179
|
+
body: Bucket): Request<Bucket>;
|
|
1180
|
+
/** Updates an IAM policy for the specified bucket. */
|
|
1181
|
+
setIamPolicy(request: {
|
|
1182
|
+
/** Data format for the response. */
|
|
1183
|
+
alt?: string;
|
|
1184
|
+
/** Name of a bucket. */
|
|
1185
|
+
bucket: string;
|
|
1186
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1187
|
+
fields?: string;
|
|
1188
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1189
|
+
key?: string;
|
|
1190
|
+
/** OAuth 2.0 token for the current user. */
|
|
1191
|
+
oauth_token?: string;
|
|
1192
|
+
/** Returns response with indentations and line breaks. */
|
|
1193
|
+
prettyPrint?: boolean;
|
|
1194
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1195
|
+
quotaUser?: string;
|
|
1196
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1197
|
+
uploadType?: string;
|
|
1198
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1199
|
+
userIp?: string;
|
|
1200
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1201
|
+
userProject?: string;
|
|
1202
|
+
/** Request body */
|
|
1203
|
+
resource: Policy;
|
|
1204
|
+
}): Request<Policy>;
|
|
1205
|
+
setIamPolicy(request: {
|
|
1206
|
+
/** Data format for the response. */
|
|
1207
|
+
alt?: string;
|
|
1208
|
+
/** Name of a bucket. */
|
|
1209
|
+
bucket: string;
|
|
1210
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1211
|
+
fields?: string;
|
|
1212
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1213
|
+
key?: string;
|
|
1214
|
+
/** OAuth 2.0 token for the current user. */
|
|
1215
|
+
oauth_token?: string;
|
|
1216
|
+
/** Returns response with indentations and line breaks. */
|
|
1217
|
+
prettyPrint?: boolean;
|
|
1218
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1219
|
+
quotaUser?: string;
|
|
1220
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1221
|
+
uploadType?: string;
|
|
1222
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1223
|
+
userIp?: string;
|
|
1224
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1225
|
+
userProject?: string;
|
|
1226
|
+
},
|
|
1227
|
+
body: Policy): Request<Policy>;
|
|
1228
|
+
/** Tests a set of permissions on the given bucket to see which, if any, are held by the caller. */
|
|
1229
|
+
testIamPermissions(request?: {
|
|
1230
|
+
/** Data format for the response. */
|
|
1231
|
+
alt?: string;
|
|
1232
|
+
/** Name of a bucket. */
|
|
1233
|
+
bucket: string;
|
|
1234
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1235
|
+
fields?: string;
|
|
1236
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1237
|
+
key?: string;
|
|
1238
|
+
/** OAuth 2.0 token for the current user. */
|
|
1239
|
+
oauth_token?: string;
|
|
1240
|
+
/** Permissions to test. */
|
|
1241
|
+
permissions: string | string[];
|
|
1242
|
+
/** Returns response with indentations and line breaks. */
|
|
1243
|
+
prettyPrint?: boolean;
|
|
1244
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1245
|
+
quotaUser?: string;
|
|
1246
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1247
|
+
uploadType?: string;
|
|
1248
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1249
|
+
userIp?: string;
|
|
1250
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1251
|
+
userProject?: string;
|
|
1252
|
+
}): Request<TestIamPermissionsResponse>;
|
|
1253
|
+
/** Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. */
|
|
1254
|
+
update(request: {
|
|
1255
|
+
/** Data format for the response. */
|
|
1256
|
+
alt?: string;
|
|
1257
|
+
/** Name of a bucket. */
|
|
1258
|
+
bucket: string;
|
|
1259
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1260
|
+
fields?: string;
|
|
1261
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. */
|
|
1262
|
+
ifMetagenerationMatch?: string;
|
|
1263
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. */
|
|
1264
|
+
ifMetagenerationNotMatch?: string;
|
|
1265
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1266
|
+
key?: string;
|
|
1267
|
+
/** OAuth 2.0 token for the current user. */
|
|
1268
|
+
oauth_token?: string;
|
|
1269
|
+
/** Apply a predefined set of access controls to this bucket. */
|
|
1270
|
+
predefinedAcl?: string;
|
|
1271
|
+
/** Apply a predefined set of default object access controls to this bucket. */
|
|
1272
|
+
predefinedDefaultObjectAcl?: string;
|
|
1273
|
+
/** Returns response with indentations and line breaks. */
|
|
1274
|
+
prettyPrint?: boolean;
|
|
1275
|
+
/** Set of properties to return. Defaults to full. */
|
|
1276
|
+
projection?: string;
|
|
1277
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1278
|
+
quotaUser?: string;
|
|
1279
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1280
|
+
uploadType?: string;
|
|
1281
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1282
|
+
userIp?: string;
|
|
1283
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1284
|
+
userProject?: string;
|
|
1285
|
+
/** Request body */
|
|
1286
|
+
resource: Bucket;
|
|
1287
|
+
}): Request<Bucket>;
|
|
1288
|
+
update(request: {
|
|
1289
|
+
/** Data format for the response. */
|
|
1290
|
+
alt?: string;
|
|
1291
|
+
/** Name of a bucket. */
|
|
1292
|
+
bucket: string;
|
|
1293
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1294
|
+
fields?: string;
|
|
1295
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value. */
|
|
1296
|
+
ifMetagenerationMatch?: string;
|
|
1297
|
+
/** Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value. */
|
|
1298
|
+
ifMetagenerationNotMatch?: string;
|
|
1299
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1300
|
+
key?: string;
|
|
1301
|
+
/** OAuth 2.0 token for the current user. */
|
|
1302
|
+
oauth_token?: string;
|
|
1303
|
+
/** Apply a predefined set of access controls to this bucket. */
|
|
1304
|
+
predefinedAcl?: string;
|
|
1305
|
+
/** Apply a predefined set of default object access controls to this bucket. */
|
|
1306
|
+
predefinedDefaultObjectAcl?: string;
|
|
1307
|
+
/** Returns response with indentations and line breaks. */
|
|
1308
|
+
prettyPrint?: boolean;
|
|
1309
|
+
/** Set of properties to return. Defaults to full. */
|
|
1310
|
+
projection?: string;
|
|
1311
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1312
|
+
quotaUser?: string;
|
|
1313
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1314
|
+
uploadType?: string;
|
|
1315
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1316
|
+
userIp?: string;
|
|
1317
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1318
|
+
userProject?: string;
|
|
1319
|
+
},
|
|
1320
|
+
body: Bucket): Request<Bucket>;
|
|
1321
|
+
}
|
|
1322
|
+
interface ChannelsResource {
|
|
1323
|
+
/** Stop watching resources through this channel */
|
|
1324
|
+
stop(request: {
|
|
1325
|
+
/** Data format for the response. */
|
|
1326
|
+
alt?: string;
|
|
1327
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1328
|
+
fields?: string;
|
|
1329
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1330
|
+
key?: string;
|
|
1331
|
+
/** OAuth 2.0 token for the current user. */
|
|
1332
|
+
oauth_token?: string;
|
|
1333
|
+
/** Returns response with indentations and line breaks. */
|
|
1334
|
+
prettyPrint?: boolean;
|
|
1335
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1336
|
+
quotaUser?: string;
|
|
1337
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1338
|
+
uploadType?: string;
|
|
1339
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1340
|
+
userIp?: string;
|
|
1341
|
+
/** Request body */
|
|
1342
|
+
resource: Channel;
|
|
1343
|
+
}): Request<void>;
|
|
1344
|
+
stop(request: {
|
|
1345
|
+
/** Data format for the response. */
|
|
1346
|
+
alt?: string;
|
|
1347
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1348
|
+
fields?: string;
|
|
1349
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1350
|
+
key?: string;
|
|
1351
|
+
/** OAuth 2.0 token for the current user. */
|
|
1352
|
+
oauth_token?: string;
|
|
1353
|
+
/** Returns response with indentations and line breaks. */
|
|
1354
|
+
prettyPrint?: boolean;
|
|
1355
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1356
|
+
quotaUser?: string;
|
|
1357
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1358
|
+
uploadType?: string;
|
|
1359
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1360
|
+
userIp?: string;
|
|
1361
|
+
},
|
|
1362
|
+
body: Channel): Request<void>;
|
|
1363
|
+
}
|
|
1364
|
+
interface DefaultObjectAccessControlsResource {
|
|
1365
|
+
/** Permanently deletes the default object ACL entry for the specified entity on the specified bucket. */
|
|
1366
|
+
delete(request?: {
|
|
1367
|
+
/** Data format for the response. */
|
|
1368
|
+
alt?: string;
|
|
1369
|
+
/** Name of a bucket. */
|
|
1370
|
+
bucket: string;
|
|
1371
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1372
|
+
entity: string;
|
|
1373
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1374
|
+
fields?: string;
|
|
1375
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1376
|
+
key?: string;
|
|
1377
|
+
/** OAuth 2.0 token for the current user. */
|
|
1378
|
+
oauth_token?: string;
|
|
1379
|
+
/** Returns response with indentations and line breaks. */
|
|
1380
|
+
prettyPrint?: boolean;
|
|
1381
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1382
|
+
quotaUser?: string;
|
|
1383
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1384
|
+
uploadType?: string;
|
|
1385
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1386
|
+
userIp?: string;
|
|
1387
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1388
|
+
userProject?: string;
|
|
1389
|
+
}): Request<void>;
|
|
1390
|
+
/** Returns the default object ACL entry for the specified entity on the specified bucket. */
|
|
1391
|
+
get(request?: {
|
|
1392
|
+
/** Data format for the response. */
|
|
1393
|
+
alt?: string;
|
|
1394
|
+
/** Name of a bucket. */
|
|
1395
|
+
bucket: string;
|
|
1396
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1397
|
+
entity: string;
|
|
1398
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1399
|
+
fields?: string;
|
|
1400
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1401
|
+
key?: string;
|
|
1402
|
+
/** OAuth 2.0 token for the current user. */
|
|
1403
|
+
oauth_token?: string;
|
|
1404
|
+
/** Returns response with indentations and line breaks. */
|
|
1405
|
+
prettyPrint?: boolean;
|
|
1406
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1407
|
+
quotaUser?: string;
|
|
1408
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1409
|
+
uploadType?: string;
|
|
1410
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1411
|
+
userIp?: string;
|
|
1412
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1413
|
+
userProject?: string;
|
|
1414
|
+
}): Request<ObjectAccessControl>;
|
|
1415
|
+
/** Creates a new default object ACL entry on the specified bucket. */
|
|
1416
|
+
insert(request: {
|
|
1417
|
+
/** Data format for the response. */
|
|
1418
|
+
alt?: string;
|
|
1419
|
+
/** Name of a bucket. */
|
|
1420
|
+
bucket: string;
|
|
1421
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1422
|
+
fields?: string;
|
|
1423
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1424
|
+
key?: string;
|
|
1425
|
+
/** OAuth 2.0 token for the current user. */
|
|
1426
|
+
oauth_token?: string;
|
|
1427
|
+
/** Returns response with indentations and line breaks. */
|
|
1428
|
+
prettyPrint?: boolean;
|
|
1429
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1430
|
+
quotaUser?: string;
|
|
1431
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1432
|
+
uploadType?: string;
|
|
1433
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1434
|
+
userIp?: string;
|
|
1435
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1436
|
+
userProject?: string;
|
|
1437
|
+
/** Request body */
|
|
1438
|
+
resource: ObjectAccessControl;
|
|
1439
|
+
}): Request<ObjectAccessControl>;
|
|
1440
|
+
insert(request: {
|
|
1441
|
+
/** Data format for the response. */
|
|
1442
|
+
alt?: string;
|
|
1443
|
+
/** Name of a bucket. */
|
|
1444
|
+
bucket: string;
|
|
1445
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1446
|
+
fields?: string;
|
|
1447
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1448
|
+
key?: string;
|
|
1449
|
+
/** OAuth 2.0 token for the current user. */
|
|
1450
|
+
oauth_token?: string;
|
|
1451
|
+
/** Returns response with indentations and line breaks. */
|
|
1452
|
+
prettyPrint?: boolean;
|
|
1453
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1454
|
+
quotaUser?: string;
|
|
1455
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1456
|
+
uploadType?: string;
|
|
1457
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1458
|
+
userIp?: string;
|
|
1459
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1460
|
+
userProject?: string;
|
|
1461
|
+
},
|
|
1462
|
+
body: ObjectAccessControl): Request<ObjectAccessControl>;
|
|
1463
|
+
/** Retrieves default object ACL entries on the specified bucket. */
|
|
1464
|
+
list(request?: {
|
|
1465
|
+
/** Data format for the response. */
|
|
1466
|
+
alt?: string;
|
|
1467
|
+
/** Name of a bucket. */
|
|
1468
|
+
bucket: string;
|
|
1469
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1470
|
+
fields?: string;
|
|
1471
|
+
/** If present, only return default ACL listing if the bucket's current metageneration matches this value. */
|
|
1472
|
+
ifMetagenerationMatch?: string;
|
|
1473
|
+
/** If present, only return default ACL listing if the bucket's current metageneration does not match the given value. */
|
|
1474
|
+
ifMetagenerationNotMatch?: string;
|
|
1475
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1476
|
+
key?: string;
|
|
1477
|
+
/** OAuth 2.0 token for the current user. */
|
|
1478
|
+
oauth_token?: string;
|
|
1479
|
+
/** Returns response with indentations and line breaks. */
|
|
1480
|
+
prettyPrint?: boolean;
|
|
1481
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1482
|
+
quotaUser?: string;
|
|
1483
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1484
|
+
uploadType?: string;
|
|
1485
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1486
|
+
userIp?: string;
|
|
1487
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1488
|
+
userProject?: string;
|
|
1489
|
+
}): Request<ObjectAccessControls>;
|
|
1490
|
+
/** Patches a default object ACL entry on the specified bucket. */
|
|
1491
|
+
patch(request: {
|
|
1492
|
+
/** Data format for the response. */
|
|
1493
|
+
alt?: string;
|
|
1494
|
+
/** Name of a bucket. */
|
|
1495
|
+
bucket: string;
|
|
1496
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1497
|
+
entity: string;
|
|
1498
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1499
|
+
fields?: string;
|
|
1500
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1501
|
+
key?: string;
|
|
1502
|
+
/** OAuth 2.0 token for the current user. */
|
|
1503
|
+
oauth_token?: string;
|
|
1504
|
+
/** Returns response with indentations and line breaks. */
|
|
1505
|
+
prettyPrint?: boolean;
|
|
1506
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1507
|
+
quotaUser?: string;
|
|
1508
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1509
|
+
uploadType?: string;
|
|
1510
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1511
|
+
userIp?: string;
|
|
1512
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1513
|
+
userProject?: string;
|
|
1514
|
+
/** Request body */
|
|
1515
|
+
resource: ObjectAccessControl;
|
|
1516
|
+
}): Request<ObjectAccessControl>;
|
|
1517
|
+
patch(request: {
|
|
1518
|
+
/** Data format for the response. */
|
|
1519
|
+
alt?: string;
|
|
1520
|
+
/** Name of a bucket. */
|
|
1521
|
+
bucket: string;
|
|
1522
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1523
|
+
entity: string;
|
|
1524
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1525
|
+
fields?: string;
|
|
1526
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1527
|
+
key?: string;
|
|
1528
|
+
/** OAuth 2.0 token for the current user. */
|
|
1529
|
+
oauth_token?: string;
|
|
1530
|
+
/** Returns response with indentations and line breaks. */
|
|
1531
|
+
prettyPrint?: boolean;
|
|
1532
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1533
|
+
quotaUser?: string;
|
|
1534
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1535
|
+
uploadType?: string;
|
|
1536
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1537
|
+
userIp?: string;
|
|
1538
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1539
|
+
userProject?: string;
|
|
1540
|
+
},
|
|
1541
|
+
body: ObjectAccessControl): Request<ObjectAccessControl>;
|
|
1542
|
+
/** Updates a default object ACL entry on the specified bucket. */
|
|
1543
|
+
update(request: {
|
|
1544
|
+
/** Data format for the response. */
|
|
1545
|
+
alt?: string;
|
|
1546
|
+
/** Name of a bucket. */
|
|
1547
|
+
bucket: string;
|
|
1548
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1549
|
+
entity: string;
|
|
1550
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1551
|
+
fields?: string;
|
|
1552
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1553
|
+
key?: string;
|
|
1554
|
+
/** OAuth 2.0 token for the current user. */
|
|
1555
|
+
oauth_token?: string;
|
|
1556
|
+
/** Returns response with indentations and line breaks. */
|
|
1557
|
+
prettyPrint?: boolean;
|
|
1558
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1559
|
+
quotaUser?: string;
|
|
1560
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1561
|
+
uploadType?: string;
|
|
1562
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1563
|
+
userIp?: string;
|
|
1564
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1565
|
+
userProject?: string;
|
|
1566
|
+
/** Request body */
|
|
1567
|
+
resource: ObjectAccessControl;
|
|
1568
|
+
}): Request<ObjectAccessControl>;
|
|
1569
|
+
update(request: {
|
|
1570
|
+
/** Data format for the response. */
|
|
1571
|
+
alt?: string;
|
|
1572
|
+
/** Name of a bucket. */
|
|
1573
|
+
bucket: string;
|
|
1574
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1575
|
+
entity: string;
|
|
1576
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1577
|
+
fields?: string;
|
|
1578
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1579
|
+
key?: string;
|
|
1580
|
+
/** OAuth 2.0 token for the current user. */
|
|
1581
|
+
oauth_token?: string;
|
|
1582
|
+
/** Returns response with indentations and line breaks. */
|
|
1583
|
+
prettyPrint?: boolean;
|
|
1584
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1585
|
+
quotaUser?: string;
|
|
1586
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1587
|
+
uploadType?: string;
|
|
1588
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1589
|
+
userIp?: string;
|
|
1590
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1591
|
+
userProject?: string;
|
|
1592
|
+
},
|
|
1593
|
+
body: ObjectAccessControl): Request<ObjectAccessControl>;
|
|
1594
|
+
}
|
|
1595
|
+
interface NotificationsResource {
|
|
1596
|
+
/** Permanently deletes a notification subscription. */
|
|
1597
|
+
delete(request?: {
|
|
1598
|
+
/** Data format for the response. */
|
|
1599
|
+
alt?: string;
|
|
1600
|
+
/** The parent bucket of the notification. */
|
|
1601
|
+
bucket: string;
|
|
1602
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1603
|
+
fields?: string;
|
|
1604
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1605
|
+
key?: string;
|
|
1606
|
+
/** ID of the notification to delete. */
|
|
1607
|
+
notification: string;
|
|
1608
|
+
/** OAuth 2.0 token for the current user. */
|
|
1609
|
+
oauth_token?: string;
|
|
1610
|
+
/** Returns response with indentations and line breaks. */
|
|
1611
|
+
prettyPrint?: boolean;
|
|
1612
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1613
|
+
quotaUser?: string;
|
|
1614
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1615
|
+
uploadType?: string;
|
|
1616
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1617
|
+
userIp?: string;
|
|
1618
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1619
|
+
userProject?: string;
|
|
1620
|
+
}): Request<void>;
|
|
1621
|
+
/** View a notification configuration. */
|
|
1622
|
+
get(request?: {
|
|
1623
|
+
/** Data format for the response. */
|
|
1624
|
+
alt?: string;
|
|
1625
|
+
/** The parent bucket of the notification. */
|
|
1626
|
+
bucket: string;
|
|
1627
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1628
|
+
fields?: string;
|
|
1629
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1630
|
+
key?: string;
|
|
1631
|
+
/** Notification ID */
|
|
1632
|
+
notification: string;
|
|
1633
|
+
/** OAuth 2.0 token for the current user. */
|
|
1634
|
+
oauth_token?: string;
|
|
1635
|
+
/** Returns response with indentations and line breaks. */
|
|
1636
|
+
prettyPrint?: boolean;
|
|
1637
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1638
|
+
quotaUser?: string;
|
|
1639
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1640
|
+
uploadType?: string;
|
|
1641
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1642
|
+
userIp?: string;
|
|
1643
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1644
|
+
userProject?: string;
|
|
1645
|
+
}): Request<Notification>;
|
|
1646
|
+
/** Creates a notification subscription for a given bucket. */
|
|
1647
|
+
insert(request: {
|
|
1648
|
+
/** Data format for the response. */
|
|
1649
|
+
alt?: string;
|
|
1650
|
+
/** The parent bucket of the notification. */
|
|
1651
|
+
bucket: string;
|
|
1652
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1653
|
+
fields?: string;
|
|
1654
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1655
|
+
key?: string;
|
|
1656
|
+
/** OAuth 2.0 token for the current user. */
|
|
1657
|
+
oauth_token?: string;
|
|
1658
|
+
/** Returns response with indentations and line breaks. */
|
|
1659
|
+
prettyPrint?: boolean;
|
|
1660
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1661
|
+
quotaUser?: string;
|
|
1662
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1663
|
+
uploadType?: string;
|
|
1664
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1665
|
+
userIp?: string;
|
|
1666
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1667
|
+
userProject?: string;
|
|
1668
|
+
/** Request body */
|
|
1669
|
+
resource: Notification;
|
|
1670
|
+
}): Request<Notification>;
|
|
1671
|
+
insert(request: {
|
|
1672
|
+
/** Data format for the response. */
|
|
1673
|
+
alt?: string;
|
|
1674
|
+
/** The parent bucket of the notification. */
|
|
1675
|
+
bucket: string;
|
|
1676
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1677
|
+
fields?: string;
|
|
1678
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1679
|
+
key?: string;
|
|
1680
|
+
/** OAuth 2.0 token for the current user. */
|
|
1681
|
+
oauth_token?: string;
|
|
1682
|
+
/** Returns response with indentations and line breaks. */
|
|
1683
|
+
prettyPrint?: boolean;
|
|
1684
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1685
|
+
quotaUser?: string;
|
|
1686
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1687
|
+
uploadType?: string;
|
|
1688
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1689
|
+
userIp?: string;
|
|
1690
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1691
|
+
userProject?: string;
|
|
1692
|
+
},
|
|
1693
|
+
body: Notification): Request<Notification>;
|
|
1694
|
+
/** Retrieves a list of notification subscriptions for a given bucket. */
|
|
1695
|
+
list(request?: {
|
|
1696
|
+
/** Data format for the response. */
|
|
1697
|
+
alt?: string;
|
|
1698
|
+
/** Name of a Google Cloud Storage bucket. */
|
|
1699
|
+
bucket: string;
|
|
1700
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1701
|
+
fields?: string;
|
|
1702
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1703
|
+
key?: string;
|
|
1704
|
+
/** OAuth 2.0 token for the current user. */
|
|
1705
|
+
oauth_token?: string;
|
|
1706
|
+
/** Returns response with indentations and line breaks. */
|
|
1707
|
+
prettyPrint?: boolean;
|
|
1708
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1709
|
+
quotaUser?: string;
|
|
1710
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1711
|
+
uploadType?: string;
|
|
1712
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1713
|
+
userIp?: string;
|
|
1714
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1715
|
+
userProject?: string;
|
|
1716
|
+
}): Request<Notifications>;
|
|
1717
|
+
}
|
|
1718
|
+
interface ObjectAccessControlsResource {
|
|
1719
|
+
/** Permanently deletes the ACL entry for the specified entity on the specified object. */
|
|
1720
|
+
delete(request?: {
|
|
1721
|
+
/** Data format for the response. */
|
|
1722
|
+
alt?: string;
|
|
1723
|
+
/** Name of a bucket. */
|
|
1724
|
+
bucket: string;
|
|
1725
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1726
|
+
entity: string;
|
|
1727
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1728
|
+
fields?: string;
|
|
1729
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
1730
|
+
generation?: string;
|
|
1731
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1732
|
+
key?: string;
|
|
1733
|
+
/** OAuth 2.0 token for the current user. */
|
|
1734
|
+
oauth_token?: string;
|
|
1735
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1736
|
+
object: string;
|
|
1737
|
+
/** Returns response with indentations and line breaks. */
|
|
1738
|
+
prettyPrint?: boolean;
|
|
1739
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1740
|
+
quotaUser?: string;
|
|
1741
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1742
|
+
uploadType?: string;
|
|
1743
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1744
|
+
userIp?: string;
|
|
1745
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1746
|
+
userProject?: string;
|
|
1747
|
+
}): Request<void>;
|
|
1748
|
+
/** Returns the ACL entry for the specified entity on the specified object. */
|
|
1749
|
+
get(request?: {
|
|
1750
|
+
/** Data format for the response. */
|
|
1751
|
+
alt?: string;
|
|
1752
|
+
/** Name of a bucket. */
|
|
1753
|
+
bucket: string;
|
|
1754
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1755
|
+
entity: string;
|
|
1756
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1757
|
+
fields?: string;
|
|
1758
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
1759
|
+
generation?: string;
|
|
1760
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1761
|
+
key?: string;
|
|
1762
|
+
/** OAuth 2.0 token for the current user. */
|
|
1763
|
+
oauth_token?: string;
|
|
1764
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1765
|
+
object: string;
|
|
1766
|
+
/** Returns response with indentations and line breaks. */
|
|
1767
|
+
prettyPrint?: boolean;
|
|
1768
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1769
|
+
quotaUser?: string;
|
|
1770
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1771
|
+
uploadType?: string;
|
|
1772
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1773
|
+
userIp?: string;
|
|
1774
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1775
|
+
userProject?: string;
|
|
1776
|
+
}): Request<ObjectAccessControl>;
|
|
1777
|
+
/** Creates a new ACL entry on the specified object. */
|
|
1778
|
+
insert(request: {
|
|
1779
|
+
/** Data format for the response. */
|
|
1780
|
+
alt?: string;
|
|
1781
|
+
/** Name of a bucket. */
|
|
1782
|
+
bucket: string;
|
|
1783
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1784
|
+
fields?: string;
|
|
1785
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
1786
|
+
generation?: string;
|
|
1787
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1788
|
+
key?: string;
|
|
1789
|
+
/** OAuth 2.0 token for the current user. */
|
|
1790
|
+
oauth_token?: string;
|
|
1791
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1792
|
+
object: string;
|
|
1793
|
+
/** Returns response with indentations and line breaks. */
|
|
1794
|
+
prettyPrint?: boolean;
|
|
1795
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1796
|
+
quotaUser?: string;
|
|
1797
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1798
|
+
uploadType?: string;
|
|
1799
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1800
|
+
userIp?: string;
|
|
1801
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1802
|
+
userProject?: string;
|
|
1803
|
+
/** Request body */
|
|
1804
|
+
resource: ObjectAccessControl;
|
|
1805
|
+
}): Request<ObjectAccessControl>;
|
|
1806
|
+
insert(request: {
|
|
1807
|
+
/** Data format for the response. */
|
|
1808
|
+
alt?: string;
|
|
1809
|
+
/** Name of a bucket. */
|
|
1810
|
+
bucket: string;
|
|
1811
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1812
|
+
fields?: string;
|
|
1813
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
1814
|
+
generation?: string;
|
|
1815
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1816
|
+
key?: string;
|
|
1817
|
+
/** OAuth 2.0 token for the current user. */
|
|
1818
|
+
oauth_token?: string;
|
|
1819
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1820
|
+
object: string;
|
|
1821
|
+
/** Returns response with indentations and line breaks. */
|
|
1822
|
+
prettyPrint?: boolean;
|
|
1823
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1824
|
+
quotaUser?: string;
|
|
1825
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1826
|
+
uploadType?: string;
|
|
1827
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1828
|
+
userIp?: string;
|
|
1829
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1830
|
+
userProject?: string;
|
|
1831
|
+
},
|
|
1832
|
+
body: ObjectAccessControl): Request<ObjectAccessControl>;
|
|
1833
|
+
/** Retrieves ACL entries on the specified object. */
|
|
1834
|
+
list(request?: {
|
|
1835
|
+
/** Data format for the response. */
|
|
1836
|
+
alt?: string;
|
|
1837
|
+
/** Name of a bucket. */
|
|
1838
|
+
bucket: string;
|
|
1839
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1840
|
+
fields?: string;
|
|
1841
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
1842
|
+
generation?: string;
|
|
1843
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1844
|
+
key?: string;
|
|
1845
|
+
/** OAuth 2.0 token for the current user. */
|
|
1846
|
+
oauth_token?: string;
|
|
1847
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1848
|
+
object: string;
|
|
1849
|
+
/** Returns response with indentations and line breaks. */
|
|
1850
|
+
prettyPrint?: boolean;
|
|
1851
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1852
|
+
quotaUser?: string;
|
|
1853
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1854
|
+
uploadType?: string;
|
|
1855
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1856
|
+
userIp?: string;
|
|
1857
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1858
|
+
userProject?: string;
|
|
1859
|
+
}): Request<ObjectAccessControls>;
|
|
1860
|
+
/** Patches an ACL entry on the specified object. */
|
|
1861
|
+
patch(request: {
|
|
1862
|
+
/** Data format for the response. */
|
|
1863
|
+
alt?: string;
|
|
1864
|
+
/** Name of a bucket. */
|
|
1865
|
+
bucket: string;
|
|
1866
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1867
|
+
entity: string;
|
|
1868
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1869
|
+
fields?: string;
|
|
1870
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
1871
|
+
generation?: string;
|
|
1872
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1873
|
+
key?: string;
|
|
1874
|
+
/** OAuth 2.0 token for the current user. */
|
|
1875
|
+
oauth_token?: string;
|
|
1876
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1877
|
+
object: string;
|
|
1878
|
+
/** Returns response with indentations and line breaks. */
|
|
1879
|
+
prettyPrint?: boolean;
|
|
1880
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1881
|
+
quotaUser?: string;
|
|
1882
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1883
|
+
uploadType?: string;
|
|
1884
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1885
|
+
userIp?: string;
|
|
1886
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1887
|
+
userProject?: string;
|
|
1888
|
+
/** Request body */
|
|
1889
|
+
resource: ObjectAccessControl;
|
|
1890
|
+
}): Request<ObjectAccessControl>;
|
|
1891
|
+
patch(request: {
|
|
1892
|
+
/** Data format for the response. */
|
|
1893
|
+
alt?: string;
|
|
1894
|
+
/** Name of a bucket. */
|
|
1895
|
+
bucket: string;
|
|
1896
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1897
|
+
entity: string;
|
|
1898
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1899
|
+
fields?: string;
|
|
1900
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
1901
|
+
generation?: string;
|
|
1902
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1903
|
+
key?: string;
|
|
1904
|
+
/** OAuth 2.0 token for the current user. */
|
|
1905
|
+
oauth_token?: string;
|
|
1906
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1907
|
+
object: string;
|
|
1908
|
+
/** Returns response with indentations and line breaks. */
|
|
1909
|
+
prettyPrint?: boolean;
|
|
1910
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1911
|
+
quotaUser?: string;
|
|
1912
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1913
|
+
uploadType?: string;
|
|
1914
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1915
|
+
userIp?: string;
|
|
1916
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1917
|
+
userProject?: string;
|
|
1918
|
+
},
|
|
1919
|
+
body: ObjectAccessControl): Request<ObjectAccessControl>;
|
|
1920
|
+
/** Updates an ACL entry on the specified object. */
|
|
1921
|
+
update(request: {
|
|
1922
|
+
/** Data format for the response. */
|
|
1923
|
+
alt?: string;
|
|
1924
|
+
/** Name of a bucket. */
|
|
1925
|
+
bucket: string;
|
|
1926
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1927
|
+
entity: string;
|
|
1928
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1929
|
+
fields?: string;
|
|
1930
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
1931
|
+
generation?: string;
|
|
1932
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1933
|
+
key?: string;
|
|
1934
|
+
/** OAuth 2.0 token for the current user. */
|
|
1935
|
+
oauth_token?: string;
|
|
1936
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1937
|
+
object: string;
|
|
1938
|
+
/** Returns response with indentations and line breaks. */
|
|
1939
|
+
prettyPrint?: boolean;
|
|
1940
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1941
|
+
quotaUser?: string;
|
|
1942
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1943
|
+
uploadType?: string;
|
|
1944
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1945
|
+
userIp?: string;
|
|
1946
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1947
|
+
userProject?: string;
|
|
1948
|
+
/** Request body */
|
|
1949
|
+
resource: ObjectAccessControl;
|
|
1950
|
+
}): Request<ObjectAccessControl>;
|
|
1951
|
+
update(request: {
|
|
1952
|
+
/** Data format for the response. */
|
|
1953
|
+
alt?: string;
|
|
1954
|
+
/** Name of a bucket. */
|
|
1955
|
+
bucket: string;
|
|
1956
|
+
/** The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. */
|
|
1957
|
+
entity: string;
|
|
1958
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1959
|
+
fields?: string;
|
|
1960
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
1961
|
+
generation?: string;
|
|
1962
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1963
|
+
key?: string;
|
|
1964
|
+
/** OAuth 2.0 token for the current user. */
|
|
1965
|
+
oauth_token?: string;
|
|
1966
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1967
|
+
object: string;
|
|
1968
|
+
/** Returns response with indentations and line breaks. */
|
|
1969
|
+
prettyPrint?: boolean;
|
|
1970
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
1971
|
+
quotaUser?: string;
|
|
1972
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
1973
|
+
uploadType?: string;
|
|
1974
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
1975
|
+
userIp?: string;
|
|
1976
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
1977
|
+
userProject?: string;
|
|
1978
|
+
},
|
|
1979
|
+
body: ObjectAccessControl): Request<ObjectAccessControl>;
|
|
1980
|
+
}
|
|
1981
|
+
interface ObjectsResource {
|
|
1982
|
+
/** Concatenates a list of existing objects into a new object in the same bucket. */
|
|
1983
|
+
compose(request: {
|
|
1984
|
+
/** Data format for the response. */
|
|
1985
|
+
alt?: string;
|
|
1986
|
+
/** Name of the bucket containing the source objects. The destination object is stored in this bucket. */
|
|
1987
|
+
destinationBucket: string;
|
|
1988
|
+
/** Name of the new object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
1989
|
+
destinationObject: string;
|
|
1990
|
+
/** Apply a predefined set of access controls to the destination object. */
|
|
1991
|
+
destinationPredefinedAcl?: string;
|
|
1992
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1993
|
+
fields?: string;
|
|
1994
|
+
/**
|
|
1995
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
1996
|
+
* of the object.
|
|
1997
|
+
*/
|
|
1998
|
+
ifGenerationMatch?: string;
|
|
1999
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2000
|
+
ifMetagenerationMatch?: string;
|
|
2001
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2002
|
+
key?: string;
|
|
2003
|
+
/**
|
|
2004
|
+
* Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
|
|
2005
|
+
* object metadata's kms_key_name value, if any.
|
|
2006
|
+
*/
|
|
2007
|
+
kmsKeyName?: string;
|
|
2008
|
+
/** OAuth 2.0 token for the current user. */
|
|
2009
|
+
oauth_token?: string;
|
|
2010
|
+
/** Returns response with indentations and line breaks. */
|
|
2011
|
+
prettyPrint?: boolean;
|
|
2012
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2013
|
+
quotaUser?: string;
|
|
2014
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2015
|
+
uploadType?: string;
|
|
2016
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2017
|
+
userIp?: string;
|
|
2018
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2019
|
+
userProject?: string;
|
|
2020
|
+
/** Request body */
|
|
2021
|
+
resource: ComposeRequest;
|
|
2022
|
+
}
|
|
2023
|
+
// tslint:disable-next-line:ban-types
|
|
2024
|
+
): Request<Object>;
|
|
2025
|
+
compose(request: {
|
|
2026
|
+
/** Data format for the response. */
|
|
2027
|
+
alt?: string;
|
|
2028
|
+
/** Name of the bucket containing the source objects. The destination object is stored in this bucket. */
|
|
2029
|
+
destinationBucket: string;
|
|
2030
|
+
/** Name of the new object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2031
|
+
destinationObject: string;
|
|
2032
|
+
/** Apply a predefined set of access controls to the destination object. */
|
|
2033
|
+
destinationPredefinedAcl?: string;
|
|
2034
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2035
|
+
fields?: string;
|
|
2036
|
+
/**
|
|
2037
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2038
|
+
* of the object.
|
|
2039
|
+
*/
|
|
2040
|
+
ifGenerationMatch?: string;
|
|
2041
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2042
|
+
ifMetagenerationMatch?: string;
|
|
2043
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2044
|
+
key?: string;
|
|
2045
|
+
/**
|
|
2046
|
+
* Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
|
|
2047
|
+
* object metadata's kms_key_name value, if any.
|
|
2048
|
+
*/
|
|
2049
|
+
kmsKeyName?: string;
|
|
2050
|
+
/** OAuth 2.0 token for the current user. */
|
|
2051
|
+
oauth_token?: string;
|
|
2052
|
+
/** Returns response with indentations and line breaks. */
|
|
2053
|
+
prettyPrint?: boolean;
|
|
2054
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2055
|
+
quotaUser?: string;
|
|
2056
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2057
|
+
uploadType?: string;
|
|
2058
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2059
|
+
userIp?: string;
|
|
2060
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2061
|
+
userProject?: string;
|
|
2062
|
+
},
|
|
2063
|
+
body: ComposeRequest
|
|
2064
|
+
// tslint:disable-next-line:ban-types
|
|
2065
|
+
): Request<Object>;
|
|
2066
|
+
/** Copies a source object to a destination object. Optionally overrides metadata. */
|
|
2067
|
+
copy(request: {
|
|
2068
|
+
/** Data format for the response. */
|
|
2069
|
+
alt?: string;
|
|
2070
|
+
/**
|
|
2071
|
+
* Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.For information about how to URL encode object names to be
|
|
2072
|
+
* path safe, see Encoding URI Path Parts.
|
|
2073
|
+
*/
|
|
2074
|
+
destinationBucket: string;
|
|
2075
|
+
/**
|
|
2076
|
+
* Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
|
|
2077
|
+
* object metadata's kms_key_name value, if any.
|
|
2078
|
+
*/
|
|
2079
|
+
destinationKmsKeyName?: string;
|
|
2080
|
+
/** Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. */
|
|
2081
|
+
destinationObject: string;
|
|
2082
|
+
/** Apply a predefined set of access controls to the destination object. */
|
|
2083
|
+
destinationPredefinedAcl?: string;
|
|
2084
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2085
|
+
fields?: string;
|
|
2086
|
+
/**
|
|
2087
|
+
* Makes the operation conditional on whether the destination object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no
|
|
2088
|
+
* live versions of the object.
|
|
2089
|
+
*/
|
|
2090
|
+
ifGenerationMatch?: string;
|
|
2091
|
+
/**
|
|
2092
|
+
* Makes the operation conditional on whether the destination object's current generation does not match the given value. If no live object exists, the precondition fails. Setting
|
|
2093
|
+
* to 0 makes the operation succeed only if there is a live version of the object.
|
|
2094
|
+
*/
|
|
2095
|
+
ifGenerationNotMatch?: string;
|
|
2096
|
+
/** Makes the operation conditional on whether the destination object's current metageneration matches the given value. */
|
|
2097
|
+
ifMetagenerationMatch?: string;
|
|
2098
|
+
/** Makes the operation conditional on whether the destination object's current metageneration does not match the given value. */
|
|
2099
|
+
ifMetagenerationNotMatch?: string;
|
|
2100
|
+
/** Makes the operation conditional on whether the source object's current generation matches the given value. */
|
|
2101
|
+
ifSourceGenerationMatch?: string;
|
|
2102
|
+
/** Makes the operation conditional on whether the source object's current generation does not match the given value. */
|
|
2103
|
+
ifSourceGenerationNotMatch?: string;
|
|
2104
|
+
/** Makes the operation conditional on whether the source object's current metageneration matches the given value. */
|
|
2105
|
+
ifSourceMetagenerationMatch?: string;
|
|
2106
|
+
/** Makes the operation conditional on whether the source object's current metageneration does not match the given value. */
|
|
2107
|
+
ifSourceMetagenerationNotMatch?: string;
|
|
2108
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2109
|
+
key?: string;
|
|
2110
|
+
/** OAuth 2.0 token for the current user. */
|
|
2111
|
+
oauth_token?: string;
|
|
2112
|
+
/** Returns response with indentations and line breaks. */
|
|
2113
|
+
prettyPrint?: boolean;
|
|
2114
|
+
/** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
|
|
2115
|
+
projection?: string;
|
|
2116
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2117
|
+
quotaUser?: string;
|
|
2118
|
+
/** Name of the bucket in which to find the source object. */
|
|
2119
|
+
sourceBucket: string;
|
|
2120
|
+
/** If present, selects a specific revision of the source object (as opposed to the latest version, the default). */
|
|
2121
|
+
sourceGeneration?: string;
|
|
2122
|
+
/** Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2123
|
+
sourceObject: string;
|
|
2124
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2125
|
+
uploadType?: string;
|
|
2126
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2127
|
+
userIp?: string;
|
|
2128
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2129
|
+
userProject?: string;
|
|
2130
|
+
/** Request body */
|
|
2131
|
+
// tslint:disable-next-line:ban-types
|
|
2132
|
+
resource: Object;
|
|
2133
|
+
}
|
|
2134
|
+
// tslint:disable-next-line:ban-types
|
|
2135
|
+
): Request<Object>;
|
|
2136
|
+
copy(request: {
|
|
2137
|
+
/** Data format for the response. */
|
|
2138
|
+
alt?: string;
|
|
2139
|
+
/**
|
|
2140
|
+
* Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.For information about how to URL encode object names to be
|
|
2141
|
+
* path safe, see Encoding URI Path Parts.
|
|
2142
|
+
*/
|
|
2143
|
+
destinationBucket: string;
|
|
2144
|
+
/**
|
|
2145
|
+
* Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
|
|
2146
|
+
* object metadata's kms_key_name value, if any.
|
|
2147
|
+
*/
|
|
2148
|
+
destinationKmsKeyName?: string;
|
|
2149
|
+
/** Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. */
|
|
2150
|
+
destinationObject: string;
|
|
2151
|
+
/** Apply a predefined set of access controls to the destination object. */
|
|
2152
|
+
destinationPredefinedAcl?: string;
|
|
2153
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2154
|
+
fields?: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* Makes the operation conditional on whether the destination object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no
|
|
2157
|
+
* live versions of the object.
|
|
2158
|
+
*/
|
|
2159
|
+
ifGenerationMatch?: string;
|
|
2160
|
+
/**
|
|
2161
|
+
* Makes the operation conditional on whether the destination object's current generation does not match the given value. If no live object exists, the precondition fails. Setting
|
|
2162
|
+
* to 0 makes the operation succeed only if there is a live version of the object.
|
|
2163
|
+
*/
|
|
2164
|
+
ifGenerationNotMatch?: string;
|
|
2165
|
+
/** Makes the operation conditional on whether the destination object's current metageneration matches the given value. */
|
|
2166
|
+
ifMetagenerationMatch?: string;
|
|
2167
|
+
/** Makes the operation conditional on whether the destination object's current metageneration does not match the given value. */
|
|
2168
|
+
ifMetagenerationNotMatch?: string;
|
|
2169
|
+
/** Makes the operation conditional on whether the source object's current generation matches the given value. */
|
|
2170
|
+
ifSourceGenerationMatch?: string;
|
|
2171
|
+
/** Makes the operation conditional on whether the source object's current generation does not match the given value. */
|
|
2172
|
+
ifSourceGenerationNotMatch?: string;
|
|
2173
|
+
/** Makes the operation conditional on whether the source object's current metageneration matches the given value. */
|
|
2174
|
+
ifSourceMetagenerationMatch?: string;
|
|
2175
|
+
/** Makes the operation conditional on whether the source object's current metageneration does not match the given value. */
|
|
2176
|
+
ifSourceMetagenerationNotMatch?: string;
|
|
2177
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2178
|
+
key?: string;
|
|
2179
|
+
/** OAuth 2.0 token for the current user. */
|
|
2180
|
+
oauth_token?: string;
|
|
2181
|
+
/** Returns response with indentations and line breaks. */
|
|
2182
|
+
prettyPrint?: boolean;
|
|
2183
|
+
/** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
|
|
2184
|
+
projection?: string;
|
|
2185
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2186
|
+
quotaUser?: string;
|
|
2187
|
+
/** Name of the bucket in which to find the source object. */
|
|
2188
|
+
sourceBucket: string;
|
|
2189
|
+
/** If present, selects a specific revision of the source object (as opposed to the latest version, the default). */
|
|
2190
|
+
sourceGeneration?: string;
|
|
2191
|
+
/** Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2192
|
+
sourceObject: string;
|
|
2193
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2194
|
+
uploadType?: string;
|
|
2195
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2196
|
+
userIp?: string;
|
|
2197
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2198
|
+
userProject?: string;
|
|
2199
|
+
},
|
|
2200
|
+
// tslint:disable-next-line:ban-types
|
|
2201
|
+
body: Object
|
|
2202
|
+
// tslint:disable-next-line:ban-types
|
|
2203
|
+
): Request<Object>;
|
|
2204
|
+
/** Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used. */
|
|
2205
|
+
delete(request?: {
|
|
2206
|
+
/** Data format for the response. */
|
|
2207
|
+
alt?: string;
|
|
2208
|
+
/** Name of the bucket in which the object resides. */
|
|
2209
|
+
bucket: string;
|
|
2210
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2211
|
+
fields?: string;
|
|
2212
|
+
/** If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default). */
|
|
2213
|
+
generation?: string;
|
|
2214
|
+
/**
|
|
2215
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2216
|
+
* of the object.
|
|
2217
|
+
*/
|
|
2218
|
+
ifGenerationMatch?: string;
|
|
2219
|
+
/**
|
|
2220
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2221
|
+
* the operation succeed only if there is a live version of the object.
|
|
2222
|
+
*/
|
|
2223
|
+
ifGenerationNotMatch?: string;
|
|
2224
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2225
|
+
ifMetagenerationMatch?: string;
|
|
2226
|
+
/** Makes the operation conditional on whether the object's current metageneration does not match the given value. */
|
|
2227
|
+
ifMetagenerationNotMatch?: string;
|
|
2228
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2229
|
+
key?: string;
|
|
2230
|
+
/** OAuth 2.0 token for the current user. */
|
|
2231
|
+
oauth_token?: string;
|
|
2232
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2233
|
+
object: string;
|
|
2234
|
+
/** Returns response with indentations and line breaks. */
|
|
2235
|
+
prettyPrint?: boolean;
|
|
2236
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2237
|
+
quotaUser?: string;
|
|
2238
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2239
|
+
uploadType?: string;
|
|
2240
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2241
|
+
userIp?: string;
|
|
2242
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2243
|
+
userProject?: string;
|
|
2244
|
+
}): Request<void>;
|
|
2245
|
+
/** Retrieves an object or its metadata. */
|
|
2246
|
+
get(request?: {
|
|
2247
|
+
/** Data format for the response. */
|
|
2248
|
+
alt?: string;
|
|
2249
|
+
/** Name of the bucket in which the object resides. */
|
|
2250
|
+
bucket: string;
|
|
2251
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2252
|
+
fields?: string;
|
|
2253
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
2254
|
+
generation?: string;
|
|
2255
|
+
/**
|
|
2256
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2257
|
+
* of the object.
|
|
2258
|
+
*/
|
|
2259
|
+
ifGenerationMatch?: string;
|
|
2260
|
+
/**
|
|
2261
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2262
|
+
* the operation succeed only if there is a live version of the object.
|
|
2263
|
+
*/
|
|
2264
|
+
ifGenerationNotMatch?: string;
|
|
2265
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2266
|
+
ifMetagenerationMatch?: string;
|
|
2267
|
+
/** Makes the operation conditional on whether the object's current metageneration does not match the given value. */
|
|
2268
|
+
ifMetagenerationNotMatch?: string;
|
|
2269
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2270
|
+
key?: string;
|
|
2271
|
+
/** OAuth 2.0 token for the current user. */
|
|
2272
|
+
oauth_token?: string;
|
|
2273
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2274
|
+
object: string;
|
|
2275
|
+
/** Returns response with indentations and line breaks. */
|
|
2276
|
+
prettyPrint?: boolean;
|
|
2277
|
+
/** Set of properties to return. Defaults to noAcl. */
|
|
2278
|
+
projection?: string;
|
|
2279
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2280
|
+
quotaUser?: string;
|
|
2281
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2282
|
+
uploadType?: string;
|
|
2283
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2284
|
+
userIp?: string;
|
|
2285
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2286
|
+
userProject?: string;
|
|
2287
|
+
}
|
|
2288
|
+
// tslint:disable-next-line:ban-types
|
|
2289
|
+
): Request<Object>;
|
|
2290
|
+
/** Returns an IAM policy for the specified object. */
|
|
2291
|
+
getIamPolicy(request?: {
|
|
2292
|
+
/** Data format for the response. */
|
|
2293
|
+
alt?: string;
|
|
2294
|
+
/** Name of the bucket in which the object resides. */
|
|
2295
|
+
bucket: string;
|
|
2296
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2297
|
+
fields?: string;
|
|
2298
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
2299
|
+
generation?: string;
|
|
2300
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2301
|
+
key?: string;
|
|
2302
|
+
/** OAuth 2.0 token for the current user. */
|
|
2303
|
+
oauth_token?: string;
|
|
2304
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2305
|
+
object: string;
|
|
2306
|
+
/** Returns response with indentations and line breaks. */
|
|
2307
|
+
prettyPrint?: boolean;
|
|
2308
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2309
|
+
quotaUser?: string;
|
|
2310
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2311
|
+
uploadType?: string;
|
|
2312
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2313
|
+
userIp?: string;
|
|
2314
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2315
|
+
userProject?: string;
|
|
2316
|
+
}): Request<Policy>;
|
|
2317
|
+
/** Stores a new object and metadata. */
|
|
2318
|
+
insert(request: {
|
|
2319
|
+
/** Data format for the response. */
|
|
2320
|
+
alt?: string;
|
|
2321
|
+
/** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. */
|
|
2322
|
+
bucket: string;
|
|
2323
|
+
/**
|
|
2324
|
+
* If set, sets the contentEncoding property of the final object to this value. Setting this parameter is equivalent to setting the contentEncoding metadata property. This can be
|
|
2325
|
+
* useful when uploading an object with uploadType=media to indicate the encoding of the content being uploaded.
|
|
2326
|
+
*/
|
|
2327
|
+
contentEncoding?: string;
|
|
2328
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2329
|
+
fields?: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2332
|
+
* of the object.
|
|
2333
|
+
*/
|
|
2334
|
+
ifGenerationMatch?: string;
|
|
2335
|
+
/**
|
|
2336
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2337
|
+
* the operation succeed only if there is a live version of the object.
|
|
2338
|
+
*/
|
|
2339
|
+
ifGenerationNotMatch?: string;
|
|
2340
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2341
|
+
ifMetagenerationMatch?: string;
|
|
2342
|
+
/** Makes the operation conditional on whether the object's current metageneration does not match the given value. */
|
|
2343
|
+
ifMetagenerationNotMatch?: string;
|
|
2344
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2345
|
+
key?: string;
|
|
2346
|
+
/**
|
|
2347
|
+
* Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
|
|
2348
|
+
* object metadata's kms_key_name value, if any.
|
|
2349
|
+
*/
|
|
2350
|
+
kmsKeyName?: string;
|
|
2351
|
+
/**
|
|
2352
|
+
* Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode
|
|
2353
|
+
* object names to be path safe, see Encoding URI Path Parts.
|
|
2354
|
+
*/
|
|
2355
|
+
name?: string;
|
|
2356
|
+
/** OAuth 2.0 token for the current user. */
|
|
2357
|
+
oauth_token?: string;
|
|
2358
|
+
/** Apply a predefined set of access controls to this object. */
|
|
2359
|
+
predefinedAcl?: string;
|
|
2360
|
+
/** Returns response with indentations and line breaks. */
|
|
2361
|
+
prettyPrint?: boolean;
|
|
2362
|
+
/** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
|
|
2363
|
+
projection?: string;
|
|
2364
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2365
|
+
quotaUser?: string;
|
|
2366
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2367
|
+
uploadType?: string;
|
|
2368
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2369
|
+
userIp?: string;
|
|
2370
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2371
|
+
userProject?: string;
|
|
2372
|
+
/** Request body */
|
|
2373
|
+
// tslint:disable-next-line:ban-types
|
|
2374
|
+
resource: Object;
|
|
2375
|
+
}
|
|
2376
|
+
// tslint:disable-next-line:ban-types
|
|
2377
|
+
): Request<Object>;
|
|
2378
|
+
insert(request: {
|
|
2379
|
+
/** Data format for the response. */
|
|
2380
|
+
alt?: string;
|
|
2381
|
+
/** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. */
|
|
2382
|
+
bucket: string;
|
|
2383
|
+
/**
|
|
2384
|
+
* If set, sets the contentEncoding property of the final object to this value. Setting this parameter is equivalent to setting the contentEncoding metadata property. This can be
|
|
2385
|
+
* useful when uploading an object with uploadType=media to indicate the encoding of the content being uploaded.
|
|
2386
|
+
*/
|
|
2387
|
+
contentEncoding?: string;
|
|
2388
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2389
|
+
fields?: string;
|
|
2390
|
+
/**
|
|
2391
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2392
|
+
* of the object.
|
|
2393
|
+
*/
|
|
2394
|
+
ifGenerationMatch?: string;
|
|
2395
|
+
/**
|
|
2396
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2397
|
+
* the operation succeed only if there is a live version of the object.
|
|
2398
|
+
*/
|
|
2399
|
+
ifGenerationNotMatch?: string;
|
|
2400
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2401
|
+
ifMetagenerationMatch?: string;
|
|
2402
|
+
/** Makes the operation conditional on whether the object's current metageneration does not match the given value. */
|
|
2403
|
+
ifMetagenerationNotMatch?: string;
|
|
2404
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2405
|
+
key?: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
|
|
2408
|
+
* object metadata's kms_key_name value, if any.
|
|
2409
|
+
*/
|
|
2410
|
+
kmsKeyName?: string;
|
|
2411
|
+
/**
|
|
2412
|
+
* Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode
|
|
2413
|
+
* object names to be path safe, see Encoding URI Path Parts.
|
|
2414
|
+
*/
|
|
2415
|
+
name?: string;
|
|
2416
|
+
/** OAuth 2.0 token for the current user. */
|
|
2417
|
+
oauth_token?: string;
|
|
2418
|
+
/** Apply a predefined set of access controls to this object. */
|
|
2419
|
+
predefinedAcl?: string;
|
|
2420
|
+
/** Returns response with indentations and line breaks. */
|
|
2421
|
+
prettyPrint?: boolean;
|
|
2422
|
+
/** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
|
|
2423
|
+
projection?: string;
|
|
2424
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2425
|
+
quotaUser?: string;
|
|
2426
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2427
|
+
uploadType?: string;
|
|
2428
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2429
|
+
userIp?: string;
|
|
2430
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2431
|
+
userProject?: string;
|
|
2432
|
+
},
|
|
2433
|
+
// tslint:disable-next-line:ban-types
|
|
2434
|
+
body: Object
|
|
2435
|
+
// tslint:disable-next-line:ban-types
|
|
2436
|
+
): Request<Object>;
|
|
2437
|
+
/** Retrieves a list of objects matching the criteria. */
|
|
2438
|
+
list(request?: {
|
|
2439
|
+
/** Data format for the response. */
|
|
2440
|
+
alt?: string;
|
|
2441
|
+
/** Name of the bucket in which to look for objects. */
|
|
2442
|
+
bucket: string;
|
|
2443
|
+
/**
|
|
2444
|
+
* Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the
|
|
2445
|
+
* prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
|
|
2446
|
+
*/
|
|
2447
|
+
delimiter?: string;
|
|
2448
|
+
/**
|
|
2449
|
+
* Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and
|
|
2450
|
+
* endOffset (exclusive).
|
|
2451
|
+
*/
|
|
2452
|
+
endOffset?: string;
|
|
2453
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2454
|
+
fields?: string;
|
|
2455
|
+
/** If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes. */
|
|
2456
|
+
includeTrailingDelimiter?: boolean;
|
|
2457
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2458
|
+
key?: string;
|
|
2459
|
+
/**
|
|
2460
|
+
* Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service
|
|
2461
|
+
* will use this parameter or 1,000 items, whichever is smaller.
|
|
2462
|
+
*/
|
|
2463
|
+
maxResults?: number;
|
|
2464
|
+
/** OAuth 2.0 token for the current user. */
|
|
2465
|
+
oauth_token?: string;
|
|
2466
|
+
/** A previously-returned page token representing part of the larger set of results to view. */
|
|
2467
|
+
pageToken?: string;
|
|
2468
|
+
/** Filter results to objects whose names begin with this prefix. */
|
|
2469
|
+
prefix?: string;
|
|
2470
|
+
/** Returns response with indentations and line breaks. */
|
|
2471
|
+
prettyPrint?: boolean;
|
|
2472
|
+
/** Set of properties to return. Defaults to noAcl. */
|
|
2473
|
+
projection?: string;
|
|
2474
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2475
|
+
quotaUser?: string;
|
|
2476
|
+
/**
|
|
2477
|
+
* Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset
|
|
2478
|
+
* (inclusive) and endOffset (exclusive).
|
|
2479
|
+
*/
|
|
2480
|
+
startOffset?: string;
|
|
2481
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2482
|
+
uploadType?: string;
|
|
2483
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2484
|
+
userIp?: string;
|
|
2485
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2486
|
+
userProject?: string;
|
|
2487
|
+
/** If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning. */
|
|
2488
|
+
versions?: boolean;
|
|
2489
|
+
}): Request<Objects>;
|
|
2490
|
+
/** Patches an object's metadata. */
|
|
2491
|
+
patch(request: {
|
|
2492
|
+
/** Data format for the response. */
|
|
2493
|
+
alt?: string;
|
|
2494
|
+
/** Name of the bucket in which the object resides. */
|
|
2495
|
+
bucket: string;
|
|
2496
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2497
|
+
fields?: string;
|
|
2498
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
2499
|
+
generation?: string;
|
|
2500
|
+
/**
|
|
2501
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2502
|
+
* of the object.
|
|
2503
|
+
*/
|
|
2504
|
+
ifGenerationMatch?: string;
|
|
2505
|
+
/**
|
|
2506
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2507
|
+
* the operation succeed only if there is a live version of the object.
|
|
2508
|
+
*/
|
|
2509
|
+
ifGenerationNotMatch?: string;
|
|
2510
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2511
|
+
ifMetagenerationMatch?: string;
|
|
2512
|
+
/** Makes the operation conditional on whether the object's current metageneration does not match the given value. */
|
|
2513
|
+
ifMetagenerationNotMatch?: string;
|
|
2514
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2515
|
+
key?: string;
|
|
2516
|
+
/** OAuth 2.0 token for the current user. */
|
|
2517
|
+
oauth_token?: string;
|
|
2518
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2519
|
+
object: string;
|
|
2520
|
+
/** Apply a predefined set of access controls to this object. */
|
|
2521
|
+
predefinedAcl?: string;
|
|
2522
|
+
/** Returns response with indentations and line breaks. */
|
|
2523
|
+
prettyPrint?: boolean;
|
|
2524
|
+
/** Set of properties to return. Defaults to full. */
|
|
2525
|
+
projection?: string;
|
|
2526
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2527
|
+
quotaUser?: string;
|
|
2528
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2529
|
+
uploadType?: string;
|
|
2530
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2531
|
+
userIp?: string;
|
|
2532
|
+
/** The project to be billed for this request, for Requester Pays buckets. */
|
|
2533
|
+
userProject?: string;
|
|
2534
|
+
/** Request body */
|
|
2535
|
+
// tslint:disable-next-line:ban-types
|
|
2536
|
+
resource: Object;
|
|
2537
|
+
}
|
|
2538
|
+
// tslint:disable-next-line:ban-types
|
|
2539
|
+
): Request<Object>;
|
|
2540
|
+
patch(request: {
|
|
2541
|
+
/** Data format for the response. */
|
|
2542
|
+
alt?: string;
|
|
2543
|
+
/** Name of the bucket in which the object resides. */
|
|
2544
|
+
bucket: string;
|
|
2545
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2546
|
+
fields?: string;
|
|
2547
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
2548
|
+
generation?: string;
|
|
2549
|
+
/**
|
|
2550
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2551
|
+
* of the object.
|
|
2552
|
+
*/
|
|
2553
|
+
ifGenerationMatch?: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2556
|
+
* the operation succeed only if there is a live version of the object.
|
|
2557
|
+
*/
|
|
2558
|
+
ifGenerationNotMatch?: string;
|
|
2559
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2560
|
+
ifMetagenerationMatch?: string;
|
|
2561
|
+
/** Makes the operation conditional on whether the object's current metageneration does not match the given value. */
|
|
2562
|
+
ifMetagenerationNotMatch?: string;
|
|
2563
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2564
|
+
key?: string;
|
|
2565
|
+
/** OAuth 2.0 token for the current user. */
|
|
2566
|
+
oauth_token?: string;
|
|
2567
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2568
|
+
object: string;
|
|
2569
|
+
/** Apply a predefined set of access controls to this object. */
|
|
2570
|
+
predefinedAcl?: string;
|
|
2571
|
+
/** Returns response with indentations and line breaks. */
|
|
2572
|
+
prettyPrint?: boolean;
|
|
2573
|
+
/** Set of properties to return. Defaults to full. */
|
|
2574
|
+
projection?: string;
|
|
2575
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2576
|
+
quotaUser?: string;
|
|
2577
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2578
|
+
uploadType?: string;
|
|
2579
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2580
|
+
userIp?: string;
|
|
2581
|
+
/** The project to be billed for this request, for Requester Pays buckets. */
|
|
2582
|
+
userProject?: string;
|
|
2583
|
+
},
|
|
2584
|
+
// tslint:disable-next-line:ban-types
|
|
2585
|
+
body: Object
|
|
2586
|
+
// tslint:disable-next-line:ban-types
|
|
2587
|
+
): Request<Object>;
|
|
2588
|
+
/** Rewrites a source object to a destination object. Optionally overrides metadata. */
|
|
2589
|
+
rewrite(request: {
|
|
2590
|
+
/** Data format for the response. */
|
|
2591
|
+
alt?: string;
|
|
2592
|
+
/** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. */
|
|
2593
|
+
destinationBucket: string;
|
|
2594
|
+
/**
|
|
2595
|
+
* Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
|
|
2596
|
+
* object metadata's kms_key_name value, if any.
|
|
2597
|
+
*/
|
|
2598
|
+
destinationKmsKeyName?: string;
|
|
2599
|
+
/**
|
|
2600
|
+
* Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode
|
|
2601
|
+
* object names to be path safe, see Encoding URI Path Parts.
|
|
2602
|
+
*/
|
|
2603
|
+
destinationObject: string;
|
|
2604
|
+
/** Apply a predefined set of access controls to the destination object. */
|
|
2605
|
+
destinationPredefinedAcl?: string;
|
|
2606
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2607
|
+
fields?: string;
|
|
2608
|
+
/**
|
|
2609
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2610
|
+
* of the object.
|
|
2611
|
+
*/
|
|
2612
|
+
ifGenerationMatch?: string;
|
|
2613
|
+
/**
|
|
2614
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2615
|
+
* the operation succeed only if there is a live version of the object.
|
|
2616
|
+
*/
|
|
2617
|
+
ifGenerationNotMatch?: string;
|
|
2618
|
+
/** Makes the operation conditional on whether the destination object's current metageneration matches the given value. */
|
|
2619
|
+
ifMetagenerationMatch?: string;
|
|
2620
|
+
/** Makes the operation conditional on whether the destination object's current metageneration does not match the given value. */
|
|
2621
|
+
ifMetagenerationNotMatch?: string;
|
|
2622
|
+
/** Makes the operation conditional on whether the source object's current generation matches the given value. */
|
|
2623
|
+
ifSourceGenerationMatch?: string;
|
|
2624
|
+
/** Makes the operation conditional on whether the source object's current generation does not match the given value. */
|
|
2625
|
+
ifSourceGenerationNotMatch?: string;
|
|
2626
|
+
/** Makes the operation conditional on whether the source object's current metageneration matches the given value. */
|
|
2627
|
+
ifSourceMetagenerationMatch?: string;
|
|
2628
|
+
/** Makes the operation conditional on whether the source object's current metageneration does not match the given value. */
|
|
2629
|
+
ifSourceMetagenerationNotMatch?: string;
|
|
2630
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2631
|
+
key?: string;
|
|
2632
|
+
/**
|
|
2633
|
+
* The maximum number of bytes that will be rewritten per rewrite request. Most callers shouldn't need to specify this parameter - it is primarily in place to support testing. If
|
|
2634
|
+
* specified the value must be an integral multiple of 1 MiB (1048576). Also, this only applies to requests where the source and destination span locations and/or storage classes.
|
|
2635
|
+
* Finally, this value must not change across rewrite calls else you'll get an error that the rewriteToken is invalid.
|
|
2636
|
+
*/
|
|
2637
|
+
maxBytesRewrittenPerCall?: string;
|
|
2638
|
+
/** OAuth 2.0 token for the current user. */
|
|
2639
|
+
oauth_token?: string;
|
|
2640
|
+
/** Returns response with indentations and line breaks. */
|
|
2641
|
+
prettyPrint?: boolean;
|
|
2642
|
+
/** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
|
|
2643
|
+
projection?: string;
|
|
2644
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2645
|
+
quotaUser?: string;
|
|
2646
|
+
/**
|
|
2647
|
+
* Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true. Calls that provide a
|
|
2648
|
+
* rewriteToken can omit all other request fields, but if included those fields must match the values provided in the first rewrite request.
|
|
2649
|
+
*/
|
|
2650
|
+
rewriteToken?: string;
|
|
2651
|
+
/** Name of the bucket in which to find the source object. */
|
|
2652
|
+
sourceBucket: string;
|
|
2653
|
+
/** If present, selects a specific revision of the source object (as opposed to the latest version, the default). */
|
|
2654
|
+
sourceGeneration?: string;
|
|
2655
|
+
/** Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2656
|
+
sourceObject: string;
|
|
2657
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2658
|
+
uploadType?: string;
|
|
2659
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2660
|
+
userIp?: string;
|
|
2661
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2662
|
+
userProject?: string;
|
|
2663
|
+
/** Request body */
|
|
2664
|
+
// tslint:disable-next-line:ban-types
|
|
2665
|
+
resource: Object;
|
|
2666
|
+
}): Request<RewriteResponse>;
|
|
2667
|
+
rewrite(request: {
|
|
2668
|
+
/** Data format for the response. */
|
|
2669
|
+
alt?: string;
|
|
2670
|
+
/** Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. */
|
|
2671
|
+
destinationBucket: string;
|
|
2672
|
+
/**
|
|
2673
|
+
* Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the
|
|
2674
|
+
* object metadata's kms_key_name value, if any.
|
|
2675
|
+
*/
|
|
2676
|
+
destinationKmsKeyName?: string;
|
|
2677
|
+
/**
|
|
2678
|
+
* Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode
|
|
2679
|
+
* object names to be path safe, see Encoding URI Path Parts.
|
|
2680
|
+
*/
|
|
2681
|
+
destinationObject: string;
|
|
2682
|
+
/** Apply a predefined set of access controls to the destination object. */
|
|
2683
|
+
destinationPredefinedAcl?: string;
|
|
2684
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2685
|
+
fields?: string;
|
|
2686
|
+
/**
|
|
2687
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2688
|
+
* of the object.
|
|
2689
|
+
*/
|
|
2690
|
+
ifGenerationMatch?: string;
|
|
2691
|
+
/**
|
|
2692
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2693
|
+
* the operation succeed only if there is a live version of the object.
|
|
2694
|
+
*/
|
|
2695
|
+
ifGenerationNotMatch?: string;
|
|
2696
|
+
/** Makes the operation conditional on whether the destination object's current metageneration matches the given value. */
|
|
2697
|
+
ifMetagenerationMatch?: string;
|
|
2698
|
+
/** Makes the operation conditional on whether the destination object's current metageneration does not match the given value. */
|
|
2699
|
+
ifMetagenerationNotMatch?: string;
|
|
2700
|
+
/** Makes the operation conditional on whether the source object's current generation matches the given value. */
|
|
2701
|
+
ifSourceGenerationMatch?: string;
|
|
2702
|
+
/** Makes the operation conditional on whether the source object's current generation does not match the given value. */
|
|
2703
|
+
ifSourceGenerationNotMatch?: string;
|
|
2704
|
+
/** Makes the operation conditional on whether the source object's current metageneration matches the given value. */
|
|
2705
|
+
ifSourceMetagenerationMatch?: string;
|
|
2706
|
+
/** Makes the operation conditional on whether the source object's current metageneration does not match the given value. */
|
|
2707
|
+
ifSourceMetagenerationNotMatch?: string;
|
|
2708
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2709
|
+
key?: string;
|
|
2710
|
+
/**
|
|
2711
|
+
* The maximum number of bytes that will be rewritten per rewrite request. Most callers shouldn't need to specify this parameter - it is primarily in place to support testing. If
|
|
2712
|
+
* specified the value must be an integral multiple of 1 MiB (1048576). Also, this only applies to requests where the source and destination span locations and/or storage classes.
|
|
2713
|
+
* Finally, this value must not change across rewrite calls else you'll get an error that the rewriteToken is invalid.
|
|
2714
|
+
*/
|
|
2715
|
+
maxBytesRewrittenPerCall?: string;
|
|
2716
|
+
/** OAuth 2.0 token for the current user. */
|
|
2717
|
+
oauth_token?: string;
|
|
2718
|
+
/** Returns response with indentations and line breaks. */
|
|
2719
|
+
prettyPrint?: boolean;
|
|
2720
|
+
/** Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. */
|
|
2721
|
+
projection?: string;
|
|
2722
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2723
|
+
quotaUser?: string;
|
|
2724
|
+
/**
|
|
2725
|
+
* Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true. Calls that provide a
|
|
2726
|
+
* rewriteToken can omit all other request fields, but if included those fields must match the values provided in the first rewrite request.
|
|
2727
|
+
*/
|
|
2728
|
+
rewriteToken?: string;
|
|
2729
|
+
/** Name of the bucket in which to find the source object. */
|
|
2730
|
+
sourceBucket: string;
|
|
2731
|
+
/** If present, selects a specific revision of the source object (as opposed to the latest version, the default). */
|
|
2732
|
+
sourceGeneration?: string;
|
|
2733
|
+
/** Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2734
|
+
sourceObject: string;
|
|
2735
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2736
|
+
uploadType?: string;
|
|
2737
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2738
|
+
userIp?: string;
|
|
2739
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2740
|
+
userProject?: string;
|
|
2741
|
+
},
|
|
2742
|
+
// tslint:disable-next-line:ban-types
|
|
2743
|
+
body: Object): Request<RewriteResponse>;
|
|
2744
|
+
/** Updates an IAM policy for the specified object. */
|
|
2745
|
+
setIamPolicy(request: {
|
|
2746
|
+
/** Data format for the response. */
|
|
2747
|
+
alt?: string;
|
|
2748
|
+
/** Name of the bucket in which the object resides. */
|
|
2749
|
+
bucket: string;
|
|
2750
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2751
|
+
fields?: string;
|
|
2752
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
2753
|
+
generation?: string;
|
|
2754
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2755
|
+
key?: string;
|
|
2756
|
+
/** OAuth 2.0 token for the current user. */
|
|
2757
|
+
oauth_token?: string;
|
|
2758
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2759
|
+
object: string;
|
|
2760
|
+
/** Returns response with indentations and line breaks. */
|
|
2761
|
+
prettyPrint?: boolean;
|
|
2762
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2763
|
+
quotaUser?: string;
|
|
2764
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2765
|
+
uploadType?: string;
|
|
2766
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2767
|
+
userIp?: string;
|
|
2768
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2769
|
+
userProject?: string;
|
|
2770
|
+
/** Request body */
|
|
2771
|
+
resource: Policy;
|
|
2772
|
+
}): Request<Policy>;
|
|
2773
|
+
setIamPolicy(request: {
|
|
2774
|
+
/** Data format for the response. */
|
|
2775
|
+
alt?: string;
|
|
2776
|
+
/** Name of the bucket in which the object resides. */
|
|
2777
|
+
bucket: string;
|
|
2778
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2779
|
+
fields?: string;
|
|
2780
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
2781
|
+
generation?: string;
|
|
2782
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2783
|
+
key?: string;
|
|
2784
|
+
/** OAuth 2.0 token for the current user. */
|
|
2785
|
+
oauth_token?: string;
|
|
2786
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2787
|
+
object: string;
|
|
2788
|
+
/** Returns response with indentations and line breaks. */
|
|
2789
|
+
prettyPrint?: boolean;
|
|
2790
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2791
|
+
quotaUser?: string;
|
|
2792
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2793
|
+
uploadType?: string;
|
|
2794
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2795
|
+
userIp?: string;
|
|
2796
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2797
|
+
userProject?: string;
|
|
2798
|
+
},
|
|
2799
|
+
body: Policy): Request<Policy>;
|
|
2800
|
+
/** Tests a set of permissions on the given object to see which, if any, are held by the caller. */
|
|
2801
|
+
testIamPermissions(request?: {
|
|
2802
|
+
/** Data format for the response. */
|
|
2803
|
+
alt?: string;
|
|
2804
|
+
/** Name of the bucket in which the object resides. */
|
|
2805
|
+
bucket: string;
|
|
2806
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2807
|
+
fields?: string;
|
|
2808
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
2809
|
+
generation?: string;
|
|
2810
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2811
|
+
key?: string;
|
|
2812
|
+
/** OAuth 2.0 token for the current user. */
|
|
2813
|
+
oauth_token?: string;
|
|
2814
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2815
|
+
object: string;
|
|
2816
|
+
/** Permissions to test. */
|
|
2817
|
+
permissions: string | string[];
|
|
2818
|
+
/** Returns response with indentations and line breaks. */
|
|
2819
|
+
prettyPrint?: boolean;
|
|
2820
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2821
|
+
quotaUser?: string;
|
|
2822
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2823
|
+
uploadType?: string;
|
|
2824
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2825
|
+
userIp?: string;
|
|
2826
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2827
|
+
userProject?: string;
|
|
2828
|
+
}): Request<TestIamPermissionsResponse>;
|
|
2829
|
+
/** Updates an object's metadata. */
|
|
2830
|
+
update(request: {
|
|
2831
|
+
/** Data format for the response. */
|
|
2832
|
+
alt?: string;
|
|
2833
|
+
/** Name of the bucket in which the object resides. */
|
|
2834
|
+
bucket: string;
|
|
2835
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2836
|
+
fields?: string;
|
|
2837
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
2838
|
+
generation?: string;
|
|
2839
|
+
/**
|
|
2840
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2841
|
+
* of the object.
|
|
2842
|
+
*/
|
|
2843
|
+
ifGenerationMatch?: string;
|
|
2844
|
+
/**
|
|
2845
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2846
|
+
* the operation succeed only if there is a live version of the object.
|
|
2847
|
+
*/
|
|
2848
|
+
ifGenerationNotMatch?: string;
|
|
2849
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2850
|
+
ifMetagenerationMatch?: string;
|
|
2851
|
+
/** Makes the operation conditional on whether the object's current metageneration does not match the given value. */
|
|
2852
|
+
ifMetagenerationNotMatch?: string;
|
|
2853
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2854
|
+
key?: string;
|
|
2855
|
+
/** OAuth 2.0 token for the current user. */
|
|
2856
|
+
oauth_token?: string;
|
|
2857
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2858
|
+
object: string;
|
|
2859
|
+
/** Apply a predefined set of access controls to this object. */
|
|
2860
|
+
predefinedAcl?: string;
|
|
2861
|
+
/** Returns response with indentations and line breaks. */
|
|
2862
|
+
prettyPrint?: boolean;
|
|
2863
|
+
/** Set of properties to return. Defaults to full. */
|
|
2864
|
+
projection?: string;
|
|
2865
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2866
|
+
quotaUser?: string;
|
|
2867
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2868
|
+
uploadType?: string;
|
|
2869
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2870
|
+
userIp?: string;
|
|
2871
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2872
|
+
userProject?: string;
|
|
2873
|
+
/** Request body */
|
|
2874
|
+
// tslint:disable-next-line:ban-types
|
|
2875
|
+
resource: Object;
|
|
2876
|
+
}
|
|
2877
|
+
// tslint:disable-next-line:ban-types
|
|
2878
|
+
): Request<Object>;
|
|
2879
|
+
update(request: {
|
|
2880
|
+
/** Data format for the response. */
|
|
2881
|
+
alt?: string;
|
|
2882
|
+
/** Name of the bucket in which the object resides. */
|
|
2883
|
+
bucket: string;
|
|
2884
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2885
|
+
fields?: string;
|
|
2886
|
+
/** If present, selects a specific revision of this object (as opposed to the latest version, the default). */
|
|
2887
|
+
generation?: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions
|
|
2890
|
+
* of the object.
|
|
2891
|
+
*/
|
|
2892
|
+
ifGenerationMatch?: string;
|
|
2893
|
+
/**
|
|
2894
|
+
* Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes
|
|
2895
|
+
* the operation succeed only if there is a live version of the object.
|
|
2896
|
+
*/
|
|
2897
|
+
ifGenerationNotMatch?: string;
|
|
2898
|
+
/** Makes the operation conditional on whether the object's current metageneration matches the given value. */
|
|
2899
|
+
ifMetagenerationMatch?: string;
|
|
2900
|
+
/** Makes the operation conditional on whether the object's current metageneration does not match the given value. */
|
|
2901
|
+
ifMetagenerationNotMatch?: string;
|
|
2902
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2903
|
+
key?: string;
|
|
2904
|
+
/** OAuth 2.0 token for the current user. */
|
|
2905
|
+
oauth_token?: string;
|
|
2906
|
+
/** Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts. */
|
|
2907
|
+
object: string;
|
|
2908
|
+
/** Apply a predefined set of access controls to this object. */
|
|
2909
|
+
predefinedAcl?: string;
|
|
2910
|
+
/** Returns response with indentations and line breaks. */
|
|
2911
|
+
prettyPrint?: boolean;
|
|
2912
|
+
/** Set of properties to return. Defaults to full. */
|
|
2913
|
+
projection?: string;
|
|
2914
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2915
|
+
quotaUser?: string;
|
|
2916
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2917
|
+
uploadType?: string;
|
|
2918
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2919
|
+
userIp?: string;
|
|
2920
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2921
|
+
userProject?: string;
|
|
2922
|
+
},
|
|
2923
|
+
// tslint:disable-next-line:ban-types
|
|
2924
|
+
body: Object
|
|
2925
|
+
// tslint:disable-next-line:ban-types
|
|
2926
|
+
): Request<Object>;
|
|
2927
|
+
/** Watch for changes on all objects in a bucket. */
|
|
2928
|
+
watchAll(request: {
|
|
2929
|
+
/** Data format for the response. */
|
|
2930
|
+
alt?: string;
|
|
2931
|
+
/** Name of the bucket in which to look for objects. */
|
|
2932
|
+
bucket: string;
|
|
2933
|
+
/**
|
|
2934
|
+
* Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the
|
|
2935
|
+
* prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
|
|
2936
|
+
*/
|
|
2937
|
+
delimiter?: string;
|
|
2938
|
+
/**
|
|
2939
|
+
* Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and
|
|
2940
|
+
* endOffset (exclusive).
|
|
2941
|
+
*/
|
|
2942
|
+
endOffset?: string;
|
|
2943
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2944
|
+
fields?: string;
|
|
2945
|
+
/** If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes. */
|
|
2946
|
+
includeTrailingDelimiter?: boolean;
|
|
2947
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2948
|
+
key?: string;
|
|
2949
|
+
/**
|
|
2950
|
+
* Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service
|
|
2951
|
+
* will use this parameter or 1,000 items, whichever is smaller.
|
|
2952
|
+
*/
|
|
2953
|
+
maxResults?: number;
|
|
2954
|
+
/** OAuth 2.0 token for the current user. */
|
|
2955
|
+
oauth_token?: string;
|
|
2956
|
+
/** A previously-returned page token representing part of the larger set of results to view. */
|
|
2957
|
+
pageToken?: string;
|
|
2958
|
+
/** Filter results to objects whose names begin with this prefix. */
|
|
2959
|
+
prefix?: string;
|
|
2960
|
+
/** Returns response with indentations and line breaks. */
|
|
2961
|
+
prettyPrint?: boolean;
|
|
2962
|
+
/** Set of properties to return. Defaults to noAcl. */
|
|
2963
|
+
projection?: string;
|
|
2964
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
2965
|
+
quotaUser?: string;
|
|
2966
|
+
/**
|
|
2967
|
+
* Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset
|
|
2968
|
+
* (inclusive) and endOffset (exclusive).
|
|
2969
|
+
*/
|
|
2970
|
+
startOffset?: string;
|
|
2971
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
2972
|
+
uploadType?: string;
|
|
2973
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
2974
|
+
userIp?: string;
|
|
2975
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
2976
|
+
userProject?: string;
|
|
2977
|
+
/** If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning. */
|
|
2978
|
+
versions?: boolean;
|
|
2979
|
+
/** Request body */
|
|
2980
|
+
resource: Channel;
|
|
2981
|
+
}): Request<Channel>;
|
|
2982
|
+
watchAll(request: {
|
|
2983
|
+
/** Data format for the response. */
|
|
2984
|
+
alt?: string;
|
|
2985
|
+
/** Name of the bucket in which to look for objects. */
|
|
2986
|
+
bucket: string;
|
|
2987
|
+
/**
|
|
2988
|
+
* Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the
|
|
2989
|
+
* prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
|
|
2990
|
+
*/
|
|
2991
|
+
delimiter?: string;
|
|
2992
|
+
/**
|
|
2993
|
+
* Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and
|
|
2994
|
+
* endOffset (exclusive).
|
|
2995
|
+
*/
|
|
2996
|
+
endOffset?: string;
|
|
2997
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2998
|
+
fields?: string;
|
|
2999
|
+
/** If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes. */
|
|
3000
|
+
includeTrailingDelimiter?: boolean;
|
|
3001
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3002
|
+
key?: string;
|
|
3003
|
+
/**
|
|
3004
|
+
* Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service
|
|
3005
|
+
* will use this parameter or 1,000 items, whichever is smaller.
|
|
3006
|
+
*/
|
|
3007
|
+
maxResults?: number;
|
|
3008
|
+
/** OAuth 2.0 token for the current user. */
|
|
3009
|
+
oauth_token?: string;
|
|
3010
|
+
/** A previously-returned page token representing part of the larger set of results to view. */
|
|
3011
|
+
pageToken?: string;
|
|
3012
|
+
/** Filter results to objects whose names begin with this prefix. */
|
|
3013
|
+
prefix?: string;
|
|
3014
|
+
/** Returns response with indentations and line breaks. */
|
|
3015
|
+
prettyPrint?: boolean;
|
|
3016
|
+
/** Set of properties to return. Defaults to noAcl. */
|
|
3017
|
+
projection?: string;
|
|
3018
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
3019
|
+
quotaUser?: string;
|
|
3020
|
+
/**
|
|
3021
|
+
* Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset
|
|
3022
|
+
* (inclusive) and endOffset (exclusive).
|
|
3023
|
+
*/
|
|
3024
|
+
startOffset?: string;
|
|
3025
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
3026
|
+
uploadType?: string;
|
|
3027
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
3028
|
+
userIp?: string;
|
|
3029
|
+
/** The project to be billed for this request. Required for Requester Pays buckets. */
|
|
3030
|
+
userProject?: string;
|
|
3031
|
+
/** If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning. */
|
|
3032
|
+
versions?: boolean;
|
|
3033
|
+
},
|
|
3034
|
+
body: Channel): Request<Channel>;
|
|
3035
|
+
}
|
|
3036
|
+
interface HmacKeysResource {
|
|
3037
|
+
/** Creates a new HMAC key for the specified service account. */
|
|
3038
|
+
create(request?: {
|
|
3039
|
+
/** Data format for the response. */
|
|
3040
|
+
alt?: string;
|
|
3041
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3042
|
+
fields?: string;
|
|
3043
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3044
|
+
key?: string;
|
|
3045
|
+
/** OAuth 2.0 token for the current user. */
|
|
3046
|
+
oauth_token?: string;
|
|
3047
|
+
/** Returns response with indentations and line breaks. */
|
|
3048
|
+
prettyPrint?: boolean;
|
|
3049
|
+
/** Project ID owning the service account. */
|
|
3050
|
+
projectId: string;
|
|
3051
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
3052
|
+
quotaUser?: string;
|
|
3053
|
+
/** Email address of the service account. */
|
|
3054
|
+
serviceAccountEmail: string;
|
|
3055
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
3056
|
+
uploadType?: string;
|
|
3057
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
3058
|
+
userIp?: string;
|
|
3059
|
+
/** The project to be billed for this request. */
|
|
3060
|
+
userProject?: string;
|
|
3061
|
+
}): Request<HmacKey>;
|
|
3062
|
+
/** Deletes an HMAC key. */
|
|
3063
|
+
delete(request?: {
|
|
3064
|
+
/** Name of the HMAC key to be deleted. */
|
|
3065
|
+
accessId: string;
|
|
3066
|
+
/** Data format for the response. */
|
|
3067
|
+
alt?: string;
|
|
3068
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3069
|
+
fields?: string;
|
|
3070
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3071
|
+
key?: string;
|
|
3072
|
+
/** OAuth 2.0 token for the current user. */
|
|
3073
|
+
oauth_token?: string;
|
|
3074
|
+
/** Returns response with indentations and line breaks. */
|
|
3075
|
+
prettyPrint?: boolean;
|
|
3076
|
+
/** Project ID owning the requested key */
|
|
3077
|
+
projectId: string;
|
|
3078
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
3079
|
+
quotaUser?: string;
|
|
3080
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
3081
|
+
uploadType?: string;
|
|
3082
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
3083
|
+
userIp?: string;
|
|
3084
|
+
/** The project to be billed for this request. */
|
|
3085
|
+
userProject?: string;
|
|
3086
|
+
}): Request<void>;
|
|
3087
|
+
/** Retrieves an HMAC key's metadata */
|
|
3088
|
+
get(request?: {
|
|
3089
|
+
/** Name of the HMAC key. */
|
|
3090
|
+
accessId: string;
|
|
3091
|
+
/** Data format for the response. */
|
|
3092
|
+
alt?: string;
|
|
3093
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3094
|
+
fields?: string;
|
|
3095
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3096
|
+
key?: string;
|
|
3097
|
+
/** OAuth 2.0 token for the current user. */
|
|
3098
|
+
oauth_token?: string;
|
|
3099
|
+
/** Returns response with indentations and line breaks. */
|
|
3100
|
+
prettyPrint?: boolean;
|
|
3101
|
+
/** Project ID owning the service account of the requested key. */
|
|
3102
|
+
projectId: string;
|
|
3103
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
3104
|
+
quotaUser?: string;
|
|
3105
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
3106
|
+
uploadType?: string;
|
|
3107
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
3108
|
+
userIp?: string;
|
|
3109
|
+
/** The project to be billed for this request. */
|
|
3110
|
+
userProject?: string;
|
|
3111
|
+
}): Request<HmacKeyMetadata>;
|
|
3112
|
+
/** Retrieves a list of HMAC keys matching the criteria. */
|
|
3113
|
+
list(request?: {
|
|
3114
|
+
/** Data format for the response. */
|
|
3115
|
+
alt?: string;
|
|
3116
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3117
|
+
fields?: string;
|
|
3118
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3119
|
+
key?: string;
|
|
3120
|
+
/**
|
|
3121
|
+
* Maximum number of items to return in a single page of responses. The service uses this parameter or 250 items, whichever is smaller. The max number of items per page will also
|
|
3122
|
+
* be limited by the number of distinct service accounts in the response. If the number of service accounts in a single response is too high, the page will truncated and a next
|
|
3123
|
+
* page token will be returned.
|
|
3124
|
+
*/
|
|
3125
|
+
maxResults?: number;
|
|
3126
|
+
/** OAuth 2.0 token for the current user. */
|
|
3127
|
+
oauth_token?: string;
|
|
3128
|
+
/** A previously-returned page token representing part of the larger set of results to view. */
|
|
3129
|
+
pageToken?: string;
|
|
3130
|
+
/** Returns response with indentations and line breaks. */
|
|
3131
|
+
prettyPrint?: boolean;
|
|
3132
|
+
/** Name of the project in which to look for HMAC keys. */
|
|
3133
|
+
projectId: string;
|
|
3134
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
3135
|
+
quotaUser?: string;
|
|
3136
|
+
/** If present, only keys for the given service account are returned. */
|
|
3137
|
+
serviceAccountEmail?: string;
|
|
3138
|
+
/** Whether or not to show keys in the DELETED state. */
|
|
3139
|
+
showDeletedKeys?: boolean;
|
|
3140
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
3141
|
+
uploadType?: string;
|
|
3142
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
3143
|
+
userIp?: string;
|
|
3144
|
+
/** The project to be billed for this request. */
|
|
3145
|
+
userProject?: string;
|
|
3146
|
+
}): Request<HmacKeysMetadata>;
|
|
3147
|
+
/** Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states. */
|
|
3148
|
+
update(request: {
|
|
3149
|
+
/** Name of the HMAC key being updated. */
|
|
3150
|
+
accessId: string;
|
|
3151
|
+
/** Data format for the response. */
|
|
3152
|
+
alt?: string;
|
|
3153
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3154
|
+
fields?: string;
|
|
3155
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3156
|
+
key?: string;
|
|
3157
|
+
/** OAuth 2.0 token for the current user. */
|
|
3158
|
+
oauth_token?: string;
|
|
3159
|
+
/** Returns response with indentations and line breaks. */
|
|
3160
|
+
prettyPrint?: boolean;
|
|
3161
|
+
/** Project ID owning the service account of the updated key. */
|
|
3162
|
+
projectId: string;
|
|
3163
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
3164
|
+
quotaUser?: string;
|
|
3165
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
3166
|
+
uploadType?: string;
|
|
3167
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
3168
|
+
userIp?: string;
|
|
3169
|
+
/** The project to be billed for this request. */
|
|
3170
|
+
userProject?: string;
|
|
3171
|
+
/** Request body */
|
|
3172
|
+
resource: HmacKeyMetadata;
|
|
3173
|
+
}): Request<HmacKeyMetadata>;
|
|
3174
|
+
update(request: {
|
|
3175
|
+
/** Name of the HMAC key being updated. */
|
|
3176
|
+
accessId: string;
|
|
3177
|
+
/** Data format for the response. */
|
|
3178
|
+
alt?: string;
|
|
3179
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3180
|
+
fields?: string;
|
|
3181
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3182
|
+
key?: string;
|
|
3183
|
+
/** OAuth 2.0 token for the current user. */
|
|
3184
|
+
oauth_token?: string;
|
|
3185
|
+
/** Returns response with indentations and line breaks. */
|
|
3186
|
+
prettyPrint?: boolean;
|
|
3187
|
+
/** Project ID owning the service account of the updated key. */
|
|
3188
|
+
projectId: string;
|
|
3189
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
3190
|
+
quotaUser?: string;
|
|
3191
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
3192
|
+
uploadType?: string;
|
|
3193
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
3194
|
+
userIp?: string;
|
|
3195
|
+
/** The project to be billed for this request. */
|
|
3196
|
+
userProject?: string;
|
|
3197
|
+
},
|
|
3198
|
+
body: HmacKeyMetadata): Request<HmacKeyMetadata>;
|
|
3199
|
+
}
|
|
3200
|
+
interface ServiceAccountResource {
|
|
3201
|
+
/** Get the email address of this project's Google Cloud Storage service account. */
|
|
3202
|
+
get(request?: {
|
|
3203
|
+
/** Data format for the response. */
|
|
3204
|
+
alt?: string;
|
|
3205
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3206
|
+
fields?: string;
|
|
3207
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3208
|
+
key?: string;
|
|
3209
|
+
/** OAuth 2.0 token for the current user. */
|
|
3210
|
+
oauth_token?: string;
|
|
3211
|
+
/** Returns response with indentations and line breaks. */
|
|
3212
|
+
prettyPrint?: boolean;
|
|
3213
|
+
/** Project ID */
|
|
3214
|
+
projectId: string;
|
|
3215
|
+
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
3216
|
+
quotaUser?: string;
|
|
3217
|
+
/** Upload protocol for media (e.g. "media", "multipart", "resumable"). */
|
|
3218
|
+
uploadType?: string;
|
|
3219
|
+
/** Deprecated. Please use quotaUser instead. */
|
|
3220
|
+
userIp?: string;
|
|
3221
|
+
/** The project to be billed for this request. */
|
|
3222
|
+
userProject?: string;
|
|
3223
|
+
}): Request<ServiceAccount>;
|
|
3224
|
+
}
|
|
3225
|
+
interface ProjectsResource {
|
|
3226
|
+
hmacKeys: HmacKeysResource;
|
|
3227
|
+
serviceAccount: ServiceAccountResource;
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
const bucketAccessControls: BucketAccessControlsResource;
|
|
3231
|
+
|
|
3232
|
+
const buckets: BucketsResource;
|
|
3233
|
+
|
|
3234
|
+
const channels: ChannelsResource;
|
|
3235
|
+
|
|
3236
|
+
const defaultObjectAccessControls: DefaultObjectAccessControlsResource;
|
|
3237
|
+
|
|
3238
|
+
const notifications: NotificationsResource;
|
|
3239
|
+
|
|
3240
|
+
const objectAccessControls: ObjectAccessControlsResource;
|
|
3241
|
+
|
|
3242
|
+
const objects: ObjectsResource;
|
|
3243
|
+
|
|
3244
|
+
const projects: ProjectsResource;
|
|
3245
|
+
}
|
|
3246
|
+
}
|