Class: Google::Apis::DiscoveryengineV1beta::GoogleTypeTimeZone

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Represents a time zone from the IANA Time Zone Database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleTypeTimeZone

Returns a new instance of GoogleTypeTimeZone.



22978
22979
22980
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22978

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

IANA Time Zone Database time zone. For example "America/New_York". Corresponds to the JSON property id

Returns:

  • (String)


22971
22972
22973
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22971

def id
  @id
end

#versionString

Optional. IANA Time Zone Database version number. For example "2019a". Corresponds to the JSON property version

Returns:

  • (String)


22976
22977
22978
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22976

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22983
22984
22985
22986
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22983

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @version = args[:version] if args.key?(:version)
end