Class: Google::Apis::FirebaseV1beta1::AndroidApp

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

Overview

Details of a Firebase App for Android.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AndroidApp

Returns a new instance of AndroidApp.



240
241
242
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 240

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

Instance Attribute Details

#api_key_idString

The key_id of the GCP ApiKey associated with this App. If set must have no restrictions, or only have restrictions that are valid for the associated Firebase App. Cannot be set in create requests, instead an existing valid API Key will be chosen, or if no valid API Keys exist, one will be provisioned for you. Cannot be set to an empty value in update requests. Corresponds to the JSON property apiKeyId

Returns:

  • (String)


201
202
203
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 201

def api_key_id
  @api_key_id
end

#app_idString

Immutable. The globally unique, Firebase-assigned identifier for the AndroidApp. This identifier should be treated as an opaque token, as the data format is not specified. Corresponds to the JSON property appId

Returns:

  • (String)


208
209
210
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 208

def app_id
  @app_id
end

#display_nameString

The user-assigned display name for the AndroidApp. Corresponds to the JSON property displayName

Returns:

  • (String)


213
214
215
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 213

def display_name
  @display_name
end

#nameString

The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID * PROJECT_IDENTIFIER: the parent Project' s ProjectNumber ( recommended) or its ProjectId. Learn more about using project identifiers in Google's AIP 2510 standard. Note that the value for PROJECT_IDENTIFIER in any response body will be the ProjectId. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see appId). Corresponds to the JSON property name

Returns:

  • (String)


226
227
228
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 226

def name
  @name
end

#package_nameString

Immutable. The canonical package name of the Android app as would appear in the Google Play Developer Console. Corresponds to the JSON property packageName

Returns:

  • (String)


232
233
234
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 232

def package_name
  @package_name
end

#project_idString

Immutable. A user-assigned unique identifier of the parent FirebaseProject for the AndroidApp. Corresponds to the JSON property projectId

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 238

def project_id
  @project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



245
246
247
248
249
250
251
252
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 245

def update!(**args)
  @api_key_id = args[:api_key_id] if args.key?(:api_key_id)
  @app_id = args[:app_id] if args.key?(:app_id)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @package_name = args[:package_name] if args.key?(:package_name)
  @project_id = args[:project_id] if args.key?(:project_id)
end