Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Grant access for a user to the given package.
Removes all access for the user to the given package or developer account.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates access for the user to the given package.
close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Grant access for a user to the given package. Args: parent: string, Required. The user which needs permission. Format: developers/{developer}/users/{user} (required) body: object, The request body. The object takes the form of: { # An access grant resource. "appLevelPermissions": [ # The permissions granted to the user for this app. "A String", ], "name": "A String", # 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. "packageName": "A String", # Immutable. The package name of the app. This will be empty for draft apps. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # An access grant resource. "appLevelPermissions": [ # The permissions granted to the user for this app. "A String", ], "name": "A String", # 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. "packageName": "A String", # Immutable. The package name of the app. This will be empty for draft apps. }
delete(name, x__xgafv=None)
Removes all access for the user to the given package or developer account. Args: name: string, Required. The name of the grant to delete. Format: developers/{developer}/users/{email}/grants/{package_name} (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates access for the user to the given package. Args: name: string, 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. (required) body: object, The request body. The object takes the form of: { # An access grant resource. "appLevelPermissions": [ # The permissions granted to the user for this app. "A String", ], "name": "A String", # 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. "packageName": "A String", # Immutable. The package name of the app. This will be empty for draft apps. } updateMask: string, Optional. The list of fields to be updated. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # An access grant resource. "appLevelPermissions": [ # The permissions granted to the user for this app. "A String", ], "name": "A String", # 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. "packageName": "A String", # Immutable. The package name of the app. This will be empty for draft apps. }