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.



826
827
828
# File 'lib/google/apis/firestore_v1/classes.rb', line 826

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)


785
786
787
# File 'lib/google/apis/firestore_v1/classes.rb', line 785

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)


790
791
792
# File 'lib/google/apis/firestore_v1/classes.rb', line 790

def concurrency_mode
  @concurrency_mode
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)


797
798
799
# File 'lib/google/apis/firestore_v1/classes.rb', line 797

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)


806
807
808
# File 'lib/google/apis/firestore_v1/classes.rb', line 806

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)


812
813
814
# File 'lib/google/apis/firestore_v1/classes.rb', line 812

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)


818
819
820
# File 'lib/google/apis/firestore_v1/classes.rb', line 818

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)


824
825
826
# File 'lib/google/apis/firestore_v1/classes.rb', line 824

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



831
832
833
834
835
836
837
838
839
# File 'lib/google/apis/firestore_v1/classes.rb', line 831

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)
  @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)
end