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.



1361
1362
1363
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1361

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)


1339
1340
1341
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1339

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)


1354
1355
1356
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1354

def name
  @name
end

#sha_hashString

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

Returns:

  • (String)


1359
1360
1361
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1359

def sha_hash
  @sha_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1366
1367
1368
1369
1370
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1366

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