Navigation Menu

Skip to content

Commit

Permalink
feat(drivelabels): update the api
Browse files Browse the repository at this point in the history
#### 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)
  • Loading branch information
yoshi-automation committed Nov 1, 2022
1 parent bfaf4b3 commit 522e74b
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 140 deletions.
40 changes: 40 additions & 0 deletions docs/dyn/drivelabels_v2beta.labels.html
Expand Up @@ -122,6 +122,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#updateLabelCopyMode">updateLabelCopyMode(name, body=None, x__xgafv=None)</a></code></p>
<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="toc_element">
<code><a href="#updatePermissions">updatePermissions(parent, body=None, useAdminAccess=None, x__xgafv=None)</a></code></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>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
Expand Down Expand Up @@ -3146,4 +3149,41 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="updatePermissions">updatePermissions(parent, body=None, useAdminAccess=None, x__xgafv=None)</code>
<pre>Updates a Label&#x27;s permissions. If a permission for the indicated principal doesn&#x27;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.

Args:
parent: string, Required. The parent Label resource name. (required)
body: object, The request body.
The object takes the form of:

{ # The permission that applies to a principal (user, group, audience) on a label.
&quot;audience&quot;: &quot;A String&quot;, # 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.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;group&quot;: &quot;A String&quot;, # Group resource name.
&quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
&quot;person&quot;: &quot;A String&quot;, # Person resource name.
&quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
}

useAdminAccess: boolean, Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the Label before allowing access.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # The permission that applies to a principal (user, group, audience) on a label.
&quot;audience&quot;: &quot;A String&quot;, # 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.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;group&quot;: &quot;A String&quot;, # Group resource name.
&quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
&quot;person&quot;: &quot;A String&quot;, # Person resource name.
&quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
}</pre>
</div>

</body></html>
46 changes: 3 additions & 43 deletions docs/dyn/drivelabels_v2beta.labels.permissions.html
Expand Up @@ -75,7 +75,7 @@
<h1><a href="drivelabels_v2beta.html">Drive Labels API</a> . <a href="drivelabels_v2beta.labels.html">labels</a> . <a href="drivelabels_v2beta.labels.permissions.html">permissions</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#batchDelete">batchDelete(labelsId, body=None, x__xgafv=None)</a></code></p>
<code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.</p>
<p class="toc_element">
<code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
Expand All @@ -95,16 +95,13 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#patch">patch(parent, body=None, useAdminAccess=None, x__xgafv=None)</a></code></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>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="batchDelete">batchDelete(labelsId, body=None, x__xgafv=None)</code>
<code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
<pre>Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

Args:
labelsId: string, A parameter (required)
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)
body: object, The request body.
The object takes the form of:

Expand Down Expand Up @@ -286,41 +283,4 @@ <h3>Method Details</h3>
</pre>
</div>

<div class="method">
<code class="details" id="patch">patch(parent, body=None, useAdminAccess=None, x__xgafv=None)</code>
<pre>Updates a Label&#x27;s permissions. If a permission for the indicated principal doesn&#x27;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.

Args:
parent: string, Required. The parent Label resource name. (required)
body: object, The request body.
The object takes the form of:

{ # The permission that applies to a principal (user, group, audience) on a label.
&quot;audience&quot;: &quot;A String&quot;, # 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.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;group&quot;: &quot;A String&quot;, # Group resource name.
&quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
&quot;person&quot;: &quot;A String&quot;, # Person resource name.
&quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
}

useAdminAccess: boolean, Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the Label before allowing access.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # The permission that applies to a principal (user, group, audience) on a label.
&quot;audience&quot;: &quot;A String&quot;, # 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.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;group&quot;: &quot;A String&quot;, # Group resource name.
&quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
&quot;person&quot;: &quot;A String&quot;, # Person resource name.
&quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
}</pre>
</div>

