| Index: gslib/cred_types.py
|
| ===================================================================
|
| --- gslib/cred_types.py (revision 33376)
|
| +++ gslib/cred_types.py (working copy)
|
| @@ -1,3 +1,4 @@
|
| +# -*- coding: utf-8 -*-
|
| # Copyright 2013 Google Inc. All Rights Reserved.
|
| #
|
| # Licensed under the Apache License, Version 2.0 (the "License");
|
| @@ -11,6 +12,13 @@
|
| # 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.
|
| +"""Defines gsutil-supported credential types."""
|
|
|
| -class CredTypes:
|
| - HMAC, OAUTH2_SERVICE_ACCOUNT, OAUTH2_USER_ACCOUNT = range(3)
|
| +from __future__ import absolute_import
|
| +
|
| +
|
| +class CredTypes(object):
|
| + HMAC = "HMAC"
|
| + OAUTH2_SERVICE_ACCOUNT = "OAuth 2.0 Service Account"
|
| + OAUTH2_USER_ACCOUNT = "Oauth 2.0 User Account"
|
| + GCE = "GCE"
|
|
|