#NEWLINE# def list_projects( self , filter_params = None , page_size = None ) : #NEWLINE# #INDENT# "List the projects visible to this client.\n\n        Example::\n\n            >>> from gcloud import resource_manager\n            >>> client = resource_manager.Client()\n            >>> for project in client.list_projects():\n            ...     print project.project_id\n\n        List all projects with label ``'environment'`` set to ``'prod'``\n        (filtering by labels)::\n\n            >>> from gcloud import resource_manager\n            >>> client = resource_manager.Client()\n            >>> env_filter = {'labels.environment': 'prod'}\n            >>> for project in client.list_projects(env_filter):\n            ...     print project.project_id\n\n        See:\n        https://cloud.google.com/resource-manager/reference/rest/v1beta1/projects/list\n\n        Complete filtering example::\n\n            >>> project_filter = {  # Return projects with...\n            ...     'name': 'My Project',  # name set to 'My Project'.\n            ...     'id': 'my-project-id',  # id set to 'my-project-id'.\n            ...     'labels.stage': 'prod',  # the label 'stage' set to 'prod'\n            ...     'labels.color': '*'  # a label 'color' set to anything.\n            ... }\n            >>> client.list_projects(project_filter)\n\n        :type filter_params: dict\n        :param filter_params: (Optional) A dictionary of filter options where\n                              each key is a property to filter on, and each\n                              value is the (case-insensitive) value to check\n                              (or the glob ``*`` to check for existence of the\n                              property). See the example above for more\n                              details.\n\n        :type page_size: int\n        :param page_size: (Optional) Maximum number of projects to return in a\n                          single page. If not passed, defaults to a value set\n                          by the API.\n\n        :rtype: :class:`_ProjectIterator`\n        :returns: A project iterator. The iterator will make multiple API\n                  requests if you continue iterating and there are more\n                  pages of results. Each item returned will be a.\n                  :class:`.Project`.\n        " #NEWLINE# extra_params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( filter_params is not None ) : #NEWLINE# #INDENT# extra_params [ 'pageSize' ] = page_size #NEWLINE# #UNINDENT# if ( filter_params is not None ) : #NEWLINE# #INDENT# extra_params [ 'filter' ] = filter_params #NEWLINE# #UNINDENT# return _ProjectIterator ( self , extra_params = extra_params )