</body></html>
40 changes: 40 additions & 0 deletions docs/dyn/drivelabels_v2beta.labels.revisions.html
Expand Up @@ -87,10 +87,50 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#updatePermissions">updatePermissions(parent, body=None, useAdminAccess=None, x__xgafv=None)</a></code></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>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>

<div class="method">
<code class="details" id="updatePermissions">updatePermissions(parent, body=None, useAdminAccess=None, x__xgafv=None)</code>
<pre>Updates a Label&#x27;s permissions. If a permission for the indicated principal doesn&#x27;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.

Args:
parent: string, Required. The parent Label resource name. (required)
body: object, The request body.
The object takes the form of:

{ # The permission that applies to a principal (user, group, audience) on a label.
&quot;audience&quot;: &quot;A String&quot;, # 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.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;group&quot;: &quot;A String&quot;, # Group resource name.
&quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
&quot;person&quot;: &quot;A String&quot;, # Person resource name.
&quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
}

useAdminAccess: boolean, Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the Label before allowing access.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # The permission that applies to a principal (user, group, audience) on a label.
&quot;audience&quot;: &quot;A String&quot;, # 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.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;group&quot;: &quot;A String&quot;, # Group resource name.
&quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
&quot;person&quot;: &quot;A String&quot;, # Person resource name.
&quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
}</pre>
</div>

</body></html>
47 changes: 3 additions & 44 deletions docs/dyn/drivelabels_v2beta.labels.revisions.permissions.html
Expand Up @@ -75,7 +75,7 @@
<h1><a href="drivelabels_v2beta.html">Drive Labels API</a> . <a href="drivelabels_v2beta.labels.html">labels</a> . <a href="drivelabels_v2beta.labels.revisions.html">revisions</a> . <a href="drivelabels_v2beta.labels.revisions.permissions.html">permissions</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#batchDelete">batchDelete(labelsId, revisionsId, body=None, x__xgafv=None)</a></code></p>
<code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.</p>
<p class="toc_element">
<code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
Expand All @@ -95,17 +95,13 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#patch">patch(parent, body=None, useAdminAccess=None, x__xgafv=None)</a></code></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>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="batchDelete">batchDelete(labelsId, revisionsId, body=None, x__xgafv=None)</code>
<code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
<pre>Deletes Label permissions. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.

Args:
labelsId: string, A parameter (required)
revisionsId: string, A parameter (required)
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)
body: object, The request body.
The object takes the form of:

Expand Down Expand Up @@ -287,41 +283,4 @@ <h3>Method Details</h3>
</pre>
</div>

<div class="method">
<code class="details" id="patch">patch(parent, body=None, useAdminAccess=None, x__xgafv=None)</code>
<pre>Updates a Label&#x27;s permissions. If a permission for the indicated principal doesn&#x27;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.

Args:
parent: string, Required. The parent Label resource name. (required)
body: object, The request body.
The object takes the form of:

{ # The permission that applies to a principal (user, group, audience) on a label.
&quot;audience&quot;: &quot;A String&quot;, # 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.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;group&quot;: &quot;A String&quot;, # Group resource name.
&quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
&quot;person&quot;: &quot;A String&quot;, # Person resource name.
&quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
}

useAdminAccess: boolean, Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the Label before allowing access.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # The permission that applies to a principal (user, group, audience) on a label.
&quot;audience&quot;: &quot;A String&quot;, # 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.
&quot;email&quot;: &quot;A String&quot;, # 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.
&quot;group&quot;: &quot;A String&quot;, # Group resource name.
&quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
&quot;person&quot;: &quot;A String&quot;, # Person resource name.
&quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
}</pre>
</div>

</body></html>
Expand Up @@ -217,7 +217,7 @@
}
}
},
"revision": "20221010",
"revision": "20221026",
"rootUrl": "https://drivelabels.googleapis.com/",
"schemas": {
"GoogleAppsDriveLabelsV2BadgeColors": {
Expand Down

0 comments on commit 522e74b

Please sign in to comment.