@@ -1680,72 +1680,6 @@ def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, include_la
1680
1680
execute_or_queue_command ( command , &block )
1681
1681
end
1682
1682
1683
- # Starts asynchronous cancellation on a long-running operation. The server makes
1684
- # a best effort to cancel the operation, but success is not guaranteed. If the
1685
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1686
- # Clients can use Operations.GetOperation or other methods to check whether the
1687
- # cancellation succeeded or whether the operation completed despite cancellation.
1688
- # On successful cancellation, the operation is not deleted; instead, it becomes
1689
- # an operation with an Operation.error value with a google.rpc.Status.code of `1`
1690
- # , corresponding to `Code.CANCELLED`.
1691
- # @param [String] name
1692
- # The name of the operation resource to be cancelled.
1693
- # @param [String] fields
1694
- # Selector specifying which fields to include in a partial response.
1695
- # @param [String] quota_user
1696
- # Available to use for quota purposes for server-side applications. Can be any
1697
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1698
- # @param [Google::Apis::RequestOptions] options
1699
- # Request-specific options
1700
- #
1701
- # @yield [result, err] Result & error if block supplied
1702
- # @yieldparam result [NilClass] No result returned for this method
1703
- # @yieldparam err [StandardError] error object if request failed
1704
- #
1705
- # @return [void]
1706
- #
1707
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1708
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1709
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1710
- def cancel_operation ( name , fields : nil , quota_user : nil , options : nil , &block )
1711
- command = make_simple_command ( :post , 'operations/{name}:cancel' , options )
1712
- command . params [ 'name' ] = name unless name . nil?
1713
- command . query [ 'fields' ] = fields unless fields . nil?
1714
- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
1715
- execute_or_queue_command ( command , &block )
1716
- end
1717
-
1718
- # Deletes a long-running operation. This method indicates that the client is no
1719
- # longer interested in the operation result. It does not cancel the operation.
1720
- # If the server doesn't support this method, it returns `google.rpc.Code.
1721
- # UNIMPLEMENTED`.
1722
- # @param [String] name
1723
- # The name of the operation resource to be deleted.
1724
- # @param [String] fields
1725
- # Selector specifying which fields to include in a partial response.
1726
- # @param [String] quota_user
1727
- # Available to use for quota purposes for server-side applications. Can be any
1728
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1729
- # @param [Google::Apis::RequestOptions] options
1730
- # Request-specific options
1731
- #
1732
- # @yield [result, err] Result & error if block supplied
1733
- # @yieldparam result [NilClass] No result returned for this method
1734
- # @yieldparam err [StandardError] error object if request failed
1735
- #
1736
- # @return [void]
1737
- #
1738
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1739
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1740
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1741
- def delete_operation ( name , fields : nil , quota_user : nil , options : nil , &block )
1742
- command = make_simple_command ( :delete , 'operations/{name}' , options )
1743
- command . params [ 'name' ] = name unless name . nil?
1744
- command . query [ 'fields' ] = fields unless fields . nil?
1745
- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
1746
- execute_or_queue_command ( command , &block )
1747
- end
1748
-
1749
1683
# Gets the latest state of a long-running operation. Clients can use this method
1750
1684
# to poll the operation result at intervals as recommended by the API service.
1751
1685
# @param [String] name
@@ -1777,46 +1711,6 @@ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1777
1711
execute_or_queue_command ( command , &block )
1778
1712
end
1779
1713
1780
- # Lists operations that match the specified filter in the request. If the server
1781
- # doesn't support this method, it returns `UNIMPLEMENTED`.
1782
- # @param [String] filter
1783
- # The standard list filter.
1784
- # @param [String] name
1785
- # The name of the operation's parent resource.
1786
- # @param [Fixnum] page_size
1787
- # The standard list page size.
1788
- # @param [String] page_token
1789
- # The standard list page token.
1790
- # @param [String] fields
1791
- # Selector specifying which fields to include in a partial response.
1792
- # @param [String] quota_user
1793
- # Available to use for quota purposes for server-side applications. Can be any
1794
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1795
- # @param [Google::Apis::RequestOptions] options
1796
- # Request-specific options
1797
- #
1798
- # @yield [result, err] Result & error if block supplied
1799
- # @yieldparam result [Google::Apis::DriveV3::ListOperationsResponse] parsed result object
1800
- # @yieldparam err [StandardError] error object if request failed
1801
- #
1802
- # @return [Google::Apis::DriveV3::ListOperationsResponse]
1803
- #
1804
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1805
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1806
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1807
- def list_operations ( filter : nil , name : nil , page_size : nil , page_token : nil , fields : nil , quota_user : nil , options : nil , &block )
1808
- command = make_simple_command ( :get , 'operations' , options )
1809
- command . response_representation = Google ::Apis ::DriveV3 ::ListOperationsResponse ::Representation
1810
- command . response_class = Google ::Apis ::DriveV3 ::ListOperationsResponse
1811
- command . query [ 'filter' ] = filter unless filter . nil?
1812
- command . query [ 'name' ] = name unless name . nil?
1813
- command . query [ 'pageSize' ] = page_size unless page_size . nil?
1814
- command . query [ 'pageToken' ] = page_token unless page_token . nil?
1815
- command . query [ 'fields' ] = fields unless fields . nil?
1816
- command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
1817
- execute_or_queue_command ( command , &block )
1818
- end
1819
-
1820
1714
# Creates a permission for a file or shared drive. **Warning:** Concurrent
1821
1715
# permissions operations on the same file are not supported; only the last
1822
1716
# update is applied.
0 commit comments