You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### drivelabels:v2beta
The following keys were deleted:
- resources.labels.resources.permissions.methods.batchDelete.parameters.labelsId (Total Keys: 3)
- resources.labels.resources.permissions.methods.patch (Total Keys: 13)
The following keys were added:
- resources.labels.methods.updatePermissions (Total Keys: 13)
- resources.labels.resources.permissions.methods.batchDelete.parameters.parent (Total Keys: 4)
The following keys were changed:
- resources.labels.resources.permissions.methods.batchDelete (Total Keys: 2)
<p class="firstline">Updates a Label's `CopyMode`. Changes to this policy are not revisioned, do not require publishing, and take effect immediately.</p>
<p class="firstline">Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.</p>
<pre>Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
3155
+
3156
+
Args:
3157
+
parent: string, Required. The parent Label resource name. (required)
3158
+
body: object, The request body.
3159
+
The object takes the form of:
3160
+
3161
+
{ # The permission that applies to a principal (user, group, audience) on a label.
3162
+
"audience": "A String", # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.
3163
+
"email": "A String", # Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
3164
+
"group": "A String", # Group resource name.
3165
+
"name": "A String", # Resource name of this permission.
3166
+
"person": "A String", # Person resource name.
3167
+
"role": "A String", # The role the principal should have.
3168
+
}
3169
+
3170
+
useAdminAccess: boolean, Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
3171
+
x__xgafv: string, V1 error format.
3172
+
Allowed values
3173
+
1 - v1 error format
3174
+
2 - v2 error format
3175
+
3176
+
Returns:
3177
+
An object of the form:
3178
+
3179
+
{ # The permission that applies to a principal (user, group, audience) on a label.
3180
+
"audience": "A String", # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.
3181
+
"email": "A String", # Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
3182
+
"group": "A String", # Group resource name.
3183
+
"name": "A String", # Resource name of this permission.
3184
+
"person": "A String", # Person resource name.
3185
+
"role": "A String", # The role the principal should have.
<pclass="firstline">Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.</p>
<pclass="firstline">Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.</p>
<pre>Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
105
102
106
103
Args:
107
-
labelsId: string, A parameter (required)
104
+
parent: string, Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field. (required)
<pre>Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
292
-
293
-
Args:
294
-
parent: string, Required. The parent Label resource name. (required)
295
-
body: object, The request body.
296
-
The object takes the form of:
297
-
298
-
{ # The permission that applies to a principal (user, group, audience) on a label.
299
-
"audience": "A String", # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.
300
-
"email": "A String", # Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
301
-
"group": "A String", # Group resource name.
302
-
"name": "A String", # Resource name of this permission.
303
-
"person": "A String", # Person resource name.
304
-
"role": "A String", # The role the principal should have.
305
-
}
306
-
307
-
useAdminAccess: boolean, Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
308
-
x__xgafv: string, V1 error format.
309
-
Allowed values
310
-
1 - v1 error format
311
-
2 - v2 error format
312
-
313
-
Returns:
314
-
An object of the form:
315
-
316
-
{ # The permission that applies to a principal (user, group, audience) on a label.
317
-
"audience": "A String", # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.
318
-
"email": "A String", # Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
319
-
"group": "A String", # Group resource name.
320
-
"name": "A String", # Resource name of this permission.
321
-
"person": "A String", # Person resource name.
322
-
"role": "A String", # The role the principal should have.
<pclass="firstline">Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.</p>
<pre>Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
102
+
103
+
Args:
104
+
parent: string, Required. The parent Label resource name. (required)
105
+
body: object, The request body.
106
+
The object takes the form of:
107
+
108
+
{ # The permission that applies to a principal (user, group, audience) on a label.
109
+
"audience": "A String", # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.
110
+
"email": "A String", # Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
111
+
"group": "A String", # Group resource name.
112
+
"name": "A String", # Resource name of this permission.
113
+
"person": "A String", # Person resource name.
114
+
"role": "A String", # The role the principal should have.
115
+
}
116
+
117
+
useAdminAccess: boolean, Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
118
+
x__xgafv: string, V1 error format.
119
+
Allowed values
120
+
1 - v1 error format
121
+
2 - v2 error format
122
+
123
+
Returns:
124
+
An object of the form:
125
+
126
+
{ # The permission that applies to a principal (user, group, audience) on a label.
127
+
"audience": "A String", # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.
128
+
"email": "A String", # Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
129
+
"group": "A String", # Group resource name.
130
+
"name": "A String", # Resource name of this permission.
131
+
"person": "A String", # Person resource name.
132
+
"role": "A String", # The role the principal should have.
<pclass="firstline">Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.</p>
<pclass="firstline">Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.</p>
<pre>Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
105
102
106
103
Args:
107
-
labelsId: string, A parameter (required)
108
-
revisionsId: string, A parameter (required)
104
+
parent: string, Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field. (required)
<pre>Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
293
-
294
-
Args:
295
-
parent: string, Required. The parent Label resource name. (required)
296
-
body: object, The request body.
297
-
The object takes the form of:
298
-
299
-
{ # The permission that applies to a principal (user, group, audience) on a label.
300
-
"audience": "A String", # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.
301
-
"email": "A String", # Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
302
-
"group": "A String", # Group resource name.
303
-
"name": "A String", # Resource name of this permission.
304
-
"person": "A String", # Person resource name.
305
-
"role": "A String", # The role the principal should have.
306
-
}
307
-
308
-
useAdminAccess: boolean, Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.
309
-
x__xgafv: string, V1 error format.
310
-
Allowed values
311
-
1 - v1 error format
312
-
2 - v2 error format
313
-
314
-
Returns:
315
-
An object of the form:
316
-
317
-
{ # The permission that applies to a principal (user, group, audience) on a label.
318
-
"audience": "A String", # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the Label.
319
-
"email": "A String", # Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified.
320
-
"group": "A String", # Group resource name.
321
-
"name": "A String", # Resource name of this permission.
322
-
"person": "A String", # Person resource name.
323
-
"role": "A String", # The role the principal should have.
Copy file name to clipboardexpand all lines: googleapiclient/discovery_cache/documents/drivelabels.v2beta.json
+52-52
Original file line number
Diff line number
Diff line change
@@ -396,6 +396,36 @@
396
396
"response": {
397
397
"$ref": "GoogleAppsDriveLabelsV2betaLabel"
398
398
}
399
+
},
400
+
"updatePermissions": {
401
+
"description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
"description": "Required. The parent Label resource name.",
411
+
"location": "path",
412
+
"pattern": "^labels/[^/]+$",
413
+
"required": true,
414
+
"type": "string"
415
+
},
416
+
"useAdminAccess": {
417
+
"description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
"description": "Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.",
"description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
"description": "Required. The parent Label resource name shared by all permissions being deleted. Format: labels/{label} If this is set, the parent field in the UpdateLabelPermissionRequest messages must either be empty or match this field.",
"description": "Updates a Label's permissions. If a permission for the indicated principal doesn't exist, a new Label Permission is created, otherwise the existing permission is updated. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.",
"description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
0 commit comments