-
Notifications
You must be signed in to change notification settings - Fork 10
New GDrivePermissionObj
Creates a new Drive API Permission object.
New-GDrivePermissionObj [[-AllowFileDiscovery] <Boolean>] [[-DisplayName] <String>] [[-Domain] <String>]
[[-EmailAddress] <String>] [[-Id] <String>] [[-PhotoLink] <String>] [[-Role] <String>] [[-Type] <String>]
[-WhatIf] [-Confirm]
This provides a Cmdlet-Based approach to creating a Permission object which may be required as a parameter for some other Cmdlets in the Drive API category.
You could alternately create this object by calling New-Object -TypeName Google.Apis.Drive.v3.Data.Permission
PS C:\> New-GDrivePermissionObj
This automatically generated example serves to show the bare minimum required to call this Cmdlet.
Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.
Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseA displayable name for users, groups or domains.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe domain to which this permission refers.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe email address of the user or group to which this permission refers.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseA link to the user's profile photo, if available.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe role granted by this permission. Valid values are:- owner- writer- commenter- reader
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe type of the grantee. Valid values are:- user- group- domain- anyone
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value:
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseWhether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
A displayable name for users, groups or domains.
The domain to which this permission refers.
The email address of the user or group to which this permission refers.
The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId.
A link to the user's profile photo, if available.
The role granted by this permission. Valid values are:- owner- writer- commenter- reader
The type of the grantee. Valid values are:- user- group- domain- anyone
Part of the gShell Project, relating to the Google Drive API; see Related Links or use the -Online parameter.
News - Get Started - Cmdlet Index - FAQ - Discussion - Downloads