generated/google-apis-servicemanagement_v1/lib/google/apis/servicemanagement_v1/service.rb
# Lists service operations that match the specified filter in the request.
# @param [String] filter
#   A string for filtering Operations. The following filter fields are supported: *
#   serviceName: Required. Only `=` operator is allowed. * startTime: The time
#   this job was started, in ISO 8601 format. Allowed operators are `>=`, `>`, `<=`
#   , and `<`. * status: Can be `done`, `in_progress`, or `failed`. Allowed
#   operators are `=`, and `!=`. Filter expression supports conjunction (AND) and
#   disjunction (OR) logical operators. However, the serviceName restriction must
#   be at the top-level and can only be combined with other restrictions via the
#   AND logical operator. Examples: * `serviceName=`some-service`.googleapis.com` *
#   `serviceName=`some-service`.googleapis.com AND startTime>="2017-02-01"` * `
#   serviceName=`some-service`.googleapis.com AND status=done` * `serviceName=`
#   some-service`.googleapis.com AND (status=done OR startTime>="2017-02-01")`
# @param [String] name
#   Not used.
# @param [Fixnum] page_size
#   The maximum number of operations to return. If unspecified, defaults to 50.
#   The maximum value is 100.
# @param [String] page_token
#   The standard list page token.
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ServicemanagementV1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicemanagementV1::ListOperationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Lists service operations that match the specified filter in the request.
Lists service operations that match the specified filter in the request .
def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/operations', options)
          command.response_representation = Google::Apis::ServicemanagementV1::ListOperationsResponse::Representation
          command.response_class = Google::Apis::ServicemanagementV1::ListOperationsResponse
          command.query['filter'] = filter unless filter.nil?
          command.query['name'] = name unless name.nil?
          command.query['pageSize'] = page_size unless page_size.nil?
          command.query['pageToken'] = page_token unless page_token.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def list_operations ( filter : nil , name : nil , page_size : nil , page_token : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :get , 'v1/operations' , options ) command . response_representation = Google :: Apis :: ServicemanagementV1 :: ListOperationsResponse :: Representation command . response_class = Google :: Apis :: ServicemanagementV1 :: ListOperationsResponse command . query [ 'filter' ] = filter unless filter . nil? command . query [ 'name' ] = name unless name . nil? command . query [ 'pageSize' ] = page_size unless page_size . nil? command . query [ 'pageToken' ] = page_token unless page_token . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Lists service operations that match the specified filter in the request.
Lists service operations that match the specified filter in the request .
None
Google::Apis::ServicemanagementV1::ListOperationsResponse
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
filter
name
page_size
page_token
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed