# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'date' require 'google/apis/core/base_service' require 'google/apis/core/json_representation' require 'google/apis/core/hashable' require 'google/apis/errors' module Google module Apis module FirebaseV1beta1 # All fields are required. class AddFirebaseRequest include Google::Apis::Core::Hashable # Deprecated. Instead, to set a Project's default GCP resource location, # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) # after you add Firebase resources to the GCP `Project`. # The ID of the Project's default GCP resource location. The location # must be one of the available [GCP resource # locations](https://firebase.google.com/docs/projects/locations). # Corresponds to the JSON property `locationId` # @return [String] attr_accessor :location_id # Deprecated. Instead, to link a Project with a Google Analytics # account, call # [`AddGoogleAnalytics`](../../v1beta1/projects/addGoogleAnalytics) # after you add Firebase resources to the GCP `Project`. # The region code (CLDR) that the account will use for Google Analytics # data #
For example: US, GB, or DE # In Java, use `com.google.i18n.identifiers.RegionCode`. # Corresponds to the JSON property `regionCode` # @return [String] attr_accessor :region_code # Deprecated. Instead, to link a Project with a Google Analytics # account, call # [`AddGoogleAnalytics`](../../v1beta1/projects/addGoogleAnalytics) # after you add Firebase resources to the GCP `Project`. # The time zone that the account will use for Google Analytics data. #
For example: America/Los_Angeles or Africa/Abidjan # Corresponds to the JSON property `timeZone` # @return [String] attr_accessor :time_zone def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @location_id = args[:location_id] if args.key?(:location_id) @region_code = args[:region_code] if args.key?(:region_code) @time_zone = args[:time_zone] if args.key?(:time_zone) end end # class AddGoogleAnalyticsRequest include Google::Apis::Core::Hashable # The ID for the existing # [Google Analytics account](http://www.google.com/analytics/) that you # want to link with the `FirebaseProject`. # Specifying this field will provision a new Google Analytics # property in your Google Analytics account and associate the new property # with the `FirebaseProject`. # Corresponds to the JSON property `analyticsAccountId` # @return [String] attr_accessor :analytics_account_id # The ID for the existing Google Analytics property that you want to # associate with the `FirebaseProject`. # Corresponds to the JSON property `analyticsPropertyId` # @return [String] attr_accessor :analytics_property_id def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @analytics_account_id = args[:analytics_account_id] if args.key?(:analytics_account_id) @analytics_property_id = args[:analytics_property_id] if args.key?(:analytics_property_id) end end # class AdminSdkConfig include Google::Apis::Core::Hashable # The default Firebase Realtime Database URL. # Corresponds to the JSON property `databaseURL` # @return [String] attr_accessor :database_url # The ID of the Project's default GCP resource location. The location is one # of the available # [GCP resource # locations](https://firebase.google.com/docs/projects/locations). # This field is omitted if the default GCP resource location has not been # finalized yet. To set a Project's default GCP resource location, # call [`FinalizeDefaultLocation`](../projects.defaultLocation/finalize) # after you add Firebase resources to the Project. # Corresponds to the JSON property `locationId` # @return [String] attr_accessor :location_id # Immutable. A user-assigned unique identifier for the `FirebaseProject`. # This identifier may appear in URLs or names for some Firebase resources # associated with the Project, but it should generally be treated as a # convenience alias to reference the Project. # Corresponds to the JSON property `projectId` # @return [String] attr_accessor :project_id # The default Cloud Storage for Firebase storage bucket name. # Corresponds to the JSON property `storageBucket` # @return [String] attr_accessor :storage_bucket def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @database_url = args[:database_url] if args.key?(:database_url) @location_id = args[:location_id] if args.key?(:location_id) @project_id = args[:project_id] if args.key?(:project_id) @storage_bucket = args[:storage_bucket] if args.key?(:storage_bucket) end end # class AnalyticsDetails include Google::Apis::Core::Hashable # Details of a Google Analytics property # Corresponds to the JSON property `analyticsProperty` # @return [Google::Apis::FirebaseV1beta1::AnalyticsProperty] attr_accessor :analytics_property #