Class: Google::Apis::GameservicesV1beta::Realm

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

Overview

A realm resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Realm

Returns a new instance of Realm.



1818
1819
1820
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1818

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

Instance Attribute Details

#create_timeString

Output only. The creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


1782
1783
1784
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1782

def create_time
  @create_time
end

#descriptionString

Human readable description of the realm. Corresponds to the JSON property description

Returns:

  • (String)


1787
1788
1789
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1787

def description
  @description
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


1792
1793
1794
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1792

def etag
  @etag
end

#labelsHash<String,String>

The labels associated with this realm. Each label is a key-value pair. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1797
1798
1799
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1797

def labels
  @labels
end

#nameString

The resource name of the realm, in the following form: projects/project/ locations/location/realms/realm`. For example,projects/my-project/ locations/location/realms/my-realm. Corresponds to the JSON propertyname`

Returns:

  • (String)


1804
1805
1806
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1804

def name
  @name
end

#time_zoneString

Required. Time zone where all policies targeting this realm are evaluated. The value of this field must be from the IANA time zone database: https://www.iana. org/time-zones. Corresponds to the JSON property timeZone

Returns:

  • (String)


1811
1812
1813
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1811

def time_zone
  @time_zone
end

#update_timeString

Output only. The last-modified time. Corresponds to the JSON property updateTime

Returns:

  • (String)


1816
1817
1818
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1816

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1823
1824
1825
1826
1827
1828
1829
1830
1831
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1823

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
  @update_time = args[:update_time] if args.key?(:update_time)
end