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

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 SHA-1 or SHA-256 certificate associated with the AndroidApp.

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) ⇒ ShaCertificate

Returns a new instance of ShaCertificate



795
796
797
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 795

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

Instance Attribute Details

#cert_typeString

The SHA certificate type. Corresponds to the JSON property certType

Returns:

  • (String)


781
782
783
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 781

def cert_type
  @cert_type
end

#nameString

The fully qualified resource name of the sha-key, in the format:
projects/projectId/androidApps/appId/sha/ shaHash Corresponds to the JSON property name

Returns:

  • (String)


788
789
790
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 788

def name
  @name
end

#sha_hashString

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

Returns:

  • (String)


793
794
795
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 793

def sha_hash
  @sha_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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