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



883
884
885
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 883

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

Instance Attribute Details

#cert_typeString

The SHA certificate type. Corresponds to the JSON property certType

Returns:

  • (String)


869
870
871
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 869

def cert_type
  @cert_type
end

#nameString

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

Returns:

  • (String)


876
877
878
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 876

def name
  @name
end

#sha_hashString

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

Returns:

  • (String)


881
882
883
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 881

def sha_hash
  @sha_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



888
889
890
891
892
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 888

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