@google-cloud/storage-control 0.7.0 → 0.8.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/README.md +2 -1
- package/build/protos/google/storage/control/v2/storage_control.proto +56 -1
- package/build/protos/google/storage/v2/storage.proto +18 -13
- package/build/protos/protos.d.ts +246 -1
- package/build/protos/protos.js +620 -1
- package/build/protos/protos.json +102 -0
- package/build/src/storage_control_client.d.ts +49 -0
- package/build/src/storage_control_client.js +1112 -0
- package/build/src/storage_control_client.js.map +1 -1
- package/build/src/util/ast_utils.js +5 -1
- package/build/src/util/ast_utils.js.map +1 -1
- package/build/src/util/sample_fix_utils.d.ts +1 -0
- package/build/src/util/sample_fix_utils.js +40 -0
- package/build/src/util/sample_fix_utils.js.map +1 -0
- package/build/src/util/storage_control_utils.js +2 -0
- package/build/src/util/storage_control_utils.js.map +1 -1
- package/build/src/v2/gapic_metadata.json +10 -0
- package/build/src/v2/index.js +1 -1
- package/build/src/v2/storage_client.js +1 -1
- package/build/src/v2/storage_control_client.d.ts +49 -0
- package/build/src/v2/storage_control_client.js +71 -1
- package/build/src/v2/storage_control_client.js.map +1 -1
- package/build/src/v2/storage_control_client_config.json +5 -0
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -143,6 +143,36 @@
|
|
|
143
143
|
}
|
|
144
144
|
]
|
|
145
145
|
},
|
|
146
|
+
"DeleteFolderRecursive": {
|
|
147
|
+
"requestType": "DeleteFolderRecursiveRequest",
|
|
148
|
+
"responseType": "google.longrunning.Operation",
|
|
149
|
+
"options": {
|
|
150
|
+
"(google.api.routing).routing_parameters.field": "name",
|
|
151
|
+
"(google.api.routing).routing_parameters.path_template": "{bucket=projects/*/buckets/*}/**",
|
|
152
|
+
"(google.api.method_signature)": "name",
|
|
153
|
+
"(google.longrunning.operation_info).response_type": "google.protobuf.Empty",
|
|
154
|
+
"(google.longrunning.operation_info).metadata_type": "DeleteFolderRecursiveMetadata"
|
|
155
|
+
},
|
|
156
|
+
"parsedOptions": [
|
|
157
|
+
{
|
|
158
|
+
"(google.api.routing)": {
|
|
159
|
+
"routing_parameters": {
|
|
160
|
+
"field": "name",
|
|
161
|
+
"path_template": "{bucket=projects/*/buckets/*}/**"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"(google.api.method_signature)": "name"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"(google.longrunning.operation_info)": {
|
|
170
|
+
"response_type": "google.protobuf.Empty",
|
|
171
|
+
"metadata_type": "DeleteFolderRecursiveMetadata"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
146
176
|
"GetStorageLayout": {
|
|
147
177
|
"requestType": "GetStorageLayoutRequest",
|
|
148
178
|
"responseType": "StorageLayout",
|
|
@@ -944,6 +974,54 @@
|
|
|
944
974
|
}
|
|
945
975
|
}
|
|
946
976
|
},
|
|
977
|
+
"DeleteFolderRecursiveRequest": {
|
|
978
|
+
"oneofs": {
|
|
979
|
+
"_ifMetagenerationMatch": {
|
|
980
|
+
"oneof": [
|
|
981
|
+
"ifMetagenerationMatch"
|
|
982
|
+
]
|
|
983
|
+
},
|
|
984
|
+
"_ifMetagenerationNotMatch": {
|
|
985
|
+
"oneof": [
|
|
986
|
+
"ifMetagenerationNotMatch"
|
|
987
|
+
]
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
"fields": {
|
|
991
|
+
"name": {
|
|
992
|
+
"type": "string",
|
|
993
|
+
"id": 1,
|
|
994
|
+
"options": {
|
|
995
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
996
|
+
"(google.api.resource_reference).type": "storage.googleapis.com/Folder"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"ifMetagenerationMatch": {
|
|
1000
|
+
"type": "int64",
|
|
1001
|
+
"id": 2,
|
|
1002
|
+
"options": {
|
|
1003
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
1004
|
+
"proto3_optional": true
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
"ifMetagenerationNotMatch": {
|
|
1008
|
+
"type": "int64",
|
|
1009
|
+
"id": 3,
|
|
1010
|
+
"options": {
|
|
1011
|
+
"(google.api.field_behavior)": "OPTIONAL",
|
|
1012
|
+
"proto3_optional": true
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
"requestId": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"id": 4,
|
|
1018
|
+
"options": {
|
|
1019
|
+
"(google.api.field_info).format": "UUID4",
|
|
1020
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
947
1025
|
"CommonLongRunningOperationMetadata": {
|
|
948
1026
|
"fields": {
|
|
949
1027
|
"createTime": {
|
|
@@ -1006,6 +1084,18 @@
|
|
|
1006
1084
|
}
|
|
1007
1085
|
}
|
|
1008
1086
|
},
|
|
1087
|
+
"DeleteFolderRecursiveMetadata": {
|
|
1088
|
+
"fields": {
|
|
1089
|
+
"commonMetadata": {
|
|
1090
|
+
"type": "CommonLongRunningOperationMetadata",
|
|
1091
|
+
"id": 1
|
|
1092
|
+
},
|
|
1093
|
+
"folderId": {
|
|
1094
|
+
"type": "string",
|
|
1095
|
+
"id": 2
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1009
1099
|
"StorageLayout": {
|
|
1010
1100
|
"options": {
|
|
1011
1101
|
"(google.api.resource).type": "storage.googleapis.com/StorageLayout",
|
|
@@ -2779,6 +2869,11 @@
|
|
|
2779
2869
|
"oneof": [
|
|
2780
2870
|
"ifMetagenerationMatch"
|
|
2781
2871
|
]
|
|
2872
|
+
},
|
|
2873
|
+
"_deleteSourceObjects": {
|
|
2874
|
+
"oneof": [
|
|
2875
|
+
"deleteSourceObjects"
|
|
2876
|
+
]
|
|
2782
2877
|
}
|
|
2783
2878
|
},
|
|
2784
2879
|
"fields": {
|
|
@@ -2839,6 +2934,13 @@
|
|
|
2839
2934
|
"options": {
|
|
2840
2935
|
"(google.api.field_behavior)": "OPTIONAL"
|
|
2841
2936
|
}
|
|
2937
|
+
},
|
|
2938
|
+
"deleteSourceObjects": {
|
|
2939
|
+
"type": "bool",
|
|
2940
|
+
"id": 11,
|
|
2941
|
+
"options": {
|
|
2942
|
+
"proto3_optional": true
|
|
2943
|
+
}
|
|
2842
2944
|
}
|
|
2843
2945
|
},
|
|
2844
2946
|
"nested": {
|
|
@@ -801,6 +801,55 @@ export declare class StorageControlClient {
|
|
|
801
801
|
* region_tag:storage_v2_generated_StorageControl_RenameFolder_async
|
|
802
802
|
*/
|
|
803
803
|
checkRenameFolderProgress(name: string): Promise<LROperation<protos.google.storage.control.v2.Folder, protos.google.storage.control.v2.RenameFolderMetadata>>;
|
|
804
|
+
/**
|
|
805
|
+
* Deletes a folder recursively. This operation is only applicable to a
|
|
806
|
+
* hierarchical namespace enabled bucket.
|
|
807
|
+
*
|
|
808
|
+
* @param {Object} request
|
|
809
|
+
* The request object that will be sent.
|
|
810
|
+
* @param {string} request.name
|
|
811
|
+
* Required. Name of the folder being deleted, however all of its contents
|
|
812
|
+
* will be deleted too. Format:
|
|
813
|
+
* `projects/{project}/buckets/{bucket}/folders/{folder}`
|
|
814
|
+
* @param {number} [request.ifMetagenerationMatch]
|
|
815
|
+
* Optional. Makes the operation only succeed conditional on whether the root
|
|
816
|
+
* folder's current metageneration matches the given value.
|
|
817
|
+
* @param {number} [request.ifMetagenerationNotMatch]
|
|
818
|
+
* Optional. Makes the operation only succeed conditional on whether the root
|
|
819
|
+
* folder's current metageneration does not match the given value.
|
|
820
|
+
* @param {string} [request.requestId]
|
|
821
|
+
* Optional. A unique identifier for this request. UUID is the recommended
|
|
822
|
+
* format, but other formats are still accepted.
|
|
823
|
+
* @param {object} [options]
|
|
824
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
825
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
826
|
+
* The first element of the array is an object representing
|
|
827
|
+
* a long running operation. Its `promise()` method returns a promise
|
|
828
|
+
* you can `await` for.
|
|
829
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
830
|
+
* for more details and examples.
|
|
831
|
+
* @example <caption>include:samples/generated/v2/storage_control.delete_folder_recursive.js</caption>
|
|
832
|
+
* region_tag:storage_v2_generated_StorageControl_DeleteFolderRecursive_async
|
|
833
|
+
*/
|
|
834
|
+
deleteFolderRecursive(request?: protos.google.storage.control.v2.IDeleteFolderRecursiveRequest, options?: CallOptions): Promise<[
|
|
835
|
+
LROperation<protos.google.protobuf.IEmpty, protos.google.storage.control.v2.IDeleteFolderRecursiveMetadata>,
|
|
836
|
+
protos.google.longrunning.IOperation | undefined,
|
|
837
|
+
{} | undefined
|
|
838
|
+
]>;
|
|
839
|
+
deleteFolderRecursive(request: protos.google.storage.control.v2.IDeleteFolderRecursiveRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.storage.control.v2.IDeleteFolderRecursiveMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
840
|
+
deleteFolderRecursive(request: protos.google.storage.control.v2.IDeleteFolderRecursiveRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.storage.control.v2.IDeleteFolderRecursiveMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
841
|
+
/**
|
|
842
|
+
* Check the status of the long running operation returned by `deleteFolderRecursive()`.
|
|
843
|
+
* @param {String} name
|
|
844
|
+
* The operation name that will be passed.
|
|
845
|
+
* @returns {Promise} - The promise which resolves to an object.
|
|
846
|
+
* The decoded operation object has result and metadata field to get information from.
|
|
847
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
848
|
+
* for more details and examples.
|
|
849
|
+
* @example <caption>include:samples/generated/v2/storage_control.delete_folder_recursive.js</caption>
|
|
850
|
+
* region_tag:storage_v2_generated_StorageControl_DeleteFolderRecursive_async
|
|
851
|
+
*/
|
|
852
|
+
checkDeleteFolderRecursiveProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.storage.control.v2.DeleteFolderRecursiveMetadata>>;
|
|
804
853
|
/**
|
|
805
854
|
* Creates an Anywhere Cache instance.
|
|
806
855
|
*
|