@googleapis/storage 6.0.0 → 6.2.0
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/CHANGELOG.md +14 -0
- package/build/v1.d.ts +536 -4
- package/build/v1.js +456 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +2499 -900
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.2.0](https://github.com/googleapis/google-api-nodejs-client/compare/storage-v6.1.0...storage-v6.2.0) (2023-11-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **storage:** update the API ([7bdec60](https://github.com/googleapis/google-api-nodejs-client/commit/7bdec601a5edf20d3e572e5dab97c2a7a6b1792f))
|
|
9
|
+
|
|
10
|
+
## [6.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/storage-v6.0.0...storage-v6.1.0) (2023-10-19)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **storage:** update the API ([431836c](https://github.com/googleapis/google-api-nodejs-client/commit/431836c847762181732c9b614e09ccfdd1af5fbe))
|
|
16
|
+
|
|
3
17
|
## [6.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/storage-v5.1.2...storage-v6.0.0) (2023-10-11)
|
|
4
18
|
|
|
5
19
|
|
package/build/v1.d.ts
CHANGED
|
@@ -56,10 +56,12 @@ export declare namespace storage_v1 {
|
|
|
56
56
|
*/
|
|
57
57
|
export class Storage {
|
|
58
58
|
context: APIRequestContext;
|
|
59
|
+
anywhereCache: Resource$Anywherecache;
|
|
59
60
|
bucketAccessControls: Resource$Bucketaccesscontrols;
|
|
60
61
|
buckets: Resource$Buckets;
|
|
61
62
|
channels: Resource$Channels;
|
|
62
63
|
defaultObjectAccessControls: Resource$Defaultobjectaccesscontrols;
|
|
64
|
+
managedFolders: Resource$Managedfolders;
|
|
63
65
|
notifications: Resource$Notifications;
|
|
64
66
|
objectAccessControls: Resource$Objectaccesscontrols;
|
|
65
67
|
objects: Resource$Objects;
|
|
@@ -67,6 +69,72 @@ export declare namespace storage_v1 {
|
|
|
67
69
|
projects: Resource$Projects;
|
|
68
70
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
69
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* An Anywhere Cache instance.
|
|
74
|
+
*/
|
|
75
|
+
export interface Schema$AnywhereCache {
|
|
76
|
+
/**
|
|
77
|
+
* The cache-level entry admission policy.
|
|
78
|
+
*/
|
|
79
|
+
admissionPolicy?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* The ID of the Anywhere cache instance.
|
|
82
|
+
*/
|
|
83
|
+
anywhereCacheId?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the bucket containing this cache instance.
|
|
86
|
+
*/
|
|
87
|
+
bucket?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* The creation time of the cache instance in RFC 3339 format.
|
|
90
|
+
*/
|
|
91
|
+
createTime?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* The ID of the resource, including the project number, bucket name and anywhere cache ID.
|
|
94
|
+
*/
|
|
95
|
+
id?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.
|
|
98
|
+
*/
|
|
99
|
+
kind?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* True if the cache instance has an active Update long-running operation.
|
|
102
|
+
*/
|
|
103
|
+
pendingUpdate?: boolean | null;
|
|
104
|
+
/**
|
|
105
|
+
* The link to this cache instance.
|
|
106
|
+
*/
|
|
107
|
+
selfLink?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* The current state of the cache instance.
|
|
110
|
+
*/
|
|
111
|
+
state?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* The TTL of all cache entries in whole seconds. e.g., "7200s".
|
|
114
|
+
*/
|
|
115
|
+
ttl?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* The modification time of the cache instance metadata in RFC 3339 format.
|
|
118
|
+
*/
|
|
119
|
+
updateTime?: string | null;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* A list of Anywhere Caches.
|
|
123
|
+
*/
|
|
124
|
+
export interface Schema$AnywhereCaches {
|
|
125
|
+
/**
|
|
126
|
+
* The list of items.
|
|
127
|
+
*/
|
|
128
|
+
items?: Schema$AnywhereCache[];
|
|
129
|
+
/**
|
|
130
|
+
* The kind of item this is. For lists of Anywhere Caches, this is always storage#anywhereCaches.
|
|
131
|
+
*/
|
|
132
|
+
kind?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
|
|
135
|
+
*/
|
|
136
|
+
nextPageToken?: string | null;
|
|
137
|
+
}
|
|
70
138
|
/**
|
|
71
139
|
* A bucket.
|
|
72
140
|
*/
|
|
@@ -618,6 +686,60 @@ export declare namespace storage_v1 {
|
|
|
618
686
|
*/
|
|
619
687
|
nextPageToken?: string | null;
|
|
620
688
|
}
|
|
689
|
+
/**
|
|
690
|
+
* A managed folder.
|
|
691
|
+
*/
|
|
692
|
+
export interface Schema$ManagedFolder {
|
|
693
|
+
/**
|
|
694
|
+
* The name of the bucket containing this managed folder.
|
|
695
|
+
*/
|
|
696
|
+
bucket?: string | null;
|
|
697
|
+
/**
|
|
698
|
+
* The creation time of the managed folder in RFC 3339 format.
|
|
699
|
+
*/
|
|
700
|
+
createTime?: string | null;
|
|
701
|
+
/**
|
|
702
|
+
* The ID of the managed folder, including the bucket name and managed folder name.
|
|
703
|
+
*/
|
|
704
|
+
id?: string | null;
|
|
705
|
+
/**
|
|
706
|
+
* The kind of item this is. For managed folders, this is always storage#managedFolder.
|
|
707
|
+
*/
|
|
708
|
+
kind?: string | null;
|
|
709
|
+
/**
|
|
710
|
+
* The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.
|
|
711
|
+
*/
|
|
712
|
+
metageneration?: string | null;
|
|
713
|
+
/**
|
|
714
|
+
* The name of the managed folder. Required if not specified by URL parameter.
|
|
715
|
+
*/
|
|
716
|
+
name?: string | null;
|
|
717
|
+
/**
|
|
718
|
+
* The link to this managed folder.
|
|
719
|
+
*/
|
|
720
|
+
selfLink?: string | null;
|
|
721
|
+
/**
|
|
722
|
+
* The last update time of the managed folder metadata in RFC 3339 format.
|
|
723
|
+
*/
|
|
724
|
+
updateTime?: string | null;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* A list of managed folders.
|
|
728
|
+
*/
|
|
729
|
+
export interface Schema$ManagedFolders {
|
|
730
|
+
/**
|
|
731
|
+
* The list of items.
|
|
732
|
+
*/
|
|
733
|
+
items?: Schema$ManagedFolder[];
|
|
734
|
+
/**
|
|
735
|
+
* The kind of item this is. For lists of managed folders, this is always storage#managedFolders.
|
|
736
|
+
*/
|
|
737
|
+
kind?: string | null;
|
|
738
|
+
/**
|
|
739
|
+
* The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
|
|
740
|
+
*/
|
|
741
|
+
nextPageToken?: string | null;
|
|
742
|
+
}
|
|
621
743
|
/**
|
|
622
744
|
* A subscription to receive Google PubSub notifications.
|
|
623
745
|
*/
|
|
@@ -936,7 +1058,7 @@ export declare namespace storage_v1 {
|
|
|
936
1058
|
prefixes?: string[] | null;
|
|
937
1059
|
}
|
|
938
1060
|
/**
|
|
939
|
-
* A bucket/object IAM policy.
|
|
1061
|
+
* A bucket/object/managedFolder IAM policy.
|
|
940
1062
|
*/
|
|
941
1063
|
export interface Schema$Policy {
|
|
942
1064
|
/**
|
|
@@ -956,7 +1078,7 @@ export declare namespace storage_v1 {
|
|
|
956
1078
|
*/
|
|
957
1079
|
kind?: string | null;
|
|
958
1080
|
/**
|
|
959
|
-
* The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets,
|
|
1081
|
+
* The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder. A specific 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 denoted with #0. This field is ignored on input.
|
|
960
1082
|
*/
|
|
961
1083
|
resourceId?: string | null;
|
|
962
1084
|
/**
|
|
@@ -1007,7 +1129,7 @@ export declare namespace storage_v1 {
|
|
|
1007
1129
|
kind?: string | null;
|
|
1008
1130
|
}
|
|
1009
1131
|
/**
|
|
1010
|
-
* A storage.(buckets|objects).testIamPermissions response.
|
|
1132
|
+
* A storage.(buckets|objects|managedFolders).testIamPermissions response.
|
|
1011
1133
|
*/
|
|
1012
1134
|
export interface Schema$TestIamPermissionsResponse {
|
|
1013
1135
|
/**
|
|
@@ -1015,7 +1137,7 @@ export declare namespace storage_v1 {
|
|
|
1015
1137
|
*/
|
|
1016
1138
|
kind?: string | null;
|
|
1017
1139
|
/**
|
|
1018
|
-
* The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets or
|
|
1140
|
+
* The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets, objects, or managedFolders. The supported permissions are as follows:
|
|
1019
1141
|
* - storage.buckets.delete — Delete bucket.
|
|
1020
1142
|
* - storage.buckets.get — Read bucket metadata.
|
|
1021
1143
|
* - storage.buckets.getIamPolicy — Read bucket IAM policy.
|
|
@@ -1030,9 +1152,195 @@ export declare namespace storage_v1 {
|
|
|
1030
1152
|
* - storage.objects.list — List objects.
|
|
1031
1153
|
* - storage.objects.setIamPolicy — Update object IAM policy.
|
|
1032
1154
|
* - storage.objects.update — Update object metadata.
|
|
1155
|
+
* - storage.managedFolders.delete — Delete managed folder.
|
|
1156
|
+
* - storage.managedFolders.get — Read managed folder metadata.
|
|
1157
|
+
* - storage.managedFolders.getIamPolicy — Read managed folder IAM policy.
|
|
1158
|
+
* - storage.managedFolders.create — Create managed folder.
|
|
1159
|
+
* - storage.managedFolders.list — List managed folders.
|
|
1160
|
+
* - storage.managedFolders.setIamPolicy — Update managed folder IAM policy.
|
|
1033
1161
|
*/
|
|
1034
1162
|
permissions?: string[] | null;
|
|
1035
1163
|
}
|
|
1164
|
+
export class Resource$Anywherecache {
|
|
1165
|
+
context: APIRequestContext;
|
|
1166
|
+
constructor(context: APIRequestContext);
|
|
1167
|
+
/**
|
|
1168
|
+
* Disables an Anywhere Cache instance.
|
|
1169
|
+
*
|
|
1170
|
+
* @param params - Parameters for request
|
|
1171
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1172
|
+
* @param callback - Optional callback that handles the response.
|
|
1173
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1174
|
+
*/
|
|
1175
|
+
disable(params: Params$Resource$Anywherecache$Disable, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1176
|
+
disable(params?: Params$Resource$Anywherecache$Disable, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCache>;
|
|
1177
|
+
disable(params: Params$Resource$Anywherecache$Disable, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1178
|
+
disable(params: Params$Resource$Anywherecache$Disable, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1179
|
+
disable(params: Params$Resource$Anywherecache$Disable, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1180
|
+
disable(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1181
|
+
/**
|
|
1182
|
+
* Returns the metadata of an Anywhere Cache instance.
|
|
1183
|
+
*
|
|
1184
|
+
* @param params - Parameters for request
|
|
1185
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1186
|
+
* @param callback - Optional callback that handles the response.
|
|
1187
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1188
|
+
*/
|
|
1189
|
+
get(params: Params$Resource$Anywherecache$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1190
|
+
get(params?: Params$Resource$Anywherecache$Get, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCache>;
|
|
1191
|
+
get(params: Params$Resource$Anywherecache$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1192
|
+
get(params: Params$Resource$Anywherecache$Get, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1193
|
+
get(params: Params$Resource$Anywherecache$Get, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1194
|
+
get(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1195
|
+
/**
|
|
1196
|
+
* Creates an Anywhere Cache instance.
|
|
1197
|
+
*
|
|
1198
|
+
* @param params - Parameters for request
|
|
1199
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1200
|
+
* @param callback - Optional callback that handles the response.
|
|
1201
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1202
|
+
*/
|
|
1203
|
+
insert(params: Params$Resource$Anywherecache$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1204
|
+
insert(params?: Params$Resource$Anywherecache$Insert, options?: MethodOptions): GaxiosPromise<Schema$GoogleLongrunningOperation>;
|
|
1205
|
+
insert(params: Params$Resource$Anywherecache$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1206
|
+
insert(params: Params$Resource$Anywherecache$Insert, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1207
|
+
insert(params: Params$Resource$Anywherecache$Insert, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1208
|
+
insert(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1209
|
+
/**
|
|
1210
|
+
* Returns a list of Anywhere Cache instances of the bucket matching the criteria.
|
|
1211
|
+
*
|
|
1212
|
+
* @param params - Parameters for request
|
|
1213
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1214
|
+
* @param callback - Optional callback that handles the response.
|
|
1215
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1216
|
+
*/
|
|
1217
|
+
list(params: Params$Resource$Anywherecache$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1218
|
+
list(params?: Params$Resource$Anywherecache$List, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCaches>;
|
|
1219
|
+
list(params: Params$Resource$Anywherecache$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1220
|
+
list(params: Params$Resource$Anywherecache$List, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCaches>, callback: BodyResponseCallback<Schema$AnywhereCaches>): void;
|
|
1221
|
+
list(params: Params$Resource$Anywherecache$List, callback: BodyResponseCallback<Schema$AnywhereCaches>): void;
|
|
1222
|
+
list(callback: BodyResponseCallback<Schema$AnywhereCaches>): void;
|
|
1223
|
+
/**
|
|
1224
|
+
* Pauses an Anywhere Cache instance.
|
|
1225
|
+
*
|
|
1226
|
+
* @param params - Parameters for request
|
|
1227
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1228
|
+
* @param callback - Optional callback that handles the response.
|
|
1229
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1230
|
+
*/
|
|
1231
|
+
pause(params: Params$Resource$Anywherecache$Pause, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1232
|
+
pause(params?: Params$Resource$Anywherecache$Pause, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCache>;
|
|
1233
|
+
pause(params: Params$Resource$Anywherecache$Pause, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1234
|
+
pause(params: Params$Resource$Anywherecache$Pause, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1235
|
+
pause(params: Params$Resource$Anywherecache$Pause, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1236
|
+
pause(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1237
|
+
/**
|
|
1238
|
+
* Resumes a paused or disabled Anywhere Cache instance.
|
|
1239
|
+
*
|
|
1240
|
+
* @param params - Parameters for request
|
|
1241
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1242
|
+
* @param callback - Optional callback that handles the response.
|
|
1243
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1244
|
+
*/
|
|
1245
|
+
resume(params: Params$Resource$Anywherecache$Resume, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1246
|
+
resume(params?: Params$Resource$Anywherecache$Resume, options?: MethodOptions): GaxiosPromise<Schema$AnywhereCache>;
|
|
1247
|
+
resume(params: Params$Resource$Anywherecache$Resume, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1248
|
+
resume(params: Params$Resource$Anywherecache$Resume, options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1249
|
+
resume(params: Params$Resource$Anywherecache$Resume, callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1250
|
+
resume(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
|
|
1251
|
+
/**
|
|
1252
|
+
* Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
|
|
1253
|
+
*
|
|
1254
|
+
* @param params - Parameters for request
|
|
1255
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1256
|
+
* @param callback - Optional callback that handles the response.
|
|
1257
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1258
|
+
*/
|
|
1259
|
+
update(params: Params$Resource$Anywherecache$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1260
|
+
update(params?: Params$Resource$Anywherecache$Update, options?: MethodOptions): GaxiosPromise<Schema$GoogleLongrunningOperation>;
|
|
1261
|
+
update(params: Params$Resource$Anywherecache$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1262
|
+
update(params: Params$Resource$Anywherecache$Update, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1263
|
+
update(params: Params$Resource$Anywherecache$Update, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1264
|
+
update(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
1265
|
+
}
|
|
1266
|
+
export interface Params$Resource$Anywherecache$Disable extends StandardParameters {
|
|
1267
|
+
/**
|
|
1268
|
+
* The ID of requested Anywhere Cache instance.
|
|
1269
|
+
*/
|
|
1270
|
+
anywhereCacheId?: string;
|
|
1271
|
+
/**
|
|
1272
|
+
* Name of the partent bucket
|
|
1273
|
+
*/
|
|
1274
|
+
bucket?: string;
|
|
1275
|
+
}
|
|
1276
|
+
export interface Params$Resource$Anywherecache$Get extends StandardParameters {
|
|
1277
|
+
/**
|
|
1278
|
+
* The ID of requested Anywhere Cache instance.
|
|
1279
|
+
*/
|
|
1280
|
+
anywhereCacheId?: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* Name of the partent bucket
|
|
1283
|
+
*/
|
|
1284
|
+
bucket?: string;
|
|
1285
|
+
}
|
|
1286
|
+
export interface Params$Resource$Anywherecache$Insert extends StandardParameters {
|
|
1287
|
+
/**
|
|
1288
|
+
* Name of the partent bucket
|
|
1289
|
+
*/
|
|
1290
|
+
bucket?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* Request body metadata
|
|
1293
|
+
*/
|
|
1294
|
+
requestBody?: Schema$AnywhereCache;
|
|
1295
|
+
}
|
|
1296
|
+
export interface Params$Resource$Anywherecache$List extends StandardParameters {
|
|
1297
|
+
/**
|
|
1298
|
+
* Name of the partent bucket
|
|
1299
|
+
*/
|
|
1300
|
+
bucket?: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* Maximum number of items return in a single page of responses. Maximum 1000.
|
|
1303
|
+
*/
|
|
1304
|
+
pageSize?: number;
|
|
1305
|
+
/**
|
|
1306
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
1307
|
+
*/
|
|
1308
|
+
pageToken?: string;
|
|
1309
|
+
}
|
|
1310
|
+
export interface Params$Resource$Anywherecache$Pause extends StandardParameters {
|
|
1311
|
+
/**
|
|
1312
|
+
* The ID of requested Anywhere Cache instance.
|
|
1313
|
+
*/
|
|
1314
|
+
anywhereCacheId?: string;
|
|
1315
|
+
/**
|
|
1316
|
+
* Name of the partent bucket
|
|
1317
|
+
*/
|
|
1318
|
+
bucket?: string;
|
|
1319
|
+
}
|
|
1320
|
+
export interface Params$Resource$Anywherecache$Resume extends StandardParameters {
|
|
1321
|
+
/**
|
|
1322
|
+
* The ID of requested Anywhere Cache instance.
|
|
1323
|
+
*/
|
|
1324
|
+
anywhereCacheId?: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* Name of the partent bucket
|
|
1327
|
+
*/
|
|
1328
|
+
bucket?: string;
|
|
1329
|
+
}
|
|
1330
|
+
export interface Params$Resource$Anywherecache$Update extends StandardParameters {
|
|
1331
|
+
/**
|
|
1332
|
+
* The ID of requested Anywhere Cache instance.
|
|
1333
|
+
*/
|
|
1334
|
+
anywhereCacheId?: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* Name of the partent bucket
|
|
1337
|
+
*/
|
|
1338
|
+
bucket?: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* Request body metadata
|
|
1341
|
+
*/
|
|
1342
|
+
requestBody?: Schema$AnywhereCache;
|
|
1343
|
+
}
|
|
1036
1344
|
export class Resource$Bucketaccesscontrols {
|
|
1037
1345
|
context: APIRequestContext;
|
|
1038
1346
|
constructor(context: APIRequestContext);
|
|
@@ -1781,6 +2089,226 @@ export declare namespace storage_v1 {
|
|
|
1781
2089
|
*/
|
|
1782
2090
|
requestBody?: Schema$ObjectAccessControl;
|
|
1783
2091
|
}
|
|
2092
|
+
export class Resource$Managedfolders {
|
|
2093
|
+
context: APIRequestContext;
|
|
2094
|
+
constructor(context: APIRequestContext);
|
|
2095
|
+
/**
|
|
2096
|
+
* Permanently deletes a managed folder.
|
|
2097
|
+
*
|
|
2098
|
+
* @param params - Parameters for request
|
|
2099
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2100
|
+
* @param callback - Optional callback that handles the response.
|
|
2101
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2102
|
+
*/
|
|
2103
|
+
delete(params: Params$Resource$Managedfolders$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2104
|
+
delete(params?: Params$Resource$Managedfolders$Delete, options?: MethodOptions): GaxiosPromise<void>;
|
|
2105
|
+
delete(params: Params$Resource$Managedfolders$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2106
|
+
delete(params: Params$Resource$Managedfolders$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
|
2107
|
+
delete(params: Params$Resource$Managedfolders$Delete, callback: BodyResponseCallback<void>): void;
|
|
2108
|
+
delete(callback: BodyResponseCallback<void>): void;
|
|
2109
|
+
/**
|
|
2110
|
+
* Returns metadata of the specified managed folder.
|
|
2111
|
+
*
|
|
2112
|
+
* @param params - Parameters for request
|
|
2113
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2114
|
+
* @param callback - Optional callback that handles the response.
|
|
2115
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2116
|
+
*/
|
|
2117
|
+
get(params: Params$Resource$Managedfolders$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2118
|
+
get(params?: Params$Resource$Managedfolders$Get, options?: MethodOptions): GaxiosPromise<Schema$ManagedFolder>;
|
|
2119
|
+
get(params: Params$Resource$Managedfolders$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2120
|
+
get(params: Params$Resource$Managedfolders$Get, options: MethodOptions | BodyResponseCallback<Schema$ManagedFolder>, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
2121
|
+
get(params: Params$Resource$Managedfolders$Get, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
2122
|
+
get(callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
2123
|
+
/**
|
|
2124
|
+
* Returns an IAM policy for the specified managed folder.
|
|
2125
|
+
*
|
|
2126
|
+
* @param params - Parameters for request
|
|
2127
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2128
|
+
* @param callback - Optional callback that handles the response.
|
|
2129
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2130
|
+
*/
|
|
2131
|
+
getIamPolicy(params: Params$Resource$Managedfolders$Getiampolicy, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2132
|
+
getIamPolicy(params?: Params$Resource$Managedfolders$Getiampolicy, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
|
|
2133
|
+
getIamPolicy(params: Params$Resource$Managedfolders$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2134
|
+
getIamPolicy(params: Params$Resource$Managedfolders$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
2135
|
+
getIamPolicy(params: Params$Resource$Managedfolders$Getiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
2136
|
+
getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
2137
|
+
/**
|
|
2138
|
+
* Creates a new managed folder.
|
|
2139
|
+
*
|
|
2140
|
+
* @param params - Parameters for request
|
|
2141
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2142
|
+
* @param callback - Optional callback that handles the response.
|
|
2143
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2144
|
+
*/
|
|
2145
|
+
insert(params: Params$Resource$Managedfolders$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2146
|
+
insert(params?: Params$Resource$Managedfolders$Insert, options?: MethodOptions): GaxiosPromise<Schema$ManagedFolder>;
|
|
2147
|
+
insert(params: Params$Resource$Managedfolders$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2148
|
+
insert(params: Params$Resource$Managedfolders$Insert, options: MethodOptions | BodyResponseCallback<Schema$ManagedFolder>, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
2149
|
+
insert(params: Params$Resource$Managedfolders$Insert, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
2150
|
+
insert(callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
2151
|
+
/**
|
|
2152
|
+
* Lists managed folders in the given bucket.
|
|
2153
|
+
*
|
|
2154
|
+
* @param params - Parameters for request
|
|
2155
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2156
|
+
* @param callback - Optional callback that handles the response.
|
|
2157
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2158
|
+
*/
|
|
2159
|
+
list(params: Params$Resource$Managedfolders$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2160
|
+
list(params?: Params$Resource$Managedfolders$List, options?: MethodOptions): GaxiosPromise<Schema$ManagedFolders>;
|
|
2161
|
+
list(params: Params$Resource$Managedfolders$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2162
|
+
list(params: Params$Resource$Managedfolders$List, options: MethodOptions | BodyResponseCallback<Schema$ManagedFolders>, callback: BodyResponseCallback<Schema$ManagedFolders>): void;
|
|
2163
|
+
list(params: Params$Resource$Managedfolders$List, callback: BodyResponseCallback<Schema$ManagedFolders>): void;
|
|
2164
|
+
list(callback: BodyResponseCallback<Schema$ManagedFolders>): void;
|
|
2165
|
+
/**
|
|
2166
|
+
* Updates an IAM policy for the specified managed folder.
|
|
2167
|
+
*
|
|
2168
|
+
* @param params - Parameters for request
|
|
2169
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2170
|
+
* @param callback - Optional callback that handles the response.
|
|
2171
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2172
|
+
*/
|
|
2173
|
+
setIamPolicy(params: Params$Resource$Managedfolders$Setiampolicy, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2174
|
+
setIamPolicy(params?: Params$Resource$Managedfolders$Setiampolicy, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
|
|
2175
|
+
setIamPolicy(params: Params$Resource$Managedfolders$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2176
|
+
setIamPolicy(params: Params$Resource$Managedfolders$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
2177
|
+
setIamPolicy(params: Params$Resource$Managedfolders$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
2178
|
+
setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
2179
|
+
/**
|
|
2180
|
+
* Tests a set of permissions on the given managed folder to see which, if any, are held by the caller.
|
|
2181
|
+
*
|
|
2182
|
+
* @param params - Parameters for request
|
|
2183
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2184
|
+
* @param callback - Optional callback that handles the response.
|
|
2185
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2186
|
+
*/
|
|
2187
|
+
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2188
|
+
testIamPermissions(params?: Params$Resource$Managedfolders$Testiampermissions, options?: MethodOptions): GaxiosPromise<Schema$TestIamPermissionsResponse>;
|
|
2189
|
+
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2190
|
+
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
2191
|
+
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
2192
|
+
testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
2193
|
+
}
|
|
2194
|
+
export interface Params$Resource$Managedfolders$Delete extends StandardParameters {
|
|
2195
|
+
/**
|
|
2196
|
+
* Name of the bucket containing the managed folder.
|
|
2197
|
+
*/
|
|
2198
|
+
bucket?: string;
|
|
2199
|
+
/**
|
|
2200
|
+
* If set, only deletes the managed folder if its metageneration matches this value.
|
|
2201
|
+
*/
|
|
2202
|
+
ifMetagenerationMatch?: string;
|
|
2203
|
+
/**
|
|
2204
|
+
* If set, only deletes the managed folder if its metageneration does not match this value.
|
|
2205
|
+
*/
|
|
2206
|
+
ifMetagenerationNotMatch?: string;
|
|
2207
|
+
/**
|
|
2208
|
+
* The managed folder name/path.
|
|
2209
|
+
*/
|
|
2210
|
+
managedFolder?: string;
|
|
2211
|
+
}
|
|
2212
|
+
export interface Params$Resource$Managedfolders$Get extends StandardParameters {
|
|
2213
|
+
/**
|
|
2214
|
+
* Name of the bucket containing the managed folder.
|
|
2215
|
+
*/
|
|
2216
|
+
bucket?: string;
|
|
2217
|
+
/**
|
|
2218
|
+
* Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration matches the given value.
|
|
2219
|
+
*/
|
|
2220
|
+
ifMetagenerationMatch?: string;
|
|
2221
|
+
/**
|
|
2222
|
+
* Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration does not match the given value.
|
|
2223
|
+
*/
|
|
2224
|
+
ifMetagenerationNotMatch?: string;
|
|
2225
|
+
/**
|
|
2226
|
+
* The managed folder name/path.
|
|
2227
|
+
*/
|
|
2228
|
+
managedFolder?: string;
|
|
2229
|
+
}
|
|
2230
|
+
export interface Params$Resource$Managedfolders$Getiampolicy extends StandardParameters {
|
|
2231
|
+
/**
|
|
2232
|
+
* Name of the bucket containing the managed folder.
|
|
2233
|
+
*/
|
|
2234
|
+
bucket?: string;
|
|
2235
|
+
/**
|
|
2236
|
+
* The managed folder name/path.
|
|
2237
|
+
*/
|
|
2238
|
+
managedFolder?: string;
|
|
2239
|
+
/**
|
|
2240
|
+
* 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 fails.
|
|
2241
|
+
*/
|
|
2242
|
+
optionsRequestedPolicyVersion?: number;
|
|
2243
|
+
/**
|
|
2244
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
2245
|
+
*/
|
|
2246
|
+
userProject?: string;
|
|
2247
|
+
}
|
|
2248
|
+
export interface Params$Resource$Managedfolders$Insert extends StandardParameters {
|
|
2249
|
+
/**
|
|
2250
|
+
* Name of the bucket containing the managed folder.
|
|
2251
|
+
*/
|
|
2252
|
+
bucket?: string;
|
|
2253
|
+
/**
|
|
2254
|
+
* Request body metadata
|
|
2255
|
+
*/
|
|
2256
|
+
requestBody?: Schema$ManagedFolder;
|
|
2257
|
+
}
|
|
2258
|
+
export interface Params$Resource$Managedfolders$List extends StandardParameters {
|
|
2259
|
+
/**
|
|
2260
|
+
* Name of the bucket containing the managed folder.
|
|
2261
|
+
*/
|
|
2262
|
+
bucket?: string;
|
|
2263
|
+
/**
|
|
2264
|
+
* Maximum number of items return in a single page of responses.
|
|
2265
|
+
*/
|
|
2266
|
+
pageSize?: number;
|
|
2267
|
+
/**
|
|
2268
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
2269
|
+
*/
|
|
2270
|
+
pageToken?: string;
|
|
2271
|
+
/**
|
|
2272
|
+
* The managed folder name/path prefix to filter the output list of results.
|
|
2273
|
+
*/
|
|
2274
|
+
prefix?: string;
|
|
2275
|
+
}
|
|
2276
|
+
export interface Params$Resource$Managedfolders$Setiampolicy extends StandardParameters {
|
|
2277
|
+
/**
|
|
2278
|
+
* Name of the bucket containing the managed folder.
|
|
2279
|
+
*/
|
|
2280
|
+
bucket?: string;
|
|
2281
|
+
/**
|
|
2282
|
+
* The managed folder name/path.
|
|
2283
|
+
*/
|
|
2284
|
+
managedFolder?: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
2287
|
+
*/
|
|
2288
|
+
userProject?: string;
|
|
2289
|
+
/**
|
|
2290
|
+
* Request body metadata
|
|
2291
|
+
*/
|
|
2292
|
+
requestBody?: Schema$Policy;
|
|
2293
|
+
}
|
|
2294
|
+
export interface Params$Resource$Managedfolders$Testiampermissions extends StandardParameters {
|
|
2295
|
+
/**
|
|
2296
|
+
* Name of the bucket containing the managed folder.
|
|
2297
|
+
*/
|
|
2298
|
+
bucket?: string;
|
|
2299
|
+
/**
|
|
2300
|
+
* The managed folder name/path.
|
|
2301
|
+
*/
|
|
2302
|
+
managedFolder?: string;
|
|
2303
|
+
/**
|
|
2304
|
+
* Permissions to test.
|
|
2305
|
+
*/
|
|
2306
|
+
permissions?: string[];
|
|
2307
|
+
/**
|
|
2308
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
2309
|
+
*/
|
|
2310
|
+
userProject?: string;
|
|
2311
|
+
}
|
|
1784
2312
|
export class Resource$Notifications {
|
|
1785
2313
|
context: APIRequestContext;
|
|
1786
2314
|
constructor(context: APIRequestContext);
|
|
@@ -2619,6 +3147,10 @@ export declare namespace storage_v1 {
|
|
|
2619
3147
|
* 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 endOffset (exclusive).
|
|
2620
3148
|
*/
|
|
2621
3149
|
endOffset?: string;
|
|
3150
|
+
/**
|
|
3151
|
+
* Only applicable if delimiter is set to '/'. If true, will also include folders and managed folders (besides objects) in the returned prefixes.
|
|
3152
|
+
*/
|
|
3153
|
+
includeFoldersAsPrefixes?: boolean;
|
|
2622
3154
|
/**
|
|
2623
3155
|
* If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.
|
|
2624
3156
|
*/
|