Class: Google::Apis::AndroidpublisherV3::Grant

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

An access grant resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Grant

Returns a new instance of Grant.



1523
1524
1525
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1523

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

Instance Attribute Details

#app_level_permissionsArray<String>

The permissions granted to the user for this app. Corresponds to the JSON property appLevelPermissions

Returns:

  • (Array<String>)


1509
1510
1511
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1509

def app_level_permissions
  @app_level_permissions
end

#nameString

Required. Resource name for this grant, following the pattern "developers/ developer/users/email/grants/package_name". If this grant is for a draft app, the app ID will be used in this resource name instead of the package name. Corresponds to the JSON property name

Returns:

  • (String)


1516
1517
1518
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1516

def name
  @name
end

#package_nameString

Immutable. The package name of the app. This will be empty for draft apps. Corresponds to the JSON property packageName

Returns:

  • (String)


1521
1522
1523
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1521

def package_name
  @package_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1528
1529
1530
1531
1532
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1528

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