Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
ef29883
An initial stub.
weixifan Oct 26, 2018
8de2020
Reindent to 4 spaces; adjust column width
weixifan Oct 31, 2018
249b614
Remove unused imports
weixifan Oct 31, 2018
dd4894d
Handling HTTP errors from local metadata service
hiranya911 Nov 1, 2018
67ab552
Decoding the error response correctly
hiranya911 Nov 1, 2018
d0d5791
Merge branch 'hkj-travis-fix' into weixifan-project-management
weixifan Nov 1, 2018
be81da3
Writing the first RPC: getAndroidAppMetadata.
weixifan Nov 1, 2018
a5e294c
Resolving Lint issues.
weixifan Nov 1, 2018
2fd7878
Implement list_android_apps and create_android_app; refactor RPC-maki…
weixifan Nov 2, 2018
06de145
Add an integration test
weixifan Nov 2, 2018
c0bdf14
Fix a comment.
weixifan Nov 2, 2018
b83001a
Fix a bug where the statement to increment the attempt number occurs …
weixifan Nov 2, 2018
0911059
Addressing reviewer comments.
weixifan Nov 6, 2018
cde0367
Removing OperationPoller.
weixifan Nov 7, 2018
2c0710a
Fix lint issues.
weixifan Nov 7, 2018
7631ab6
Implement iOS equivalents of existing methods; implement set_display_…
weixifan Nov 7, 2018
532743d
Merge branch 'master' into weixifan-project-management
weixifan Nov 7, 2018
956dfca
Merge branch 'weixifan-project-management' into weixifan-project-mana…
weixifan Nov 7, 2018
15f0d50
Merge branch 'weixifan-project-management-2' into weixifan-project-ma…
weixifan Nov 7, 2018
c004b8c
Merge branch 'weixifan-project-management-3' into weixifan-project-ma…
weixifan Nov 7, 2018
1e60924
An initial stub.
weixifan Oct 26, 2018
7cb8518
Reindent to 4 spaces; adjust column width
weixifan Oct 31, 2018
b876b8c
Remove unused imports
weixifan Oct 31, 2018
783127e
Writing the first RPC: getAndroidAppMetadata.
weixifan Nov 1, 2018
26e8ba2
Resolving Lint issues.
weixifan Nov 1, 2018
246ceb8
Implement list_android_apps and create_android_app; refactor RPC-maki…
weixifan Nov 2, 2018
59cec74
Add an integration test
weixifan Nov 2, 2018
7d90594
Fix a comment.
weixifan Nov 2, 2018
b9c7587
Fix a bug where the statement to increment the attempt number occurs …
weixifan Nov 2, 2018
04ecbfd
Addressing reviewer comments.
weixifan Nov 6, 2018
e483e83
Removing OperationPoller.
weixifan Nov 7, 2018
b9fcf3a
Fix lint issues.
weixifan Nov 7, 2018
188ad37
Merge branch 'weixifan-project-management-3' of github.com:firebase/f…
weixifan Nov 7, 2018
50cb954
Implement iOS equivalents of existing methods; implement set_display_…
weixifan Nov 7, 2018
903266f
Merge branch 'weixifan-project-management-4' of github.com:firebase/f…
weixifan Nov 7, 2018
17b3fe8
Addressing reviewer comments.
weixifan Nov 7, 2018
1e83997
Fix staticmethod.
weixifan Nov 7, 2018
e4e3a4d
Add the ShaCertificate class. Fully implement methods pertaining to A…
weixifan Nov 8, 2018
b00879d
Implement get_config for both iOS and Android.
weixifan Nov 8, 2018
babdf70
Merge
weixifan Nov 8, 2018
f05b874
Merge branch 'weixifan-project-management-4' into weixifan-project-ma…
weixifan Nov 8, 2018
a3b6ff6
Convert to pytest.raises
weixifan Nov 9, 2018
595ec78
Fix the maximum page size.
weixifan Nov 9, 2018
99f18aa
Merge branch 'weixifan-project-management-4' into weixifan-project-ma…
weixifan Nov 9, 2018
aec320c
Fix the naming of updateMask to be consistent with precedent.
weixifan Nov 9, 2018
60c49e7
Merge branch 'weixifan-project-management-4' into weixifan-project-ma…
weixifan Nov 9, 2018
dc5ed75
Implement __eq__ and __hash__ for ShaCertificate
weixifan Nov 9, 2018
d686ce0
Addressing reviewer comments.
weixifan Nov 9, 2018
f1d7a3b
Fix a subtle Python 2.7 vs 3 compatibility problem.
weixifan Nov 10, 2018
4e59232
Fix lint
weixifan Nov 10, 2018
4e726d9
Fix lint
weixifan Nov 10, 2018
76280c8
Addressing reviewer comment.
weixifan Nov 16, 2018
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
An initial stub.
  • Loading branch information
weixifan committed Oct 26, 2018
commit ef298837a29d7da3f314b45c9a7e3786e675d5ae
46 changes: 46 additions & 0 deletions firebase_admin/project_management.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Firebase Project Management module.

This module enables management of resources in Firebase projects, such as
Android and iOS Apps.
"""

import requests
import six

from firebase_admin import _http_client
from firebase_admin import _utils


_PROJECT_MANAGEMENT_SERVICE_URL = 'https://firebase.googleapis.com'
_PROJECT_MANAGEMENT_ATTRIBUTE = '_project_management'


def _get_project_management_service(app):
return _utils.get_app_service(
app, _PROJECT_MANAGEMENT_ATTRIBUTE, _ProjectManagementService)


class ApiCallError(Exception):
"""An error arisen from using the Firebase Project Management Service."""

def __init__(self, message, error):
Exception.__init__(self, message)
self.detail = error


class _ProjectManagementService(object):
pass