value:"installed".freeze Toplevel JSON key for the an installed app configuration.
Must include client_id and client_secret subkeys if present.
WEB_APP
value:"web".freeze Toplevel JSON key for the a webapp configuration.
Must include client_id and client_secret subkeys if present.
CLIENT_ID
value:"client_id".freeze JSON key for the client ID within an app configuration.
CLIENT_SECRET
value:"client_secret".freeze JSON key for the client secret within an app configuration.
MISSING_TOP_LEVEL_ELEMENT_ERROR
value:"Expected top level property 'installed' or 'web' to be present.".freeze An error message raised when none of the expected toplevel properties
can be found.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# googleauth - Class Google::Auth::ClientId (v1.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.15.0 (latest)](/ruby/docs/reference/googleauth/latest/Google-Auth-ClientId)\n- [1.14.0](/ruby/docs/reference/googleauth/1.14.0/Google-Auth-ClientId)\n- [1.13.1](/ruby/docs/reference/googleauth/1.13.1/Google-Auth-ClientId)\n- [1.12.2](/ruby/docs/reference/googleauth/1.12.2/Google-Auth-ClientId) \nReference documentation and code samples for the googleauth class Google::Auth::ClientId.\n\nRepresentation of an application's identity for user authorization flows. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### .default\n\n def self.default()\n\nReturns the value of attribute default.\n\n### .default=\n\n def self.default=(value)\n\nSets the attribute default\n\n### .from_file\n\n def self.from_file(file) -\u003e Google::Auth::ClientID\n\nConstructs a Client ID from a JSON file downloaded from the\nGoogle Developers Console. \n**Parameter**\n\n- **file** (String, File) --- Path of file to read from \n**Returns**\n\n- (Google::Auth::ClientID) \n**Raises**\n\n- ([Google::Auth::InitializationError](./Google-Auth-InitializationError)) --- If file is nil\n\n### .from_hash\n\n def self.from_hash(config) -\u003e Google::Auth::ClientID\n\nConstructs a Client ID from a previously loaded JSON file. The hash\nstructure should match the expected JSON format. \n**Parameter**\n\n- **config** (hash) --- Parsed contents of the JSON file \n**Returns**\n\n- (Google::Auth::ClientID) \n**Raises**\n\n- ([Google::Auth::InitializationError](./Google-Auth-InitializationError)) --- If config is nil or missing required elements\n\n### #id\n\n def id() -\u003e String\n\nText identifier of the client ID \n**Returns**\n\n- (String)\n\n### #initialize\n\n def initialize(id, secret) -\u003e ClientId\n\nInitialize the Client ID. Both id and secret must be non-nil. \n**Parameters**\n\n- **id** (String) --- Text identifier of the client ID\n- **secret** (String) --- Secret associated with the client ID \n**Returns**\n\n- ([ClientId](./Google-Auth-ClientId)) --- a new instance of ClientId \n**Raises**\n\n- ([Google::Auth::InitializationError](./Google-Auth-InitializationError)) --- If id or secret is nil\n\n### #secret\n\n def secret() -\u003e String\n\nSecret associated with the client ID \n**Returns**\n\n- (String)\n\nConstants\n---------\n\n### INSTALLED_APP\n\n**value:** \"installed\".freeze \nToplevel JSON key for the an installed app configuration.\nMust include client_id and client_secret subkeys if present.\n\n### WEB_APP\n\n**value:** \"web\".freeze \nToplevel JSON key for the a webapp configuration.\nMust include client_id and client_secret subkeys if present.\n\n### CLIENT_ID\n\n**value:** \"client_id\".freeze \nJSON key for the client ID within an app configuration.\n\n### CLIENT_SECRET\n\n**value:** \"client_secret\".freeze \nJSON key for the client secret within an app configuration.\n\n### MISSING_TOP_LEVEL_ELEMENT_ERROR\n\n**value:** \"Expected top level property 'installed' or 'web' to be present.\".freeze \nAn error message raised when none of the expected toplevel properties\ncan be found."]]