class Riffer::Config::GoogleCloud
rbs_inline: enabled
Attributes
A googleauth credentials object; nil resolves Application Default Credentials.
The default +โglobalโ+ endpoint routes requests to any region, so it carries no data-residency guarantee.
Public Class Methods
Source
# File lib/riffer/config/google_cloud.rb, line 19 def initialize @project_id = nil @location = "global" @credentials = nil @client = nil end
Public Instance Methods
Source
# File lib/riffer/config/google_cloud.rb, line 35 def location=(value) @location = Riffer::Helpers::Validate.optional_string(value, attribute: "location") || "global" end
nil restores the +โglobalโ+ default.
Source
# File lib/riffer/config/google_cloud.rb, line 28 def project_id=(value) @project_id = Riffer::Helpers::Validate.optional_string(value, attribute: "project_id") end