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.



1028
1029
1030
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1028

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

Instance Attribute Details

#cert_typeString

The SHA certificate type. Corresponds to the JSON property certType

Returns:

  • (String)


1014
1015
1016
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1014

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)


1021
1022
1023
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1021

def name
  @name
end

#sha_hashString

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

Returns:

  • (String)


1026
1027
1028
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1026

def sha_hash
  @sha_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1033
1034
1035
1036
1037
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1033

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