@google-cloud/storage-control 0.1.0 → 0.1.1
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 +7 -0
- package/README.md +4 -0
- package/build/protos/google/storage/control/v2/storage_control.proto +244 -19
- package/build/protos/protos.d.ts +786 -0
- package/build/protos/protos.js +1928 -0
- package/build/protos/protos.json +310 -0
- package/build/src/v2/storage_control_client.d.ts +271 -14
- package/build/src/v2/storage_control_client.js +319 -9
- package/build/src/v2/storage_control_client.js.map +1 -1
- package/build/src/v2/storage_control_client_config.json +20 -0
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
@@ -129,6 +129,62 @@ export namespace google {
|
|
129
129
|
* @returns Promise
|
130
130
|
*/
|
131
131
|
public getStorageLayout(request: google.storage.control.v2.IGetStorageLayoutRequest): Promise<google.storage.control.v2.StorageLayout>;
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Calls CreateManagedFolder.
|
135
|
+
* @param request CreateManagedFolderRequest message or plain object
|
136
|
+
* @param callback Node-style callback called with the error, if any, and ManagedFolder
|
137
|
+
*/
|
138
|
+
public createManagedFolder(request: google.storage.control.v2.ICreateManagedFolderRequest, callback: google.storage.control.v2.StorageControl.CreateManagedFolderCallback): void;
|
139
|
+
|
140
|
+
/**
|
141
|
+
* Calls CreateManagedFolder.
|
142
|
+
* @param request CreateManagedFolderRequest message or plain object
|
143
|
+
* @returns Promise
|
144
|
+
*/
|
145
|
+
public createManagedFolder(request: google.storage.control.v2.ICreateManagedFolderRequest): Promise<google.storage.control.v2.ManagedFolder>;
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Calls DeleteManagedFolder.
|
149
|
+
* @param request DeleteManagedFolderRequest message or plain object
|
150
|
+
* @param callback Node-style callback called with the error, if any, and Empty
|
151
|
+
*/
|
152
|
+
public deleteManagedFolder(request: google.storage.control.v2.IDeleteManagedFolderRequest, callback: google.storage.control.v2.StorageControl.DeleteManagedFolderCallback): void;
|
153
|
+
|
154
|
+
/**
|
155
|
+
* Calls DeleteManagedFolder.
|
156
|
+
* @param request DeleteManagedFolderRequest message or plain object
|
157
|
+
* @returns Promise
|
158
|
+
*/
|
159
|
+
public deleteManagedFolder(request: google.storage.control.v2.IDeleteManagedFolderRequest): Promise<google.protobuf.Empty>;
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Calls GetManagedFolder.
|
163
|
+
* @param request GetManagedFolderRequest message or plain object
|
164
|
+
* @param callback Node-style callback called with the error, if any, and ManagedFolder
|
165
|
+
*/
|
166
|
+
public getManagedFolder(request: google.storage.control.v2.IGetManagedFolderRequest, callback: google.storage.control.v2.StorageControl.GetManagedFolderCallback): void;
|
167
|
+
|
168
|
+
/**
|
169
|
+
* Calls GetManagedFolder.
|
170
|
+
* @param request GetManagedFolderRequest message or plain object
|
171
|
+
* @returns Promise
|
172
|
+
*/
|
173
|
+
public getManagedFolder(request: google.storage.control.v2.IGetManagedFolderRequest): Promise<google.storage.control.v2.ManagedFolder>;
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Calls ListManagedFolders.
|
177
|
+
* @param request ListManagedFoldersRequest message or plain object
|
178
|
+
* @param callback Node-style callback called with the error, if any, and ListManagedFoldersResponse
|
179
|
+
*/
|
180
|
+
public listManagedFolders(request: google.storage.control.v2.IListManagedFoldersRequest, callback: google.storage.control.v2.StorageControl.ListManagedFoldersCallback): void;
|
181
|
+
|
182
|
+
/**
|
183
|
+
* Calls ListManagedFolders.
|
184
|
+
* @param request ListManagedFoldersRequest message or plain object
|
185
|
+
* @returns Promise
|
186
|
+
*/
|
187
|
+
public listManagedFolders(request: google.storage.control.v2.IListManagedFoldersRequest): Promise<google.storage.control.v2.ListManagedFoldersResponse>;
|
132
188
|
}
|
133
189
|
|
134
190
|
namespace StorageControl {
|
@@ -174,6 +230,34 @@ export namespace google {
|
|
174
230
|
* @param [response] StorageLayout
|
175
231
|
*/
|
176
232
|
type GetStorageLayoutCallback = (error: (Error|null), response?: google.storage.control.v2.StorageLayout) => void;
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Callback as used by {@link google.storage.control.v2.StorageControl|createManagedFolder}.
|
236
|
+
* @param error Error, if any
|
237
|
+
* @param [response] ManagedFolder
|
238
|
+
*/
|
239
|
+
type CreateManagedFolderCallback = (error: (Error|null), response?: google.storage.control.v2.ManagedFolder) => void;
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Callback as used by {@link google.storage.control.v2.StorageControl|deleteManagedFolder}.
|
243
|
+
* @param error Error, if any
|
244
|
+
* @param [response] Empty
|
245
|
+
*/
|
246
|
+
type DeleteManagedFolderCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
|
247
|
+
|
248
|
+
/**
|
249
|
+
* Callback as used by {@link google.storage.control.v2.StorageControl|getManagedFolder}.
|
250
|
+
* @param error Error, if any
|
251
|
+
* @param [response] ManagedFolder
|
252
|
+
*/
|
253
|
+
type GetManagedFolderCallback = (error: (Error|null), response?: google.storage.control.v2.ManagedFolder) => void;
|
254
|
+
|
255
|
+
/**
|
256
|
+
* Callback as used by {@link google.storage.control.v2.StorageControl|listManagedFolders}.
|
257
|
+
* @param error Error, if any
|
258
|
+
* @param [response] ListManagedFoldersResponse
|
259
|
+
*/
|
260
|
+
type ListManagedFoldersCallback = (error: (Error|null), response?: google.storage.control.v2.ListManagedFoldersResponse) => void;
|
177
261
|
}
|
178
262
|
|
179
263
|
/** Properties of a PendingRenameInfo. */
|
@@ -1788,6 +1872,708 @@ export namespace google {
|
|
1788
1872
|
*/
|
1789
1873
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
1790
1874
|
}
|
1875
|
+
|
1876
|
+
/** Properties of a ManagedFolder. */
|
1877
|
+
interface IManagedFolder {
|
1878
|
+
|
1879
|
+
/** ManagedFolder name */
|
1880
|
+
name?: (string|null);
|
1881
|
+
|
1882
|
+
/** ManagedFolder metageneration */
|
1883
|
+
metageneration?: (number|Long|string|null);
|
1884
|
+
|
1885
|
+
/** ManagedFolder createTime */
|
1886
|
+
createTime?: (google.protobuf.ITimestamp|null);
|
1887
|
+
|
1888
|
+
/** ManagedFolder updateTime */
|
1889
|
+
updateTime?: (google.protobuf.ITimestamp|null);
|
1890
|
+
}
|
1891
|
+
|
1892
|
+
/** Represents a ManagedFolder. */
|
1893
|
+
class ManagedFolder implements IManagedFolder {
|
1894
|
+
|
1895
|
+
/**
|
1896
|
+
* Constructs a new ManagedFolder.
|
1897
|
+
* @param [properties] Properties to set
|
1898
|
+
*/
|
1899
|
+
constructor(properties?: google.storage.control.v2.IManagedFolder);
|
1900
|
+
|
1901
|
+
/** ManagedFolder name. */
|
1902
|
+
public name: string;
|
1903
|
+
|
1904
|
+
/** ManagedFolder metageneration. */
|
1905
|
+
public metageneration: (number|Long|string);
|
1906
|
+
|
1907
|
+
/** ManagedFolder createTime. */
|
1908
|
+
public createTime?: (google.protobuf.ITimestamp|null);
|
1909
|
+
|
1910
|
+
/** ManagedFolder updateTime. */
|
1911
|
+
public updateTime?: (google.protobuf.ITimestamp|null);
|
1912
|
+
|
1913
|
+
/**
|
1914
|
+
* Creates a new ManagedFolder instance using the specified properties.
|
1915
|
+
* @param [properties] Properties to set
|
1916
|
+
* @returns ManagedFolder instance
|
1917
|
+
*/
|
1918
|
+
public static create(properties?: google.storage.control.v2.IManagedFolder): google.storage.control.v2.ManagedFolder;
|
1919
|
+
|
1920
|
+
/**
|
1921
|
+
* Encodes the specified ManagedFolder message. Does not implicitly {@link google.storage.control.v2.ManagedFolder.verify|verify} messages.
|
1922
|
+
* @param message ManagedFolder message or plain object to encode
|
1923
|
+
* @param [writer] Writer to encode to
|
1924
|
+
* @returns Writer
|
1925
|
+
*/
|
1926
|
+
public static encode(message: google.storage.control.v2.IManagedFolder, writer?: $protobuf.Writer): $protobuf.Writer;
|
1927
|
+
|
1928
|
+
/**
|
1929
|
+
* Encodes the specified ManagedFolder message, length delimited. Does not implicitly {@link google.storage.control.v2.ManagedFolder.verify|verify} messages.
|
1930
|
+
* @param message ManagedFolder message or plain object to encode
|
1931
|
+
* @param [writer] Writer to encode to
|
1932
|
+
* @returns Writer
|
1933
|
+
*/
|
1934
|
+
public static encodeDelimited(message: google.storage.control.v2.IManagedFolder, writer?: $protobuf.Writer): $protobuf.Writer;
|
1935
|
+
|
1936
|
+
/**
|
1937
|
+
* Decodes a ManagedFolder message from the specified reader or buffer.
|
1938
|
+
* @param reader Reader or buffer to decode from
|
1939
|
+
* @param [length] Message length if known beforehand
|
1940
|
+
* @returns ManagedFolder
|
1941
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1942
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1943
|
+
*/
|
1944
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.storage.control.v2.ManagedFolder;
|
1945
|
+
|
1946
|
+
/**
|
1947
|
+
* Decodes a ManagedFolder message from the specified reader or buffer, length delimited.
|
1948
|
+
* @param reader Reader or buffer to decode from
|
1949
|
+
* @returns ManagedFolder
|
1950
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1951
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1952
|
+
*/
|
1953
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storage.control.v2.ManagedFolder;
|
1954
|
+
|
1955
|
+
/**
|
1956
|
+
* Verifies a ManagedFolder message.
|
1957
|
+
* @param message Plain object to verify
|
1958
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
1959
|
+
*/
|
1960
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
1961
|
+
|
1962
|
+
/**
|
1963
|
+
* Creates a ManagedFolder message from a plain object. Also converts values to their respective internal types.
|
1964
|
+
* @param object Plain object
|
1965
|
+
* @returns ManagedFolder
|
1966
|
+
*/
|
1967
|
+
public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ManagedFolder;
|
1968
|
+
|
1969
|
+
/**
|
1970
|
+
* Creates a plain object from a ManagedFolder message. Also converts values to other types if specified.
|
1971
|
+
* @param message ManagedFolder
|
1972
|
+
* @param [options] Conversion options
|
1973
|
+
* @returns Plain object
|
1974
|
+
*/
|
1975
|
+
public static toObject(message: google.storage.control.v2.ManagedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
1976
|
+
|
1977
|
+
/**
|
1978
|
+
* Converts this ManagedFolder to JSON.
|
1979
|
+
* @returns JSON object
|
1980
|
+
*/
|
1981
|
+
public toJSON(): { [k: string]: any };
|
1982
|
+
|
1983
|
+
/**
|
1984
|
+
* Gets the default type url for ManagedFolder
|
1985
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
1986
|
+
* @returns The default type url
|
1987
|
+
*/
|
1988
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
1989
|
+
}
|
1990
|
+
|
1991
|
+
/** Properties of a GetManagedFolderRequest. */
|
1992
|
+
interface IGetManagedFolderRequest {
|
1993
|
+
|
1994
|
+
/** GetManagedFolderRequest name */
|
1995
|
+
name?: (string|null);
|
1996
|
+
|
1997
|
+
/** GetManagedFolderRequest ifMetagenerationMatch */
|
1998
|
+
ifMetagenerationMatch?: (number|Long|string|null);
|
1999
|
+
|
2000
|
+
/** GetManagedFolderRequest ifMetagenerationNotMatch */
|
2001
|
+
ifMetagenerationNotMatch?: (number|Long|string|null);
|
2002
|
+
|
2003
|
+
/** GetManagedFolderRequest requestId */
|
2004
|
+
requestId?: (string|null);
|
2005
|
+
}
|
2006
|
+
|
2007
|
+
/** Represents a GetManagedFolderRequest. */
|
2008
|
+
class GetManagedFolderRequest implements IGetManagedFolderRequest {
|
2009
|
+
|
2010
|
+
/**
|
2011
|
+
* Constructs a new GetManagedFolderRequest.
|
2012
|
+
* @param [properties] Properties to set
|
2013
|
+
*/
|
2014
|
+
constructor(properties?: google.storage.control.v2.IGetManagedFolderRequest);
|
2015
|
+
|
2016
|
+
/** GetManagedFolderRequest name. */
|
2017
|
+
public name: string;
|
2018
|
+
|
2019
|
+
/** GetManagedFolderRequest ifMetagenerationMatch. */
|
2020
|
+
public ifMetagenerationMatch?: (number|Long|string|null);
|
2021
|
+
|
2022
|
+
/** GetManagedFolderRequest ifMetagenerationNotMatch. */
|
2023
|
+
public ifMetagenerationNotMatch?: (number|Long|string|null);
|
2024
|
+
|
2025
|
+
/** GetManagedFolderRequest requestId. */
|
2026
|
+
public requestId: string;
|
2027
|
+
|
2028
|
+
/** GetManagedFolderRequest _ifMetagenerationMatch. */
|
2029
|
+
public _ifMetagenerationMatch?: "ifMetagenerationMatch";
|
2030
|
+
|
2031
|
+
/** GetManagedFolderRequest _ifMetagenerationNotMatch. */
|
2032
|
+
public _ifMetagenerationNotMatch?: "ifMetagenerationNotMatch";
|
2033
|
+
|
2034
|
+
/**
|
2035
|
+
* Creates a new GetManagedFolderRequest instance using the specified properties.
|
2036
|
+
* @param [properties] Properties to set
|
2037
|
+
* @returns GetManagedFolderRequest instance
|
2038
|
+
*/
|
2039
|
+
public static create(properties?: google.storage.control.v2.IGetManagedFolderRequest): google.storage.control.v2.GetManagedFolderRequest;
|
2040
|
+
|
2041
|
+
/**
|
2042
|
+
* Encodes the specified GetManagedFolderRequest message. Does not implicitly {@link google.storage.control.v2.GetManagedFolderRequest.verify|verify} messages.
|
2043
|
+
* @param message GetManagedFolderRequest message or plain object to encode
|
2044
|
+
* @param [writer] Writer to encode to
|
2045
|
+
* @returns Writer
|
2046
|
+
*/
|
2047
|
+
public static encode(message: google.storage.control.v2.IGetManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2048
|
+
|
2049
|
+
/**
|
2050
|
+
* Encodes the specified GetManagedFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.GetManagedFolderRequest.verify|verify} messages.
|
2051
|
+
* @param message GetManagedFolderRequest message or plain object to encode
|
2052
|
+
* @param [writer] Writer to encode to
|
2053
|
+
* @returns Writer
|
2054
|
+
*/
|
2055
|
+
public static encodeDelimited(message: google.storage.control.v2.IGetManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2056
|
+
|
2057
|
+
/**
|
2058
|
+
* Decodes a GetManagedFolderRequest message from the specified reader or buffer.
|
2059
|
+
* @param reader Reader or buffer to decode from
|
2060
|
+
* @param [length] Message length if known beforehand
|
2061
|
+
* @returns GetManagedFolderRequest
|
2062
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2063
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2064
|
+
*/
|
2065
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.storage.control.v2.GetManagedFolderRequest;
|
2066
|
+
|
2067
|
+
/**
|
2068
|
+
* Decodes a GetManagedFolderRequest message from the specified reader or buffer, length delimited.
|
2069
|
+
* @param reader Reader or buffer to decode from
|
2070
|
+
* @returns GetManagedFolderRequest
|
2071
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2072
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2073
|
+
*/
|
2074
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storage.control.v2.GetManagedFolderRequest;
|
2075
|
+
|
2076
|
+
/**
|
2077
|
+
* Verifies a GetManagedFolderRequest message.
|
2078
|
+
* @param message Plain object to verify
|
2079
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
2080
|
+
*/
|
2081
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
2082
|
+
|
2083
|
+
/**
|
2084
|
+
* Creates a GetManagedFolderRequest message from a plain object. Also converts values to their respective internal types.
|
2085
|
+
* @param object Plain object
|
2086
|
+
* @returns GetManagedFolderRequest
|
2087
|
+
*/
|
2088
|
+
public static fromObject(object: { [k: string]: any }): google.storage.control.v2.GetManagedFolderRequest;
|
2089
|
+
|
2090
|
+
/**
|
2091
|
+
* Creates a plain object from a GetManagedFolderRequest message. Also converts values to other types if specified.
|
2092
|
+
* @param message GetManagedFolderRequest
|
2093
|
+
* @param [options] Conversion options
|
2094
|
+
* @returns Plain object
|
2095
|
+
*/
|
2096
|
+
public static toObject(message: google.storage.control.v2.GetManagedFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2097
|
+
|
2098
|
+
/**
|
2099
|
+
* Converts this GetManagedFolderRequest to JSON.
|
2100
|
+
* @returns JSON object
|
2101
|
+
*/
|
2102
|
+
public toJSON(): { [k: string]: any };
|
2103
|
+
|
2104
|
+
/**
|
2105
|
+
* Gets the default type url for GetManagedFolderRequest
|
2106
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
2107
|
+
* @returns The default type url
|
2108
|
+
*/
|
2109
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
2110
|
+
}
|
2111
|
+
|
2112
|
+
/** Properties of a CreateManagedFolderRequest. */
|
2113
|
+
interface ICreateManagedFolderRequest {
|
2114
|
+
|
2115
|
+
/** CreateManagedFolderRequest parent */
|
2116
|
+
parent?: (string|null);
|
2117
|
+
|
2118
|
+
/** CreateManagedFolderRequest managedFolder */
|
2119
|
+
managedFolder?: (google.storage.control.v2.IManagedFolder|null);
|
2120
|
+
|
2121
|
+
/** CreateManagedFolderRequest managedFolderId */
|
2122
|
+
managedFolderId?: (string|null);
|
2123
|
+
|
2124
|
+
/** CreateManagedFolderRequest requestId */
|
2125
|
+
requestId?: (string|null);
|
2126
|
+
}
|
2127
|
+
|
2128
|
+
/** Represents a CreateManagedFolderRequest. */
|
2129
|
+
class CreateManagedFolderRequest implements ICreateManagedFolderRequest {
|
2130
|
+
|
2131
|
+
/**
|
2132
|
+
* Constructs a new CreateManagedFolderRequest.
|
2133
|
+
* @param [properties] Properties to set
|
2134
|
+
*/
|
2135
|
+
constructor(properties?: google.storage.control.v2.ICreateManagedFolderRequest);
|
2136
|
+
|
2137
|
+
/** CreateManagedFolderRequest parent. */
|
2138
|
+
public parent: string;
|
2139
|
+
|
2140
|
+
/** CreateManagedFolderRequest managedFolder. */
|
2141
|
+
public managedFolder?: (google.storage.control.v2.IManagedFolder|null);
|
2142
|
+
|
2143
|
+
/** CreateManagedFolderRequest managedFolderId. */
|
2144
|
+
public managedFolderId: string;
|
2145
|
+
|
2146
|
+
/** CreateManagedFolderRequest requestId. */
|
2147
|
+
public requestId: string;
|
2148
|
+
|
2149
|
+
/**
|
2150
|
+
* Creates a new CreateManagedFolderRequest instance using the specified properties.
|
2151
|
+
* @param [properties] Properties to set
|
2152
|
+
* @returns CreateManagedFolderRequest instance
|
2153
|
+
*/
|
2154
|
+
public static create(properties?: google.storage.control.v2.ICreateManagedFolderRequest): google.storage.control.v2.CreateManagedFolderRequest;
|
2155
|
+
|
2156
|
+
/**
|
2157
|
+
* Encodes the specified CreateManagedFolderRequest message. Does not implicitly {@link google.storage.control.v2.CreateManagedFolderRequest.verify|verify} messages.
|
2158
|
+
* @param message CreateManagedFolderRequest message or plain object to encode
|
2159
|
+
* @param [writer] Writer to encode to
|
2160
|
+
* @returns Writer
|
2161
|
+
*/
|
2162
|
+
public static encode(message: google.storage.control.v2.ICreateManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2163
|
+
|
2164
|
+
/**
|
2165
|
+
* Encodes the specified CreateManagedFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.CreateManagedFolderRequest.verify|verify} messages.
|
2166
|
+
* @param message CreateManagedFolderRequest message or plain object to encode
|
2167
|
+
* @param [writer] Writer to encode to
|
2168
|
+
* @returns Writer
|
2169
|
+
*/
|
2170
|
+
public static encodeDelimited(message: google.storage.control.v2.ICreateManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2171
|
+
|
2172
|
+
/**
|
2173
|
+
* Decodes a CreateManagedFolderRequest message from the specified reader or buffer.
|
2174
|
+
* @param reader Reader or buffer to decode from
|
2175
|
+
* @param [length] Message length if known beforehand
|
2176
|
+
* @returns CreateManagedFolderRequest
|
2177
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2178
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2179
|
+
*/
|
2180
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.storage.control.v2.CreateManagedFolderRequest;
|
2181
|
+
|
2182
|
+
/**
|
2183
|
+
* Decodes a CreateManagedFolderRequest message from the specified reader or buffer, length delimited.
|
2184
|
+
* @param reader Reader or buffer to decode from
|
2185
|
+
* @returns CreateManagedFolderRequest
|
2186
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2187
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2188
|
+
*/
|
2189
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storage.control.v2.CreateManagedFolderRequest;
|
2190
|
+
|
2191
|
+
/**
|
2192
|
+
* Verifies a CreateManagedFolderRequest message.
|
2193
|
+
* @param message Plain object to verify
|
2194
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
2195
|
+
*/
|
2196
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
2197
|
+
|
2198
|
+
/**
|
2199
|
+
* Creates a CreateManagedFolderRequest message from a plain object. Also converts values to their respective internal types.
|
2200
|
+
* @param object Plain object
|
2201
|
+
* @returns CreateManagedFolderRequest
|
2202
|
+
*/
|
2203
|
+
public static fromObject(object: { [k: string]: any }): google.storage.control.v2.CreateManagedFolderRequest;
|
2204
|
+
|
2205
|
+
/**
|
2206
|
+
* Creates a plain object from a CreateManagedFolderRequest message. Also converts values to other types if specified.
|
2207
|
+
* @param message CreateManagedFolderRequest
|
2208
|
+
* @param [options] Conversion options
|
2209
|
+
* @returns Plain object
|
2210
|
+
*/
|
2211
|
+
public static toObject(message: google.storage.control.v2.CreateManagedFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2212
|
+
|
2213
|
+
/**
|
2214
|
+
* Converts this CreateManagedFolderRequest to JSON.
|
2215
|
+
* @returns JSON object
|
2216
|
+
*/
|
2217
|
+
public toJSON(): { [k: string]: any };
|
2218
|
+
|
2219
|
+
/**
|
2220
|
+
* Gets the default type url for CreateManagedFolderRequest
|
2221
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
2222
|
+
* @returns The default type url
|
2223
|
+
*/
|
2224
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
2225
|
+
}
|
2226
|
+
|
2227
|
+
/** Properties of a DeleteManagedFolderRequest. */
|
2228
|
+
interface IDeleteManagedFolderRequest {
|
2229
|
+
|
2230
|
+
/** DeleteManagedFolderRequest name */
|
2231
|
+
name?: (string|null);
|
2232
|
+
|
2233
|
+
/** DeleteManagedFolderRequest ifMetagenerationMatch */
|
2234
|
+
ifMetagenerationMatch?: (number|Long|string|null);
|
2235
|
+
|
2236
|
+
/** DeleteManagedFolderRequest ifMetagenerationNotMatch */
|
2237
|
+
ifMetagenerationNotMatch?: (number|Long|string|null);
|
2238
|
+
|
2239
|
+
/** DeleteManagedFolderRequest allowNonEmpty */
|
2240
|
+
allowNonEmpty?: (boolean|null);
|
2241
|
+
|
2242
|
+
/** DeleteManagedFolderRequest requestId */
|
2243
|
+
requestId?: (string|null);
|
2244
|
+
}
|
2245
|
+
|
2246
|
+
/** Represents a DeleteManagedFolderRequest. */
|
2247
|
+
class DeleteManagedFolderRequest implements IDeleteManagedFolderRequest {
|
2248
|
+
|
2249
|
+
/**
|
2250
|
+
* Constructs a new DeleteManagedFolderRequest.
|
2251
|
+
* @param [properties] Properties to set
|
2252
|
+
*/
|
2253
|
+
constructor(properties?: google.storage.control.v2.IDeleteManagedFolderRequest);
|
2254
|
+
|
2255
|
+
/** DeleteManagedFolderRequest name. */
|
2256
|
+
public name: string;
|
2257
|
+
|
2258
|
+
/** DeleteManagedFolderRequest ifMetagenerationMatch. */
|
2259
|
+
public ifMetagenerationMatch?: (number|Long|string|null);
|
2260
|
+
|
2261
|
+
/** DeleteManagedFolderRequest ifMetagenerationNotMatch. */
|
2262
|
+
public ifMetagenerationNotMatch?: (number|Long|string|null);
|
2263
|
+
|
2264
|
+
/** DeleteManagedFolderRequest allowNonEmpty. */
|
2265
|
+
public allowNonEmpty: boolean;
|
2266
|
+
|
2267
|
+
/** DeleteManagedFolderRequest requestId. */
|
2268
|
+
public requestId: string;
|
2269
|
+
|
2270
|
+
/** DeleteManagedFolderRequest _ifMetagenerationMatch. */
|
2271
|
+
public _ifMetagenerationMatch?: "ifMetagenerationMatch";
|
2272
|
+
|
2273
|
+
/** DeleteManagedFolderRequest _ifMetagenerationNotMatch. */
|
2274
|
+
public _ifMetagenerationNotMatch?: "ifMetagenerationNotMatch";
|
2275
|
+
|
2276
|
+
/**
|
2277
|
+
* Creates a new DeleteManagedFolderRequest instance using the specified properties.
|
2278
|
+
* @param [properties] Properties to set
|
2279
|
+
* @returns DeleteManagedFolderRequest instance
|
2280
|
+
*/
|
2281
|
+
public static create(properties?: google.storage.control.v2.IDeleteManagedFolderRequest): google.storage.control.v2.DeleteManagedFolderRequest;
|
2282
|
+
|
2283
|
+
/**
|
2284
|
+
* Encodes the specified DeleteManagedFolderRequest message. Does not implicitly {@link google.storage.control.v2.DeleteManagedFolderRequest.verify|verify} messages.
|
2285
|
+
* @param message DeleteManagedFolderRequest message or plain object to encode
|
2286
|
+
* @param [writer] Writer to encode to
|
2287
|
+
* @returns Writer
|
2288
|
+
*/
|
2289
|
+
public static encode(message: google.storage.control.v2.IDeleteManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2290
|
+
|
2291
|
+
/**
|
2292
|
+
* Encodes the specified DeleteManagedFolderRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.DeleteManagedFolderRequest.verify|verify} messages.
|
2293
|
+
* @param message DeleteManagedFolderRequest message or plain object to encode
|
2294
|
+
* @param [writer] Writer to encode to
|
2295
|
+
* @returns Writer
|
2296
|
+
*/
|
2297
|
+
public static encodeDelimited(message: google.storage.control.v2.IDeleteManagedFolderRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2298
|
+
|
2299
|
+
/**
|
2300
|
+
* Decodes a DeleteManagedFolderRequest message from the specified reader or buffer.
|
2301
|
+
* @param reader Reader or buffer to decode from
|
2302
|
+
* @param [length] Message length if known beforehand
|
2303
|
+
* @returns DeleteManagedFolderRequest
|
2304
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2305
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2306
|
+
*/
|
2307
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.storage.control.v2.DeleteManagedFolderRequest;
|
2308
|
+
|
2309
|
+
/**
|
2310
|
+
* Decodes a DeleteManagedFolderRequest message from the specified reader or buffer, length delimited.
|
2311
|
+
* @param reader Reader or buffer to decode from
|
2312
|
+
* @returns DeleteManagedFolderRequest
|
2313
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2314
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2315
|
+
*/
|
2316
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storage.control.v2.DeleteManagedFolderRequest;
|
2317
|
+
|
2318
|
+
/**
|
2319
|
+
* Verifies a DeleteManagedFolderRequest message.
|
2320
|
+
* @param message Plain object to verify
|
2321
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
2322
|
+
*/
|
2323
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
2324
|
+
|
2325
|
+
/**
|
2326
|
+
* Creates a DeleteManagedFolderRequest message from a plain object. Also converts values to their respective internal types.
|
2327
|
+
* @param object Plain object
|
2328
|
+
* @returns DeleteManagedFolderRequest
|
2329
|
+
*/
|
2330
|
+
public static fromObject(object: { [k: string]: any }): google.storage.control.v2.DeleteManagedFolderRequest;
|
2331
|
+
|
2332
|
+
/**
|
2333
|
+
* Creates a plain object from a DeleteManagedFolderRequest message. Also converts values to other types if specified.
|
2334
|
+
* @param message DeleteManagedFolderRequest
|
2335
|
+
* @param [options] Conversion options
|
2336
|
+
* @returns Plain object
|
2337
|
+
*/
|
2338
|
+
public static toObject(message: google.storage.control.v2.DeleteManagedFolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2339
|
+
|
2340
|
+
/**
|
2341
|
+
* Converts this DeleteManagedFolderRequest to JSON.
|
2342
|
+
* @returns JSON object
|
2343
|
+
*/
|
2344
|
+
public toJSON(): { [k: string]: any };
|
2345
|
+
|
2346
|
+
/**
|
2347
|
+
* Gets the default type url for DeleteManagedFolderRequest
|
2348
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
2349
|
+
* @returns The default type url
|
2350
|
+
*/
|
2351
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
2352
|
+
}
|
2353
|
+
|
2354
|
+
/** Properties of a ListManagedFoldersRequest. */
|
2355
|
+
interface IListManagedFoldersRequest {
|
2356
|
+
|
2357
|
+
/** ListManagedFoldersRequest parent */
|
2358
|
+
parent?: (string|null);
|
2359
|
+
|
2360
|
+
/** ListManagedFoldersRequest pageSize */
|
2361
|
+
pageSize?: (number|null);
|
2362
|
+
|
2363
|
+
/** ListManagedFoldersRequest pageToken */
|
2364
|
+
pageToken?: (string|null);
|
2365
|
+
|
2366
|
+
/** ListManagedFoldersRequest prefix */
|
2367
|
+
prefix?: (string|null);
|
2368
|
+
|
2369
|
+
/** ListManagedFoldersRequest requestId */
|
2370
|
+
requestId?: (string|null);
|
2371
|
+
}
|
2372
|
+
|
2373
|
+
/** Represents a ListManagedFoldersRequest. */
|
2374
|
+
class ListManagedFoldersRequest implements IListManagedFoldersRequest {
|
2375
|
+
|
2376
|
+
/**
|
2377
|
+
* Constructs a new ListManagedFoldersRequest.
|
2378
|
+
* @param [properties] Properties to set
|
2379
|
+
*/
|
2380
|
+
constructor(properties?: google.storage.control.v2.IListManagedFoldersRequest);
|
2381
|
+
|
2382
|
+
/** ListManagedFoldersRequest parent. */
|
2383
|
+
public parent: string;
|
2384
|
+
|
2385
|
+
/** ListManagedFoldersRequest pageSize. */
|
2386
|
+
public pageSize: number;
|
2387
|
+
|
2388
|
+
/** ListManagedFoldersRequest pageToken. */
|
2389
|
+
public pageToken: string;
|
2390
|
+
|
2391
|
+
/** ListManagedFoldersRequest prefix. */
|
2392
|
+
public prefix: string;
|
2393
|
+
|
2394
|
+
/** ListManagedFoldersRequest requestId. */
|
2395
|
+
public requestId: string;
|
2396
|
+
|
2397
|
+
/**
|
2398
|
+
* Creates a new ListManagedFoldersRequest instance using the specified properties.
|
2399
|
+
* @param [properties] Properties to set
|
2400
|
+
* @returns ListManagedFoldersRequest instance
|
2401
|
+
*/
|
2402
|
+
public static create(properties?: google.storage.control.v2.IListManagedFoldersRequest): google.storage.control.v2.ListManagedFoldersRequest;
|
2403
|
+
|
2404
|
+
/**
|
2405
|
+
* Encodes the specified ListManagedFoldersRequest message. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersRequest.verify|verify} messages.
|
2406
|
+
* @param message ListManagedFoldersRequest message or plain object to encode
|
2407
|
+
* @param [writer] Writer to encode to
|
2408
|
+
* @returns Writer
|
2409
|
+
*/
|
2410
|
+
public static encode(message: google.storage.control.v2.IListManagedFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2411
|
+
|
2412
|
+
/**
|
2413
|
+
* Encodes the specified ListManagedFoldersRequest message, length delimited. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersRequest.verify|verify} messages.
|
2414
|
+
* @param message ListManagedFoldersRequest message or plain object to encode
|
2415
|
+
* @param [writer] Writer to encode to
|
2416
|
+
* @returns Writer
|
2417
|
+
*/
|
2418
|
+
public static encodeDelimited(message: google.storage.control.v2.IListManagedFoldersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
2419
|
+
|
2420
|
+
/**
|
2421
|
+
* Decodes a ListManagedFoldersRequest message from the specified reader or buffer.
|
2422
|
+
* @param reader Reader or buffer to decode from
|
2423
|
+
* @param [length] Message length if known beforehand
|
2424
|
+
* @returns ListManagedFoldersRequest
|
2425
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2426
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2427
|
+
*/
|
2428
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.storage.control.v2.ListManagedFoldersRequest;
|
2429
|
+
|
2430
|
+
/**
|
2431
|
+
* Decodes a ListManagedFoldersRequest message from the specified reader or buffer, length delimited.
|
2432
|
+
* @param reader Reader or buffer to decode from
|
2433
|
+
* @returns ListManagedFoldersRequest
|
2434
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2435
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2436
|
+
*/
|
2437
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storage.control.v2.ListManagedFoldersRequest;
|
2438
|
+
|
2439
|
+
/**
|
2440
|
+
* Verifies a ListManagedFoldersRequest message.
|
2441
|
+
* @param message Plain object to verify
|
2442
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
2443
|
+
*/
|
2444
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
2445
|
+
|
2446
|
+
/**
|
2447
|
+
* Creates a ListManagedFoldersRequest message from a plain object. Also converts values to their respective internal types.
|
2448
|
+
* @param object Plain object
|
2449
|
+
* @returns ListManagedFoldersRequest
|
2450
|
+
*/
|
2451
|
+
public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ListManagedFoldersRequest;
|
2452
|
+
|
2453
|
+
/**
|
2454
|
+
* Creates a plain object from a ListManagedFoldersRequest message. Also converts values to other types if specified.
|
2455
|
+
* @param message ListManagedFoldersRequest
|
2456
|
+
* @param [options] Conversion options
|
2457
|
+
* @returns Plain object
|
2458
|
+
*/
|
2459
|
+
public static toObject(message: google.storage.control.v2.ListManagedFoldersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2460
|
+
|
2461
|
+
/**
|
2462
|
+
* Converts this ListManagedFoldersRequest to JSON.
|
2463
|
+
* @returns JSON object
|
2464
|
+
*/
|
2465
|
+
public toJSON(): { [k: string]: any };
|
2466
|
+
|
2467
|
+
/**
|
2468
|
+
* Gets the default type url for ListManagedFoldersRequest
|
2469
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
2470
|
+
* @returns The default type url
|
2471
|
+
*/
|
2472
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
2473
|
+
}
|
2474
|
+
|
2475
|
+
/** Properties of a ListManagedFoldersResponse. */
|
2476
|
+
interface IListManagedFoldersResponse {
|
2477
|
+
|
2478
|
+
/** ListManagedFoldersResponse managedFolders */
|
2479
|
+
managedFolders?: (google.storage.control.v2.IManagedFolder[]|null);
|
2480
|
+
|
2481
|
+
/** ListManagedFoldersResponse nextPageToken */
|
2482
|
+
nextPageToken?: (string|null);
|
2483
|
+
}
|
2484
|
+
|
2485
|
+
/** Represents a ListManagedFoldersResponse. */
|
2486
|
+
class ListManagedFoldersResponse implements IListManagedFoldersResponse {
|
2487
|
+
|
2488
|
+
/**
|
2489
|
+
* Constructs a new ListManagedFoldersResponse.
|
2490
|
+
* @param [properties] Properties to set
|
2491
|
+
*/
|
2492
|
+
constructor(properties?: google.storage.control.v2.IListManagedFoldersResponse);
|
2493
|
+
|
2494
|
+
/** ListManagedFoldersResponse managedFolders. */
|
2495
|
+
public managedFolders: google.storage.control.v2.IManagedFolder[];
|
2496
|
+
|
2497
|
+
/** ListManagedFoldersResponse nextPageToken. */
|
2498
|
+
public nextPageToken: string;
|
2499
|
+
|
2500
|
+
/**
|
2501
|
+
* Creates a new ListManagedFoldersResponse instance using the specified properties.
|
2502
|
+
* @param [properties] Properties to set
|
2503
|
+
* @returns ListManagedFoldersResponse instance
|
2504
|
+
*/
|
2505
|
+
public static create(properties?: google.storage.control.v2.IListManagedFoldersResponse): google.storage.control.v2.ListManagedFoldersResponse;
|
2506
|
+
|
2507
|
+
/**
|
2508
|
+
* Encodes the specified ListManagedFoldersResponse message. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersResponse.verify|verify} messages.
|
2509
|
+
* @param message ListManagedFoldersResponse message or plain object to encode
|
2510
|
+
* @param [writer] Writer to encode to
|
2511
|
+
* @returns Writer
|
2512
|
+
*/
|
2513
|
+
public static encode(message: google.storage.control.v2.IListManagedFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2514
|
+
|
2515
|
+
/**
|
2516
|
+
* Encodes the specified ListManagedFoldersResponse message, length delimited. Does not implicitly {@link google.storage.control.v2.ListManagedFoldersResponse.verify|verify} messages.
|
2517
|
+
* @param message ListManagedFoldersResponse message or plain object to encode
|
2518
|
+
* @param [writer] Writer to encode to
|
2519
|
+
* @returns Writer
|
2520
|
+
*/
|
2521
|
+
public static encodeDelimited(message: google.storage.control.v2.IListManagedFoldersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
2522
|
+
|
2523
|
+
/**
|
2524
|
+
* Decodes a ListManagedFoldersResponse message from the specified reader or buffer.
|
2525
|
+
* @param reader Reader or buffer to decode from
|
2526
|
+
* @param [length] Message length if known beforehand
|
2527
|
+
* @returns ListManagedFoldersResponse
|
2528
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2529
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2530
|
+
*/
|
2531
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.storage.control.v2.ListManagedFoldersResponse;
|
2532
|
+
|
2533
|
+
/**
|
2534
|
+
* Decodes a ListManagedFoldersResponse message from the specified reader or buffer, length delimited.
|
2535
|
+
* @param reader Reader or buffer to decode from
|
2536
|
+
* @returns ListManagedFoldersResponse
|
2537
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2538
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2539
|
+
*/
|
2540
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.storage.control.v2.ListManagedFoldersResponse;
|
2541
|
+
|
2542
|
+
/**
|
2543
|
+
* Verifies a ListManagedFoldersResponse message.
|
2544
|
+
* @param message Plain object to verify
|
2545
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
2546
|
+
*/
|
2547
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
2548
|
+
|
2549
|
+
/**
|
2550
|
+
* Creates a ListManagedFoldersResponse message from a plain object. Also converts values to their respective internal types.
|
2551
|
+
* @param object Plain object
|
2552
|
+
* @returns ListManagedFoldersResponse
|
2553
|
+
*/
|
2554
|
+
public static fromObject(object: { [k: string]: any }): google.storage.control.v2.ListManagedFoldersResponse;
|
2555
|
+
|
2556
|
+
/**
|
2557
|
+
* Creates a plain object from a ListManagedFoldersResponse message. Also converts values to other types if specified.
|
2558
|
+
* @param message ListManagedFoldersResponse
|
2559
|
+
* @param [options] Conversion options
|
2560
|
+
* @returns Plain object
|
2561
|
+
*/
|
2562
|
+
public static toObject(message: google.storage.control.v2.ListManagedFoldersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
2563
|
+
|
2564
|
+
/**
|
2565
|
+
* Converts this ListManagedFoldersResponse to JSON.
|
2566
|
+
* @returns JSON object
|
2567
|
+
*/
|
2568
|
+
public toJSON(): { [k: string]: any };
|
2569
|
+
|
2570
|
+
/**
|
2571
|
+
* Gets the default type url for ListManagedFoldersResponse
|
2572
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
2573
|
+
* @returns The default type url
|
2574
|
+
*/
|
2575
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
2576
|
+
}
|
1791
2577
|
}
|
1792
2578
|
}
|
1793
2579
|
}
|