Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1Database

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

Overview

A Cloud Firestore Database. Currently only one database is allowed per cloud project; this database must have a database_id of '(default)'.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1Database

Returns a new instance of GoogleFirestoreAdminV1Database.



1158
1159
1160
# File 'lib/google/apis/firestore_v1/classes.rb', line 1158

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

Instance Attribute Details

#app_engine_integration_modeString

The App Engine integration mode to use for this database. Corresponds to the JSON property appEngineIntegrationMode

Returns:

  • (String)


1094
1095
1096
# File 'lib/google/apis/firestore_v1/classes.rb', line 1094

def app_engine_integration_mode
  @app_engine_integration_mode
end

#concurrency_modeString

The concurrency control mode to use for this database. Corresponds to the JSON property concurrencyMode

Returns:

  • (String)


1099
1100
1101
# File 'lib/google/apis/firestore_v1/classes.rb', line 1099

def concurrency_mode
  @concurrency_mode
end

#create_timeString

Output only. The timestamp at which this database was created. Databases created before 2016 do not populate create_time. Corresponds to the JSON property createTime

Returns:

  • (String)


1105
1106
1107
# File 'lib/google/apis/firestore_v1/classes.rb', line 1105

def create_time
  @create_time
end

#delete_protection_stateString

State of delete protection for the database. Corresponds to the JSON property deleteProtectionState

Returns:

  • (String)


1110
1111
1112
# File 'lib/google/apis/firestore_v1/classes.rb', line 1110

def delete_protection_state
  @delete_protection_state
end

#etagString

This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up- to-date value before proceeding. Corresponds to the JSON property etag

Returns:

  • (String)


1117
1118
1119
# File 'lib/google/apis/firestore_v1/classes.rb', line 1117

def etag
  @etag
end

#key_prefixString

Output only. The key_prefix for this database. This key_prefix is used, in combination with the project id ("~") to construct the application id that is returned from the Cloud Datastore APIs in Google App Engine first generation runtimes. This value may be empty in which case the appid to use for URL- encoded keys is the project_id (eg: foo instead of v~foo). Corresponds to the JSON property keyPrefix

Returns:

  • (String)


1126
1127
1128
# File 'lib/google/apis/firestore_v1/classes.rb', line 1126

def key_prefix
  @key_prefix
end

#location_idString

The location of the database. Available databases are listed at https://cloud. google.com/firestore/docs/locations. Corresponds to the JSON property locationId

Returns:

  • (String)


1132
1133
1134
# File 'lib/google/apis/firestore_v1/classes.rb', line 1132

def location_id
  @location_id
end

#nameString

The resource name of the Database. Format: projects/project/databases/ database` Corresponds to the JSON propertyname`

Returns:

  • (String)


1138
1139
1140
# File 'lib/google/apis/firestore_v1/classes.rb', line 1138

def name
  @name
end

#typeString

The type of the database. See https://cloud.google.com/datastore/docs/ firestore-or-datastore for information about how to choose. Corresponds to the JSON property type

Returns:

  • (String)


1144
1145
1146
# File 'lib/google/apis/firestore_v1/classes.rb', line 1144

def type
  @type
end

#uidString

Output only. The system-generated UUID4 for this Database. Corresponds to the JSON property uid

Returns:

  • (String)


1149
1150
1151
# File 'lib/google/apis/firestore_v1/classes.rb', line 1149

def uid
  @uid
end

#update_timeString

Output only. The timestamp at which this database was most recently updated. Note this only includes updates to the database resource and not data contained by the database. Corresponds to the JSON property updateTime

Returns:

  • (String)


1156
1157
1158
# File 'lib/google/apis/firestore_v1/classes.rb', line 1156

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
# File 'lib/google/apis/firestore_v1/classes.rb', line 1163

def update!(**args)
  @app_engine_integration_mode = args[:app_engine_integration_mode] if args.key?(:app_engine_integration_mode)
  @concurrency_mode = args[:concurrency_mode] if args.key?(:concurrency_mode)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_protection_state = args[:delete_protection_state] if args.key?(:delete_protection_state)
  @etag = args[:etag] if args.key?(:etag)
  @key_prefix = args[:key_prefix] if args.key?(:key_prefix)
  @location_id = args[:location_id] if args.key?(:location_id)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end