Class: Google::Apis::FirebaseV1beta1::Location

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

Overview

A GCP resource location that can be selected for a Project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location.



818
819
820
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 818

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

Instance Attribute Details

#featuresArray<String>

Products and services that are available in the GCP resource location. Corresponds to the JSON property features

Returns:

  • (Array<String>)


801
802
803
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 801

def features
  @features
end

#location_idString

The ID of the GCP resource location. It will be one of the available GCP resource locations. Corresponds to the JSON property locationId

Returns:

  • (String)


808
809
810
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 808

def location_id
  @location_id
end

#typeString

Indicates whether the GCP resource location is a regional or multi-regional location for data replication. Corresponds to the JSON property type

Returns:

  • (String)


816
817
818
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 816

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



823
824
825
826
827
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 823

def update!(**args)
  @features = args[:features] if args.key?(:features)
  @location_id = args[:location_id] if args.key?(:location_id)
  @type = args[:type] if args.key?(:type)
end