Class: Google::Apis::FirebaseV1beta1::ShaCertificate
- Inherits:
-
Object
- Object
- Google::Apis::FirebaseV1beta1::ShaCertificate
- 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
-
#cert_type ⇒ String
The type of SHA certificate encoded in the hash.
-
#name ⇒ String
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 itsProjectId
. -
#sha_hash ⇒ String
The certificate hash for the
AndroidApp
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShaCertificate
constructor
A new instance of ShaCertificate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ShaCertificate
Returns a new instance of ShaCertificate.
1361 1362 1363 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1361 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cert_type ⇒ String
The type of SHA certificate encoded in the hash.
Corresponds to the JSON property certType
1339 1340 1341 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1339 def cert_type @cert_type end |
#name ⇒ String
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
1354 1355 1356 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1354 def name @name end |
#sha_hash ⇒ String
The certificate hash for the AndroidApp
.
Corresponds to the JSON property shaHash
1359 1360 1361 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1359 def sha_hash @sha_hash end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1366 1367 1368 1369 1370 |
# File 'lib/google/apis/firebase_v1beta1/classes.rb', line 1366 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 |