Class: Google::Apis::FirebaseV1beta1::ShaCertificate

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

A SHA-1 or SHA-256 certificate associated with the AndroidApp.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShaCertificate

Returns a new instance of ShaCertificate.



1397
1398
1399
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1397

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

Instance Attribute Details

#cert_typeString

The type of SHA certificate encoded in the hash. Corresponds to the JSON property certType

Returns:

  • (String)


1375
1376
1377
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1375

def cert_type
  @cert_type
end

#nameString

The resource name of the ShaCertificate for the AndroidApp, in the format: projects/PROJECT_IDENTIFIER/androidApps/APP_ID/sha/SHA_HASH * 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). * SHA_HASH: the certificate hash for the App (see shaHash). Corresponds to the JSON property name

Returns:

  • (String)


1390
1391
1392
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1390

def name
  @name
end

#sha_hashString

The certificate hash for the AndroidApp. Corresponds to the JSON property shaHash

Returns:

  • (String)


1395
1396
1397
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1395

def sha_hash
  @sha_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1402
1403
1404
1405
1406
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1402

def update!(**args)
  @cert_type = args[:cert_type] if args.key?(:cert_type)
  @name = args[:name] if args.key?(:name)
  @sha_hash = args[:sha_hash] if args.key?(:sha_hash)
end