Skip to content

Commit e9a0d22

Browse files
1 parent 751761e commit e9a0d22

File tree

7 files changed

+403
-93
lines changed

7 files changed

+403
-93
lines changed

clients/google-api-services-chat/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-chat</artifactId>
25-
<version>v1-rev20240919-2.0.0</version>
25+
<version>v1-rev20240926-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-chat:v1-rev20240919-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20240926-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/HangoutsChat.java

Lines changed: 11 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,34 +1724,7 @@ public Patch setName(java.lang.String name) {
17241724
}
17251725

17261726
/**
1727-
* Required. The updated field paths, comma separated if there are multiple. You can update
1728-
* the following fields for a space: - `space_details` - `display_name`: Only supports
1729-
* updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the
1730-
* error message `ALREADY_EXISTS`, try a different value. An existing space within the Google
1731-
* Workspace organization might already use this display name. - `space_type`: Only supports
1732-
* changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with
1733-
* `space_type` in the update mask and ensure that the specified space has a non-empty display
1734-
* name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in
1735-
* the specified space when updating the display name is optional if the existing space
1736-
* already has the `SPACE` type. Trying to update the space type in other ways results in an
1737-
* invalid argument error. `space_type` is not supported with admin access. -
1738-
* `space_history_state`: Updates [space history
1739-
* settings](https://support.google.com/chat/answer/7664687) by turning history on or off for
1740-
* the space. Only supported if history settings are enabled for the Google Workspace
1741-
* organization. To update the space history state, you must omit all other field masks in
1742-
* your request. `space_history_state` is not supported with admin access. -
1743-
* `access_settings.audience`: Updates the [access
1744-
* setting](https://support.google.com/chat/answer/11971020) of who can discover the space,
1745-
* join the space, and preview the messages in named space where `spaceType` field is `SPACE`.
1746-
* If the existing space has a target audience, you can remove the audience and restrict space
1747-
* access by omitting a value for this field mask. To update access settings for a space, the
1748-
* authenticating user must be a space manager and omit all other field masks in your request.
1749-
* You can't update this field if the space is in [import
1750-
* mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more,
1751-
* see [Make a space discoverable to specific
1752-
* users](https://developers.google.com/workspace/chat/space-target-audience).
1753-
* `access_settings.audience` is not supported with admin access. - Developer Preview:
1754-
* Supports changing the [permission
1727+
* - Supports changing the [permission
17551728
* settings](https://support.google.com/chat/answer/13340792) of a space, supported field
17561729
* paths include: `permission_settings.manage_members_and_groups`,
17571730
* `permission_settings.modify_space_details`, `permission_settings.toggle_history`,
@@ -1763,71 +1736,22 @@ public Patch setName(java.lang.String name) {
17631736
@com.google.api.client.util.Key
17641737
private String updateMask;
17651738

1766-
/** Required. The updated field paths, comma separated if there are multiple. You can update the
1767-
following fields for a space: - `space_details` - `display_name`: Only supports updating the
1768-
display name for spaces where `spaceType` field is `SPACE`. If you receive the error message
1769-
`ALREADY_EXISTS`, try a different value. An existing space within the Google Workspace organization
1770-
might already use this display name. - `space_type`: Only supports changing a `GROUP_CHAT` space
1771-
type to `SPACE`. Include `display_name` together with `space_type` in the update mask and ensure
1772-
that the specified space has a non-empty display name and the `SPACE` space type. Including the
1773-
`space_type` mask and the `SPACE` type in the specified space when updating the display name is
1774-
optional if the existing space already has the `SPACE` type. Trying to update the space type in
1775-
other ways results in an invalid argument error. `space_type` is not supported with admin access. -
1776-
`space_history_state`: Updates [space history
1777-
settings](https://support.google.com/chat/answer/7664687) by turning history on or off for the
1778-
space. Only supported if history settings are enabled for the Google Workspace organization. To
1779-
update the space history state, you must omit all other field masks in your request.
1780-
`space_history_state` is not supported with admin access. - `access_settings.audience`: Updates the
1781-
[access setting](https://support.google.com/chat/answer/11971020) of who can discover the space,
1782-
join the space, and preview the messages in named space where `spaceType` field is `SPACE`. If the
1783-
existing space has a target audience, you can remove the audience and restrict space access by
1784-
omitting a value for this field mask. To update access settings for a space, the authenticating
1785-
user must be a space manager and omit all other field masks in your request. You can't update this
1786-
field if the space is in [import mode](https://developers.google.com/workspace/chat/import-data-
1787-
overview). To learn more, see [Make a space discoverable to specific
1788-
users](https://developers.google.com/workspace/chat/space-target-audience).
1789-
`access_settings.audience` is not supported with admin access. - Developer Preview: Supports
1790-
changing the [permission settings](https://support.google.com/chat/answer/13340792) of a space,
1791-
supported field paths include: `permission_settings.manage_members_and_groups`,
1792-
`permission_settings.modify_space_details`, `permission_settings.toggle_history`,
1793-
`permission_settings.use_at_mention_all`, `permission_settings.manage_apps`,
1794-
`permission_settings.manage_webhooks`, `permission_settings.reply_messages` (Warning: mutually
1795-
exclusive with all other non-permission settings field paths). `permission_settings` is not
1796-
supported with admin access.
1739+
/**- Supports changing the [permission settings](https://support.google.com/chat/answer/13340792) of a
1740+
- space, supported field paths include: `permission_settings.manage_members_and_groups`,
1741+
- `permission_settings.modify_space_details`, `permission_settings.toggle_history`,
1742+
- `permission_settings.use_at_mention_all`, `permission_settings.manage_apps`,
1743+
- `permission_settings.manage_webhooks`, `permission_settings.reply_messages` (Warning: mutually
1744+
- exclusive with all other non-permission settings field paths). `permission_settings` is not
1745+
- supported with admin access.
1746+
-
1747+
17971748
*/
17981749
public String getUpdateMask() {
17991750
return updateMask;
18001751
}
18011752

18021753
/**
1803-
* Required. The updated field paths, comma separated if there are multiple. You can update
1804-
* the following fields for a space: - `space_details` - `display_name`: Only supports
1805-
* updating the display name for spaces where `spaceType` field is `SPACE`. If you receive the
1806-
* error message `ALREADY_EXISTS`, try a different value. An existing space within the Google
1807-
* Workspace organization might already use this display name. - `space_type`: Only supports
1808-
* changing a `GROUP_CHAT` space type to `SPACE`. Include `display_name` together with
1809-
* `space_type` in the update mask and ensure that the specified space has a non-empty display
1810-
* name and the `SPACE` space type. Including the `space_type` mask and the `SPACE` type in
1811-
* the specified space when updating the display name is optional if the existing space
1812-
* already has the `SPACE` type. Trying to update the space type in other ways results in an
1813-
* invalid argument error. `space_type` is not supported with admin access. -
1814-
* `space_history_state`: Updates [space history
1815-
* settings](https://support.google.com/chat/answer/7664687) by turning history on or off for
1816-
* the space. Only supported if history settings are enabled for the Google Workspace
1817-
* organization. To update the space history state, you must omit all other field masks in
1818-
* your request. `space_history_state` is not supported with admin access. -
1819-
* `access_settings.audience`: Updates the [access
1820-
* setting](https://support.google.com/chat/answer/11971020) of who can discover the space,
1821-
* join the space, and preview the messages in named space where `spaceType` field is `SPACE`.
1822-
* If the existing space has a target audience, you can remove the audience and restrict space
1823-
* access by omitting a value for this field mask. To update access settings for a space, the
1824-
* authenticating user must be a space manager and omit all other field masks in your request.
1825-
* You can't update this field if the space is in [import
1826-
* mode](https://developers.google.com/workspace/chat/import-data-overview). To learn more,
1827-
* see [Make a space discoverable to specific
1828-
* users](https://developers.google.com/workspace/chat/space-target-audience).
1829-
* `access_settings.audience` is not supported with admin access. - Developer Preview:
1830-
* Supports changing the [permission
1754+
* - Supports changing the [permission
18311755
* settings](https://support.google.com/chat/answer/13340792) of a space, supported field
18321756
* paths include: `permission_settings.manage_members_and_groups`,
18331757
* `permission_settings.modify_space_details`, `permission_settings.toggle_history`,
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.chat.v1.model;
18+
19+
/**
20+
* Represents a space permission setting.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class PermissionSetting extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Whether spaces managers have this permission.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.Boolean managersAllowed;
38+
39+
/**
40+
* Whether non-manager members have this permission.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.Boolean membersAllowed;
45+
46+
/**
47+
* Whether spaces managers have this permission.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.lang.Boolean getManagersAllowed() {
51+
return managersAllowed;
52+
}
53+
54+
/**
55+
* Whether spaces managers have this permission.
56+
* @param managersAllowed managersAllowed or {@code null} for none
57+
*/
58+
public PermissionSetting setManagersAllowed(java.lang.Boolean managersAllowed) {
59+
this.managersAllowed = managersAllowed;
60+
return this;
61+
}
62+
63+
/**
64+
* Whether non-manager members have this permission.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.Boolean getMembersAllowed() {
68+
return membersAllowed;
69+
}
70+
71+
/**
72+
* Whether non-manager members have this permission.
73+
* @param membersAllowed membersAllowed or {@code null} for none
74+
*/
75+
public PermissionSetting setMembersAllowed(java.lang.Boolean membersAllowed) {
76+
this.membersAllowed = membersAllowed;
77+
return this;
78+
}
79+
80+
@Override
81+
public PermissionSetting set(String fieldName, Object value) {
82+
return (PermissionSetting) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public PermissionSetting clone() {
87+
return (PermissionSetting) super.clone();
88+
}
89+
90+
}

0 commit comments

Comments
 (0)