Skip to content

New GDrivePermissionObj

Spencer Varney edited this page Dec 9, 2016 · 2 revisions

New-GDrivePermissionObj

SYNOPSIS

Creates a new Drive API Permission object.

SYNTAX

New-GDrivePermissionObj [[-AllowFileDiscovery] <Boolean>] [[-DisplayName] <String>] [[-Domain] <String>]
 [[-EmailAddress] <String>] [[-Id] <String>] [[-PhotoLink] <String>] [[-Role] <String>] [[-Type] <String>]
 [-WhatIf] [-Confirm]

DESCRIPTION

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

EXAMPLES

---------- EXAMPLE 1 ----------

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.

PARAMETERS

-AllowFileDiscovery

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: False

-DisplayName

A 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: False

-Domain

The 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: False

-EmailAddress

The 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: False

-Id

The 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: False

-PhotoLink

A 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: False

-Role

The 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: False

-Type

The 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: False

INPUTS

System.Boolean

Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.

System.String

A displayable name for users, groups or domains.

System.String

The domain to which this permission refers.

System.String

The email address of the user or group to which this permission refers.

System.String

The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId.

System.String

A link to the user's profile photo, if available.

System.String

The role granted by this permission. Valid values are:- owner- writer- commenter- reader

System.String

The type of the grantee. Valid values are:- user- group- domain- anyone

OUTPUTS

Google.Apis.Drive.v3.Data.Permission

NOTES

Part of the gShell Project, relating to the Google Drive API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally