Class: Google::Apis::AndroidpublisherV2::ExternallyHostedApk

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

Overview

Defines an APK available for this application that is hosted externally and not uploaded to Google Play. This function is only available to enterprises who are using Google Play for Work, and whos application is restricted to the enterprise private channel

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

Returns a new instance of ExternallyHostedApk



559
560
561
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 559

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

Instance Attribute Details

#application_labelString

The application label. Corresponds to the JSON property applicationLabel

Returns:

  • (String)


486
487
488
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 486

def application_label
  @application_label
end

#certificate_base64sArray<String>

A certificate (or array of certificates if a certificate-chain is used) used to signed this APK, represented as a base64 encoded byte array. Corresponds to the JSON property certificateBase64s

Returns:

  • (Array<String>)


492
493
494
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 492

def certificate_base64s
  @certificate_base64s
end

#externally_hosted_urlString

The URL at which the APK is hosted. This must be an https URL. Corresponds to the JSON property externallyHostedUrl

Returns:

  • (String)


497
498
499
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 497

def externally_hosted_url
  @externally_hosted_url
end

#file_sha1_base64String

The SHA1 checksum of this APK, represented as a base64 encoded byte array. Corresponds to the JSON property fileSha1Base64

Returns:

  • (String)


502
503
504
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 502

def file_sha1_base64
  @file_sha1_base64
end

#file_sha256_base64String

The SHA256 checksum of this APK, represented as a base64 encoded byte array. Corresponds to the JSON property fileSha256Base64

Returns:

  • (String)


507
508
509
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 507

def file_sha256_base64
  @file_sha256_base64
end

#file_sizeFixnum

The file size in bytes of this APK. Corresponds to the JSON property fileSize

Returns:

  • (Fixnum)


512
513
514
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 512

def file_size
  @file_size
end

#icon_base64String

The icon image from the APK, as a base64 encoded byte array. Corresponds to the JSON property iconBase64

Returns:

  • (String)


517
518
519
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 517

def icon_base64
  @icon_base64
end

#maximum_sdkFixnum

The maximum SDK supported by this APK (optional). Corresponds to the JSON property maximumSdk

Returns:

  • (Fixnum)


522
523
524
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 522

def maximum_sdk
  @maximum_sdk
end

#minimum_sdkFixnum

The minimum SDK targeted by this APK. Corresponds to the JSON property minimumSdk

Returns:

  • (Fixnum)


527
528
529
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 527

def minimum_sdk
  @minimum_sdk
end

#native_codesArray<String>

The native code environments supported by this APK (optional). Corresponds to the JSON property nativeCodes

Returns:

  • (Array<String>)


532
533
534
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 532

def native_codes
  @native_codes
end

#package_nameString

The package name. Corresponds to the JSON property packageName

Returns:

  • (String)


537
538
539
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 537

def package_name
  @package_name
end

#uses_featuresArray<String>

The features required by this APK (optional). Corresponds to the JSON property usesFeatures

Returns:

  • (Array<String>)


542
543
544
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 542

def uses_features
  @uses_features
end

#uses_permissionsArray<Google::Apis::AndroidpublisherV2::ExternallyHostedApkUsesPermission>

The permissions requested by this APK. Corresponds to the JSON property usesPermissions



547
548
549
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 547

def uses_permissions
  @uses_permissions
end

#version_codeFixnum

The version code of this APK. Corresponds to the JSON property versionCode

Returns:

  • (Fixnum)


552
553
554
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 552

def version_code
  @version_code
end

#version_nameString

The version name of this APK. Corresponds to the JSON property versionName

Returns:

  • (String)


557
558
559
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 557

def version_name
  @version_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 564

def update!(**args)
  @application_label = args[:application_label] if args.key?(:application_label)
  @certificate_base64s = args[:certificate_base64s] if args.key?(:certificate_base64s)
  @externally_hosted_url = args[:externally_hosted_url] if args.key?(:externally_hosted_url)
  @file_sha1_base64 = args[:file_sha1_base64] if args.key?(:file_sha1_base64)
  @file_sha256_base64 = args[:file_sha256_base64] if args.key?(:file_sha256_base64)
  @file_size = args[:file_size] if args.key?(:file_size)
  @icon_base64 = args[:icon_base64] if args.key?(:icon_base64)
  @maximum_sdk = args[:maximum_sdk] if args.key?(:maximum_sdk)
  @minimum_sdk = args[:minimum_sdk] if args.key?(:minimum_sdk)
  @native_codes = args[:native_codes] if args.key?(:native_codes)
  @package_name = args[:package_name] if args.key?(:package_name)
  @uses_features = args[:uses_features] if args.key?(:uses_features)
  @uses_permissions = args[:uses_permissions] if args.key?(:uses_permissions)
  @version_code = args[:version_code] if args.key?(:version_code)
  @version_name = args[:version_name] if args.key?(:version_name)
end