/* Copyright 2015 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. */ namespace Google.Apis.Auth.OAuth2 { /// /// Holder for credential parameters read from JSON credential file. /// Fields are union of parameters for all supported credential types. /// public class JsonCredentialParameters { /// /// UserCredential is created by the GCloud SDK tool when the user runs /// GCloud Auth Login. /// public const string AuthorizedUserCredentialType = "authorized_user"; /// /// ServiceAccountCredential is downloaded by the user from /// Google Developers Console. /// public const string ServiceAccountCredentialType = "service_account"; /// Type of the credential. [Newtonsoft.Json.JsonProperty("type")] public string Type { get; set; } /// /// Client Id associated with UserCredential created by /// GCloud Auth Login. /// [Newtonsoft.Json.JsonProperty("client_id")] public string ClientId { get; set; } /// /// Client Secret associated with UserCredential created by /// GCloud Auth Login. /// [Newtonsoft.Json.JsonProperty("client_secret")] public string ClientSecret { get; set; } /// /// Client Email associated with ServiceAccountCredential obtained from /// Google Developers Console /// [Newtonsoft.Json.JsonProperty("client_email")] public string ClientEmail { get; set; } /// /// Private Key associated with ServiceAccountCredential obtained from /// Google Developers Console. /// [Newtonsoft.Json.JsonProperty("private_key")] public string PrivateKey { get; set; } /// /// Refresh Token associated with UserCredential created by /// GCloud Auth Login. /// [Newtonsoft.Json.JsonProperty("refresh_token")] public string RefreshToken { get; set; } } }