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.



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

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)


1006
1007
1008
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1006

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)


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

def name
  @name
end

#sha_hashString

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

Returns:

  • (String)


1026
1027
1028
# File 'lib/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 'lib/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