generated/google-apis-cloudresourcemanager_v2beta1/lib/google/apis/cloudresourcemanager_v2beta1/service.rb
# Lists the Folders that are direct descendants of supplied parent resource.
# List provides a strongly consistent view of the Folders underneath the
# specified parent resource. List returns Folders sorted based upon the (
# ascending) lexical ordering of their display_name. The caller must have `
# resourcemanager.folders.list` permission on the identified parent.
# @param [Fixnum] page_size
#   Optional. The maximum number of Folders to return in the response. The server
#   can return fewer folders than requested. If unspecified, server picks an
#   appropriate default.
# @param [String] page_token
#   Optional. A pagination token returned from a previous call to `ListFolders`
#   that indicates where this listing should continue from.
# @param [String] parent
#   Required. The resource name of the Organization or Folder whose Folders are
#   being listed. Must be of the form `folders/`folder_id`` or `organizations/`
#   org_id``. Access to this method is controlled by checking the `resourcemanager.
#   folders.list` permission on the `parent`.
# @param [Boolean] show_deleted
#   Optional. Controls whether Folders in the DELETE_REQUESTED state should be
#   returned. Defaults to false.
# @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::CloudresourcemanagerV2beta1::ListFoldersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV2beta1::ListFoldersResponse]
#
# @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 the Folders that are direct descendants of supplied parent resource.
List provides a strongly consistent view of the Folders underneath the
specified parent resource. List returns Folders sorted based upon the (
ascending) lexical ordering of their display_name. The caller must have `
resourcemanager.folders.list` permission on the identified parent.
Lists the Folders that are direct descendants of supplied parent resource . List provides a strongly consistent view of the Folders underneath the specified parent resource . List returns Folders sorted based upon the ( ascending ) lexical ordering of their display_name . The caller must have ` resourcemanager . folders . list ` permission on the identified parent .
def list_folders(page_size: nil, page_token: nil, parent: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v2/folders', options)
          command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::ListFoldersResponse::Representation
          command.response_class = Google::Apis::CloudresourcemanagerV2beta1::ListFoldersResponse
          command.query['pageSize'] = page_size unless page_size.nil?
          command.query['pageToken'] = page_token unless page_token.nil?
          command.query['parent'] = parent unless parent.nil?
          command.query['showDeleted'] = show_deleted unless show_deleted.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_folders ( page_size : nil , page_token : nil , parent : nil , show_deleted : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :get , 'v2/folders' , options ) command . response_representation = Google :: Apis :: CloudresourcemanagerV2beta1 :: ListFoldersResponse :: Representation command . response_class = Google :: Apis :: CloudresourcemanagerV2beta1 :: ListFoldersResponse command . query [ 'pageSize' ] = page_size unless page_size . nil? command . query [ 'pageToken' ] = page_token unless page_token . nil? command . query [ 'parent' ] = parent unless parent . nil? command . query [ 'showDeleted' ] = show_deleted unless show_deleted . 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 the Folders that are direct descendants of supplied parent resource.
Lists the Folders that are direct descendants of supplied parent resource .
None
Google::Apis::CloudresourcemanagerV2beta1::ListFoldersResponse
[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
page_size
page_token
parent
show_deleted
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