Class: Google::Apis::AndroidpublisherV3::Bundle

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

Overview

Information about an app bundle. The resource for BundlesService.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Bundle

Returns a new instance of Bundle.



447
448
449
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 447

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

Instance Attribute Details

#sha1String

A sha1 hash of the upload payload, encoded as a hex string and matching the output of the sha1sum command. Corresponds to the JSON property sha1

Returns:

  • (String)


433
434
435
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 433

def sha1
  @sha1
end

#sha256String

A sha256 hash of the upload payload, encoded as a hex string and matching the output of the sha256sum command. Corresponds to the JSON property sha256

Returns:

  • (String)


439
440
441
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 439

def sha256
  @sha256
end

#version_codeFixnum

The version code of the Android App Bundle, as specified in the Android App Bundle's base module APK manifest file. Corresponds to the JSON property versionCode

Returns:

  • (Fixnum)


445
446
447
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 445

def version_code
  @version_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



452
453
454
455
456
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 452

def update!(**args)
  @sha1 = args[:sha1] if args.key?(:sha1)
  @sha256 = args[:sha256] if args.key?(:sha256)
  @version_code = args[:version_code] if args.key?(:version_code)
end