@@ -1223,6 +1223,74 @@ def list_project_location_operations(name, filter: nil, page_size: nil, page_tok
12231223 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
12241224 execute_or_queue_command ( command , &block )
12251225 end
1226+
1227+ # Acquires a share synchronously from the pre-provisioned share pool.
1228+ # @param [String] parent
1229+ # Required. The parent share pool path, in the format `projects/`project`/
1230+ # locations/`location`/sharePools/`share_pool``.
1231+ # @param [Google::Apis::FileV1beta1::AcquireShareRequest] acquire_share_request_object
1232+ # @param [String] fields
1233+ # Selector specifying which fields to include in a partial response.
1234+ # @param [String] quota_user
1235+ # Available to use for quota purposes for server-side applications. Can be any
1236+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1237+ # @param [Google::Apis::RequestOptions] options
1238+ # Request-specific options
1239+ #
1240+ # @yield [result, err] Result & error if block supplied
1241+ # @yieldparam result [Google::Apis::FileV1beta1::AcquireShareResponse] parsed result object
1242+ # @yieldparam err [StandardError] error object if request failed
1243+ #
1244+ # @return [Google::Apis::FileV1beta1::AcquireShareResponse]
1245+ #
1246+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1247+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1248+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1249+ def acquire_share_pool_share ( parent , acquire_share_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
1250+ command = make_simple_command ( :post , 'v1beta1/{+parent}:acquireShare' , options )
1251+ command . request_representation = Google ::Apis ::FileV1beta1 ::AcquireShareRequest ::Representation
1252+ command . request_object = acquire_share_request_object
1253+ command . response_representation = Google ::Apis ::FileV1beta1 ::AcquireShareResponse ::Representation
1254+ command . response_class = Google ::Apis ::FileV1beta1 ::AcquireShareResponse
1255+ command . params [ 'parent' ] = parent unless parent . nil?
1256+ command . query [ 'fields' ] = fields unless fields . nil?
1257+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
1258+ execute_or_queue_command ( command , &block )
1259+ end
1260+
1261+ # Releases a share synchronously, marking it for background scrubbing.
1262+ # @param [String] parent
1263+ # Required. The parent share pool path, in the format `projects/`project`/
1264+ # locations/`location`/sharePools/`share_pool``.
1265+ # @param [Google::Apis::FileV1beta1::ReleaseShareRequest] release_share_request_object
1266+ # @param [String] fields
1267+ # Selector specifying which fields to include in a partial response.
1268+ # @param [String] quota_user
1269+ # Available to use for quota purposes for server-side applications. Can be any
1270+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1271+ # @param [Google::Apis::RequestOptions] options
1272+ # Request-specific options
1273+ #
1274+ # @yield [result, err] Result & error if block supplied
1275+ # @yieldparam result [Google::Apis::FileV1beta1::ReleaseShareResponse] parsed result object
1276+ # @yieldparam err [StandardError] error object if request failed
1277+ #
1278+ # @return [Google::Apis::FileV1beta1::ReleaseShareResponse]
1279+ #
1280+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1281+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1282+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1283+ def release_share_pool_share ( parent , release_share_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
1284+ command = make_simple_command ( :post , 'v1beta1/{+parent}:releaseShare' , options )
1285+ command . request_representation = Google ::Apis ::FileV1beta1 ::ReleaseShareRequest ::Representation
1286+ command . request_object = release_share_request_object
1287+ command . response_representation = Google ::Apis ::FileV1beta1 ::ReleaseShareResponse ::Representation
1288+ command . response_class = Google ::Apis ::FileV1beta1 ::ReleaseShareResponse
1289+ command . params [ 'parent' ] = parent unless parent . nil?
1290+ command . query [ 'fields' ] = fields unless fields . nil?
1291+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
1292+ execute_or_queue_command ( command , &block )
1293+ end
12261294
12271295 protected
12281296
0 commit comments