Class: Google::Apis::ApikeysV2::V2AndroidApplication

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

Overview

Identifier of an Android application for key use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ V2AndroidApplication

Returns a new instance of V2AndroidApplication.



142
143
144
# File 'lib/google/apis/apikeys_v2/classes.rb', line 142

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

Instance Attribute Details

#package_nameString

The package name of the application. Corresponds to the JSON property packageName

Returns:

  • (String)


133
134
135
# File 'lib/google/apis/apikeys_v2/classes.rb', line 133

def package_name
  @package_name
end

#sha1_fingerprintString

The SHA1 fingerprint of the application. For example, both sha1 formats are acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter. Corresponds to the JSON property sha1Fingerprint

Returns:

  • (String)


140
141
142
# File 'lib/google/apis/apikeys_v2/classes.rb', line 140

def sha1_fingerprint
  @sha1_fingerprint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



147
148
149
150
# File 'lib/google/apis/apikeys_v2/classes.rb', line 147

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