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



1009
1010
1011
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1009

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

Instance Attribute Details

#cert_typeString

The SHA certificate type. Corresponds to the JSON property certType

Returns:

  • (String)


995
996
997
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 995

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)


1002
1003
1004
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1002

def name
  @name
end

#sha_hashString

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

Returns:

  • (String)


1007
1008
1009
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1007

def sha_hash
  @sha_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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