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

Constructor Details

#initialize(**args) ⇒ ShaCertificate

Returns a new instance of ShaCertificate.



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

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)


992
993
994
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 992

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)


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

def name
  @name
end

#sha_hashString

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

Returns:

  • (String)


1012
1013
1014
# File 'generated/google/apis/firebase_v1beta1/classes.rb', line 1012

def sha_hash
  @sha_hash
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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