Class: Google::Apis::AndroidenterpriseV1::ProductSigningCertificate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb

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) ⇒ ProductSigningCertificate

Returns a new instance of ProductSigningCertificate.



2403
2404
2405
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2403

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

Instance Attribute Details

#certificate_hash_sha1String

The base64 urlsafe encoded SHA1 hash of the certificate. (This field is deprecated in favor of SHA2-256. It should not be used and may be removed at any time.) Corresponds to the JSON property certificateHashSha1

Returns:

  • (String)


2396
2397
2398
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2396

def certificate_hash_sha1
  @certificate_hash_sha1
end

#certificate_hash_sha256String

The base64 urlsafe encoded SHA2-256 hash of the certificate. Corresponds to the JSON property certificateHashSha256

Returns:

  • (String)


2401
2402
2403
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2401

def certificate_hash_sha256
  @certificate_hash_sha256
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2408
2409
2410
2411
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2408

def update!(**args)
  @certificate_hash_sha1 = args[:certificate_hash_sha1] if args.key?(:certificate_hash_sha1)
  @certificate_hash_sha256 = args[:certificate_hash_sha256] if args.key?(:certificate_hash_sha256)
end