You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

296 regels
10 KiB

  1. {
  2. "auth": {
  3. "oauth2": {
  4. "scopes": {
  5. "https://www.googleapis.com/auth/apps.groups.settings": {
  6. "description": "View and manage the settings of a G Suite group"
  7. }
  8. }
  9. }
  10. },
  11. "basePath": "/groups/v1/groups/",
  12. "baseUrl": "https://www.googleapis.com/groups/v1/groups/",
  13. "batchPath": "batch/groupssettings/v1",
  14. "description": "Lets you manage permission levels and related settings of a group.",
  15. "discoveryVersion": "v1",
  16. "documentationLink": "https://developers.google.com/google-apps/groups-settings/get_started",
  17. "etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/GfziMf-yuHbuK8ebZWiYhJ8rjhg\"",
  18. "icons": {
  19. "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
  20. "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
  21. },
  22. "id": "groupssettings:v1",
  23. "kind": "discovery#restDescription",
  24. "name": "groupssettings",
  25. "ownerDomain": "google.com",
  26. "ownerName": "Google",
  27. "parameters": {
  28. "alt": {
  29. "default": "atom",
  30. "description": "Data format for the response.",
  31. "enum": [
  32. "atom",
  33. "json"
  34. ],
  35. "enumDescriptions": [
  36. "Responses with Content-Type of application/atom+xml",
  37. "Responses with Content-Type of application/json"
  38. ],
  39. "location": "query",
  40. "type": "string"
  41. },
  42. "fields": {
  43. "description": "Selector specifying which fields to include in a partial response.",
  44. "location": "query",
  45. "type": "string"
  46. },
  47. "key": {
  48. "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
  49. "location": "query",
  50. "type": "string"
  51. },
  52. "oauth_token": {
  53. "description": "OAuth 2.0 token for the current user.",
  54. "location": "query",
  55. "type": "string"
  56. },
  57. "prettyPrint": {
  58. "default": "true",
  59. "description": "Returns response with indentations and line breaks.",
  60. "location": "query",
  61. "type": "boolean"
  62. },
  63. "quotaUser": {
  64. "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
  65. "location": "query",
  66. "type": "string"
  67. },
  68. "userIp": {
  69. "description": "Deprecated. Please use quotaUser instead.",
  70. "location": "query",
  71. "type": "string"
  72. }
  73. },
  74. "protocol": "rest",
  75. "resources": {
  76. "groups": {
  77. "methods": {
  78. "get": {
  79. "description": "Gets one resource by id.",
  80. "httpMethod": "GET",
  81. "id": "groupsSettings.groups.get",
  82. "parameterOrder": [
  83. "groupUniqueId"
  84. ],
  85. "parameters": {
  86. "groupUniqueId": {
  87. "description": "The resource ID",
  88. "location": "path",
  89. "required": true,
  90. "type": "string"
  91. }
  92. },
  93. "path": "{groupUniqueId}",
  94. "response": {
  95. "$ref": "Groups"
  96. },
  97. "scopes": [
  98. "https://www.googleapis.com/auth/apps.groups.settings"
  99. ]
  100. },
  101. "patch": {
  102. "description": "Updates an existing resource. This method supports patch semantics.",
  103. "httpMethod": "PATCH",
  104. "id": "groupsSettings.groups.patch",
  105. "parameterOrder": [
  106. "groupUniqueId"
  107. ],
  108. "parameters": {
  109. "groupUniqueId": {
  110. "description": "The resource ID",
  111. "location": "path",
  112. "required": true,
  113. "type": "string"
  114. }
  115. },
  116. "path": "{groupUniqueId}",
  117. "request": {
  118. "$ref": "Groups"
  119. },
  120. "response": {
  121. "$ref": "Groups"
  122. },
  123. "scopes": [
  124. "https://www.googleapis.com/auth/apps.groups.settings"
  125. ]
  126. },
  127. "update": {
  128. "description": "Updates an existing resource.",
  129. "httpMethod": "PUT",
  130. "id": "groupsSettings.groups.update",
  131. "parameterOrder": [
  132. "groupUniqueId"
  133. ],
  134. "parameters": {
  135. "groupUniqueId": {
  136. "description": "The resource ID",
  137. "location": "path",
  138. "required": true,
  139. "type": "string"
  140. }
  141. },
  142. "path": "{groupUniqueId}",
  143. "request": {
  144. "$ref": "Groups"
  145. },
  146. "response": {
  147. "$ref": "Groups"
  148. },
  149. "scopes": [
  150. "https://www.googleapis.com/auth/apps.groups.settings"
  151. ]
  152. }
  153. }
  154. }
  155. },
  156. "revision": "20180404",
  157. "rootUrl": "https://www.googleapis.com/",
  158. "schemas": {
  159. "Groups": {
  160. "description": "JSON template for Group resource",
  161. "id": "Groups",
  162. "properties": {
  163. "allowExternalMembers": {
  164. "description": "Are external members allowed to join the group.",
  165. "type": "string"
  166. },
  167. "allowGoogleCommunication": {
  168. "description": "Is google allowed to contact admins.",
  169. "type": "string"
  170. },
  171. "allowWebPosting": {
  172. "description": "If posting from web is allowed.",
  173. "type": "string"
  174. },
  175. "archiveOnly": {
  176. "description": "If the group is archive only",
  177. "type": "string"
  178. },
  179. "customFooterText": {
  180. "description": "Custom footer text.",
  181. "type": "string"
  182. },
  183. "customReplyTo": {
  184. "description": "Default email to which reply to any message should go.",
  185. "type": "string"
  186. },
  187. "defaultMessageDenyNotificationText": {
  188. "description": "Default message deny notification message",
  189. "type": "string"
  190. },
  191. "description": {
  192. "description": "Description of the group",
  193. "type": "string"
  194. },
  195. "email": {
  196. "description": "Email id of the group",
  197. "type": "string"
  198. },
  199. "includeCustomFooter": {
  200. "description": "Whether to include custom footer.",
  201. "type": "string"
  202. },
  203. "includeInGlobalAddressList": {
  204. "description": "If this groups should be included in global address list or not.",
  205. "type": "string"
  206. },
  207. "isArchived": {
  208. "description": "If the contents of the group are archived.",
  209. "type": "string"
  210. },
  211. "kind": {
  212. "default": "groupsSettings#groups",
  213. "description": "The type of the resource.",
  214. "type": "string"
  215. },
  216. "maxMessageBytes": {
  217. "description": "Maximum message size allowed.",
  218. "format": "int32",
  219. "type": "integer"
  220. },
  221. "membersCanPostAsTheGroup": {
  222. "description": "Can members post using the group email address.",
  223. "type": "string"
  224. },
  225. "messageDisplayFont": {
  226. "description": "Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT",
  227. "type": "string"
  228. },
  229. "messageModerationLevel": {
  230. "description": "Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE",
  231. "type": "string"
  232. },
  233. "name": {
  234. "description": "Name of the Group",
  235. "type": "string"
  236. },
  237. "primaryLanguage": {
  238. "description": "Primary language for the group.",
  239. "type": "string"
  240. },
  241. "replyTo": {
  242. "description": "Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS",
  243. "type": "string"
  244. },
  245. "sendMessageDenyNotification": {
  246. "description": "Should the member be notified if his message is denied by owner.",
  247. "type": "string"
  248. },
  249. "showInGroupDirectory": {
  250. "description": "Is the group listed in groups directory",
  251. "type": "string"
  252. },
  253. "spamModerationLevel": {
  254. "description": "Moderation level for messages detected as spam. Possible values are: ALLOW MODERATE SILENTLY_MODERATE REJECT",
  255. "type": "string"
  256. },
  257. "whoCanAdd": {
  258. "description": "Permissions to add members. Possible values are: ALL_MANAGERS_CAN_ADD ALL_OWNERS_CAN_ADD ALL_MEMBERS_CAN_ADD NONE_CAN_ADD",
  259. "type": "string"
  260. },
  261. "whoCanContactOwner": {
  262. "description": "Permission to contact owner of the group via web UI. Possible values are: ANYONE_CAN_CONTACT ALL_IN_DOMAIN_CAN_CONTACT ALL_MEMBERS_CAN_CONTACT ALL_MANAGERS_CAN_CONTACT",
  263. "type": "string"
  264. },
  265. "whoCanInvite": {
  266. "description": "Permissions to invite members. Possible values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE ALL_OWNERS_CAN_INVITE NONE_CAN_INVITE",
  267. "type": "string"
  268. },
  269. "whoCanJoin": {
  270. "description": "Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN",
  271. "type": "string"
  272. },
  273. "whoCanLeaveGroup": {
  274. "description": "Permission to leave the group. Possible values are: ALL_MANAGERS_CAN_LEAVE ALL_OWNERS_CAN_LEAVE ALL_MEMBERS_CAN_LEAVE NONE_CAN_LEAVE",
  275. "type": "string"
  276. },
  277. "whoCanPostMessage": {
  278. "description": "Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_OWNERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST",
  279. "type": "string"
  280. },
  281. "whoCanViewGroup": {
  282. "description": "Permissions to view group. Possible values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW ALL_OWNERS_CAN_VIEW",
  283. "type": "string"
  284. },
  285. "whoCanViewMembership": {
  286. "description": "Permissions to view membership. Possible values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW",
  287. "type": "string"
  288. }
  289. },
  290. "type": "object"
  291. }
  292. },
  293. "servicePath": "groups/v1/groups/",
  294. "title": "Groups Settings API",
  295. "version": "v1"
  296. }