Class: Google::Apis::AndroidpublisherV3::UsesPermission

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

A permission used by this APK.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UsesPermission

Returns a new instance of UsesPermission.



2730
2731
2732
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2730

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

Instance Attribute Details

#max_sdk_versionFixnum

Optionally, the maximum SDK version for which the permission is required. Corresponds to the JSON property maxSdkVersion

Returns:

  • (Fixnum)


2723
2724
2725
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2723

def max_sdk_version
  @max_sdk_version
end

#nameString

The name of the permission requested. Corresponds to the JSON property name

Returns:

  • (String)


2728
2729
2730
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2728

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2735
2736
2737
2738
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 2735

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