Class: Google::Apis::AndroidpublisherV3::Grant
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::Grant
- 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
-
#app_level_permissions ⇒ Array<String>
The permissions granted to the user for this app.
-
#name ⇒ String
Required.
-
#package_name ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Grant
constructor
A new instance of Grant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Grant
Returns a new instance of Grant.
1182 1183 1184 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1182 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_level_permissions ⇒ Array<String>
The permissions granted to the user for this app.
Corresponds to the JSON property appLevelPermissions
1169 1170 1171 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1169 def @app_level_permissions end |
#name ⇒ String
Required. Resource name for this grant, following the pattern "developers/
developer/users/email/grants/package_name".
Corresponds to the JSON property name
1175 1176 1177 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1175 def name @name end |
#package_name ⇒ String
Immutable. The package name of the app.
Corresponds to the JSON property packageName
1180 1181 1182 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1180 def package_name @package_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1187 1188 1189 1190 1191 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1187 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 |