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.
 
 
 

641 lines
20 KiB

  1. // Package groupssettings provides access to the Groups Settings API.
  2. //
  3. // See https://developers.google.com/google-apps/groups-settings/get_started
  4. //
  5. // Usage example:
  6. //
  7. // import "google.golang.org/api/groupssettings/v1"
  8. // ...
  9. // groupssettingsService, err := groupssettings.New(oauthHttpClient)
  10. package groupssettings // import "google.golang.org/api/groupssettings/v1"
  11. import (
  12. "bytes"
  13. "encoding/json"
  14. "errors"
  15. "fmt"
  16. context "golang.org/x/net/context"
  17. ctxhttp "golang.org/x/net/context/ctxhttp"
  18. gensupport "google.golang.org/api/gensupport"
  19. googleapi "google.golang.org/api/googleapi"
  20. "io"
  21. "net/http"
  22. "net/url"
  23. "strconv"
  24. "strings"
  25. )
  26. // Always reference these packages, just in case the auto-generated code
  27. // below doesn't.
  28. var _ = bytes.NewBuffer
  29. var _ = strconv.Itoa
  30. var _ = fmt.Sprintf
  31. var _ = json.NewDecoder
  32. var _ = io.Copy
  33. var _ = url.Parse
  34. var _ = gensupport.MarshalJSON
  35. var _ = googleapi.Version
  36. var _ = errors.New
  37. var _ = strings.Replace
  38. var _ = context.Canceled
  39. var _ = ctxhttp.Do
  40. const apiId = "groupssettings:v1"
  41. const apiName = "groupssettings"
  42. const apiVersion = "v1"
  43. const basePath = "https://www.googleapis.com/groups/v1/groups/"
  44. // OAuth2 scopes used by this API.
  45. const (
  46. // View and manage the settings of a G Suite group
  47. AppsGroupsSettingsScope = "https://www.googleapis.com/auth/apps.groups.settings"
  48. )
  49. func New(client *http.Client) (*Service, error) {
  50. if client == nil {
  51. return nil, errors.New("client is nil")
  52. }
  53. s := &Service{client: client, BasePath: basePath}
  54. s.Groups = NewGroupsService(s)
  55. return s, nil
  56. }
  57. type Service struct {
  58. client *http.Client
  59. BasePath string // API endpoint base URL
  60. UserAgent string // optional additional User-Agent fragment
  61. Groups *GroupsService
  62. }
  63. func (s *Service) userAgent() string {
  64. if s.UserAgent == "" {
  65. return googleapi.UserAgent
  66. }
  67. return googleapi.UserAgent + " " + s.UserAgent
  68. }
  69. func NewGroupsService(s *Service) *GroupsService {
  70. rs := &GroupsService{s: s}
  71. return rs
  72. }
  73. type GroupsService struct {
  74. s *Service
  75. }
  76. // Groups: JSON template for Group resource
  77. type Groups struct {
  78. // AllowExternalMembers: Are external members allowed to join the group.
  79. AllowExternalMembers string `json:"allowExternalMembers,omitempty"`
  80. // AllowGoogleCommunication: Is google allowed to contact admins.
  81. AllowGoogleCommunication string `json:"allowGoogleCommunication,omitempty"`
  82. // AllowWebPosting: If posting from web is allowed.
  83. AllowWebPosting string `json:"allowWebPosting,omitempty"`
  84. // ArchiveOnly: If the group is archive only
  85. ArchiveOnly string `json:"archiveOnly,omitempty"`
  86. // CustomFooterText: Custom footer text.
  87. CustomFooterText string `json:"customFooterText,omitempty"`
  88. // CustomReplyTo: Default email to which reply to any message should go.
  89. CustomReplyTo string `json:"customReplyTo,omitempty"`
  90. // DefaultMessageDenyNotificationText: Default message deny notification
  91. // message
  92. DefaultMessageDenyNotificationText string `json:"defaultMessageDenyNotificationText,omitempty"`
  93. // Description: Description of the group
  94. Description string `json:"description,omitempty"`
  95. // Email: Email id of the group
  96. Email string `json:"email,omitempty"`
  97. // IncludeCustomFooter: Whether to include custom footer.
  98. IncludeCustomFooter string `json:"includeCustomFooter,omitempty"`
  99. // IncludeInGlobalAddressList: If this groups should be included in
  100. // global address list or not.
  101. IncludeInGlobalAddressList string `json:"includeInGlobalAddressList,omitempty"`
  102. // IsArchived: If the contents of the group are archived.
  103. IsArchived string `json:"isArchived,omitempty"`
  104. // Kind: The type of the resource.
  105. Kind string `json:"kind,omitempty"`
  106. // MaxMessageBytes: Maximum message size allowed.
  107. MaxMessageBytes int64 `json:"maxMessageBytes,omitempty"`
  108. // MembersCanPostAsTheGroup: Can members post using the group email
  109. // address.
  110. MembersCanPostAsTheGroup string `json:"membersCanPostAsTheGroup,omitempty"`
  111. // MessageDisplayFont: Default message display font. Possible values
  112. // are: DEFAULT_FONT FIXED_WIDTH_FONT
  113. MessageDisplayFont string `json:"messageDisplayFont,omitempty"`
  114. // MessageModerationLevel: Moderation level for messages. Possible
  115. // values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS
  116. // MODERATE_NEW_MEMBERS MODERATE_NONE
  117. MessageModerationLevel string `json:"messageModerationLevel,omitempty"`
  118. // Name: Name of the Group
  119. Name string `json:"name,omitempty"`
  120. // PrimaryLanguage: Primary language for the group.
  121. PrimaryLanguage string `json:"primaryLanguage,omitempty"`
  122. // ReplyTo: Whome should the default reply to a message go to. Possible
  123. // values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST
  124. // REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS
  125. ReplyTo string `json:"replyTo,omitempty"`
  126. // SendMessageDenyNotification: Should the member be notified if his
  127. // message is denied by owner.
  128. SendMessageDenyNotification string `json:"sendMessageDenyNotification,omitempty"`
  129. // ShowInGroupDirectory: Is the group listed in groups directory
  130. ShowInGroupDirectory string `json:"showInGroupDirectory,omitempty"`
  131. // SpamModerationLevel: Moderation level for messages detected as spam.
  132. // Possible values are: ALLOW MODERATE SILENTLY_MODERATE REJECT
  133. SpamModerationLevel string `json:"spamModerationLevel,omitempty"`
  134. // WhoCanAdd: Permissions to add members. Possible values are:
  135. // ALL_MANAGERS_CAN_ADD ALL_OWNERS_CAN_ADD ALL_MEMBERS_CAN_ADD
  136. // NONE_CAN_ADD
  137. WhoCanAdd string `json:"whoCanAdd,omitempty"`
  138. // WhoCanContactOwner: Permission to contact owner of the group via web
  139. // UI. Possible values are: ANYONE_CAN_CONTACT ALL_IN_DOMAIN_CAN_CONTACT
  140. // ALL_MEMBERS_CAN_CONTACT ALL_MANAGERS_CAN_CONTACT
  141. WhoCanContactOwner string `json:"whoCanContactOwner,omitempty"`
  142. // WhoCanInvite: Permissions to invite members. Possible values are:
  143. // ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE ALL_OWNERS_CAN_INVITE
  144. // NONE_CAN_INVITE
  145. WhoCanInvite string `json:"whoCanInvite,omitempty"`
  146. // WhoCanJoin: Permissions to join the group. Possible values are:
  147. // ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN
  148. // CAN_REQUEST_TO_JOIN
  149. WhoCanJoin string `json:"whoCanJoin,omitempty"`
  150. // WhoCanLeaveGroup: Permission to leave the group. Possible values are:
  151. // ALL_MANAGERS_CAN_LEAVE ALL_OWNERS_CAN_LEAVE ALL_MEMBERS_CAN_LEAVE
  152. // NONE_CAN_LEAVE
  153. WhoCanLeaveGroup string `json:"whoCanLeaveGroup,omitempty"`
  154. // WhoCanPostMessage: Permissions to post messages to the group.
  155. // Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST
  156. // ALL_MEMBERS_CAN_POST ALL_OWNERS_CAN_POST ALL_IN_DOMAIN_CAN_POST
  157. // ANYONE_CAN_POST
  158. WhoCanPostMessage string `json:"whoCanPostMessage,omitempty"`
  159. // WhoCanViewGroup: Permissions to view group. Possible values are:
  160. // ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW
  161. // ALL_MANAGERS_CAN_VIEW ALL_OWNERS_CAN_VIEW
  162. WhoCanViewGroup string `json:"whoCanViewGroup,omitempty"`
  163. // WhoCanViewMembership: Permissions to view membership. Possible values
  164. // are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW
  165. // ALL_MANAGERS_CAN_VIEW
  166. WhoCanViewMembership string `json:"whoCanViewMembership,omitempty"`
  167. // ServerResponse contains the HTTP response code and headers from the
  168. // server.
  169. googleapi.ServerResponse `json:"-"`
  170. // ForceSendFields is a list of field names (e.g.
  171. // "AllowExternalMembers") to unconditionally include in API requests.
  172. // By default, fields with empty values are omitted from API requests.
  173. // However, any non-pointer, non-interface field appearing in
  174. // ForceSendFields will be sent to the server regardless of whether the
  175. // field is empty or not. This may be used to include empty fields in
  176. // Patch requests.
  177. ForceSendFields []string `json:"-"`
  178. // NullFields is a list of field names (e.g. "AllowExternalMembers") to
  179. // include in API requests with the JSON null value. By default, fields
  180. // with empty values are omitted from API requests. However, any field
  181. // with an empty value appearing in NullFields will be sent to the
  182. // server as null. It is an error if a field in this list has a
  183. // non-empty value. This may be used to include null fields in Patch
  184. // requests.
  185. NullFields []string `json:"-"`
  186. }
  187. func (s *Groups) MarshalJSON() ([]byte, error) {
  188. type NoMethod Groups
  189. raw := NoMethod(*s)
  190. return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
  191. }
  192. // method id "groupsSettings.groups.get":
  193. type GroupsGetCall struct {
  194. s *Service
  195. groupUniqueId string
  196. urlParams_ gensupport.URLParams
  197. ifNoneMatch_ string
  198. ctx_ context.Context
  199. header_ http.Header
  200. }
  201. // Get: Gets one resource by id.
  202. func (r *GroupsService) Get(groupUniqueId string) *GroupsGetCall {
  203. c := &GroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  204. c.groupUniqueId = groupUniqueId
  205. return c
  206. }
  207. // Fields allows partial responses to be retrieved. See
  208. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  209. // for more information.
  210. func (c *GroupsGetCall) Fields(s ...googleapi.Field) *GroupsGetCall {
  211. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  212. return c
  213. }
  214. // IfNoneMatch sets the optional parameter which makes the operation
  215. // fail if the object's ETag matches the given value. This is useful for
  216. // getting updates only after the object has changed since the last
  217. // request. Use googleapi.IsNotModified to check whether the response
  218. // error from Do is the result of In-None-Match.
  219. func (c *GroupsGetCall) IfNoneMatch(entityTag string) *GroupsGetCall {
  220. c.ifNoneMatch_ = entityTag
  221. return c
  222. }
  223. // Context sets the context to be used in this call's Do method. Any
  224. // pending HTTP request will be aborted if the provided context is
  225. // canceled.
  226. func (c *GroupsGetCall) Context(ctx context.Context) *GroupsGetCall {
  227. c.ctx_ = ctx
  228. return c
  229. }
  230. // Header returns an http.Header that can be modified by the caller to
  231. // add HTTP headers to the request.
  232. func (c *GroupsGetCall) Header() http.Header {
  233. if c.header_ == nil {
  234. c.header_ = make(http.Header)
  235. }
  236. return c.header_
  237. }
  238. func (c *GroupsGetCall) doRequest(alt string) (*http.Response, error) {
  239. reqHeaders := make(http.Header)
  240. for k, v := range c.header_ {
  241. reqHeaders[k] = v
  242. }
  243. reqHeaders.Set("User-Agent", c.s.userAgent())
  244. if c.ifNoneMatch_ != "" {
  245. reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  246. }
  247. var body io.Reader = nil
  248. c.urlParams_.Set("alt", alt)
  249. urls := googleapi.ResolveRelative(c.s.BasePath, "{groupUniqueId}")
  250. urls += "?" + c.urlParams_.Encode()
  251. req, _ := http.NewRequest("GET", urls, body)
  252. req.Header = reqHeaders
  253. googleapi.Expand(req.URL, map[string]string{
  254. "groupUniqueId": c.groupUniqueId,
  255. })
  256. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  257. }
  258. // Do executes the "groupsSettings.groups.get" call.
  259. // Exactly one of *Groups or error will be non-nil. Any non-2xx status
  260. // code is an error. Response headers are in either
  261. // *Groups.ServerResponse.Header or (if a response was returned at all)
  262. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  263. // check whether the returned error was because http.StatusNotModified
  264. // was returned.
  265. func (c *GroupsGetCall) Do(opts ...googleapi.CallOption) (*Groups, error) {
  266. gensupport.SetOptions(c.urlParams_, opts...)
  267. res, err := c.doRequest("json")
  268. if res != nil && res.StatusCode == http.StatusNotModified {
  269. if res.Body != nil {
  270. res.Body.Close()
  271. }
  272. return nil, &googleapi.Error{
  273. Code: res.StatusCode,
  274. Header: res.Header,
  275. }
  276. }
  277. if err != nil {
  278. return nil, err
  279. }
  280. defer googleapi.CloseBody(res)
  281. if err := googleapi.CheckResponse(res); err != nil {
  282. return nil, err
  283. }
  284. ret := &Groups{
  285. ServerResponse: googleapi.ServerResponse{
  286. Header: res.Header,
  287. HTTPStatusCode: res.StatusCode,
  288. },
  289. }
  290. target := &ret
  291. if err := gensupport.DecodeResponse(target, res); err != nil {
  292. return nil, err
  293. }
  294. return ret, nil
  295. // {
  296. // "description": "Gets one resource by id.",
  297. // "httpMethod": "GET",
  298. // "id": "groupsSettings.groups.get",
  299. // "parameterOrder": [
  300. // "groupUniqueId"
  301. // ],
  302. // "parameters": {
  303. // "groupUniqueId": {
  304. // "description": "The resource ID",
  305. // "location": "path",
  306. // "required": true,
  307. // "type": "string"
  308. // }
  309. // },
  310. // "path": "{groupUniqueId}",
  311. // "response": {
  312. // "$ref": "Groups"
  313. // },
  314. // "scopes": [
  315. // "https://www.googleapis.com/auth/apps.groups.settings"
  316. // ]
  317. // }
  318. }
  319. // method id "groupsSettings.groups.patch":
  320. type GroupsPatchCall struct {
  321. s *Service
  322. groupUniqueId string
  323. groups *Groups
  324. urlParams_ gensupport.URLParams
  325. ctx_ context.Context
  326. header_ http.Header
  327. }
  328. // Patch: Updates an existing resource. This method supports patch
  329. // semantics.
  330. func (r *GroupsService) Patch(groupUniqueId string, groups *Groups) *GroupsPatchCall {
  331. c := &GroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  332. c.groupUniqueId = groupUniqueId
  333. c.groups = groups
  334. return c
  335. }
  336. // Fields allows partial responses to be retrieved. See
  337. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  338. // for more information.
  339. func (c *GroupsPatchCall) Fields(s ...googleapi.Field) *GroupsPatchCall {
  340. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  341. return c
  342. }
  343. // Context sets the context to be used in this call's Do method. Any
  344. // pending HTTP request will be aborted if the provided context is
  345. // canceled.
  346. func (c *GroupsPatchCall) Context(ctx context.Context) *GroupsPatchCall {
  347. c.ctx_ = ctx
  348. return c
  349. }
  350. // Header returns an http.Header that can be modified by the caller to
  351. // add HTTP headers to the request.
  352. func (c *GroupsPatchCall) Header() http.Header {
  353. if c.header_ == nil {
  354. c.header_ = make(http.Header)
  355. }
  356. return c.header_
  357. }
  358. func (c *GroupsPatchCall) doRequest(alt string) (*http.Response, error) {
  359. reqHeaders := make(http.Header)
  360. for k, v := range c.header_ {
  361. reqHeaders[k] = v
  362. }
  363. reqHeaders.Set("User-Agent", c.s.userAgent())
  364. var body io.Reader = nil
  365. body, err := googleapi.WithoutDataWrapper.JSONReader(c.groups)
  366. if err != nil {
  367. return nil, err
  368. }
  369. reqHeaders.Set("Content-Type", "application/json")
  370. c.urlParams_.Set("alt", alt)
  371. urls := googleapi.ResolveRelative(c.s.BasePath, "{groupUniqueId}")
  372. urls += "?" + c.urlParams_.Encode()
  373. req, _ := http.NewRequest("PATCH", urls, body)
  374. req.Header = reqHeaders
  375. googleapi.Expand(req.URL, map[string]string{
  376. "groupUniqueId": c.groupUniqueId,
  377. })
  378. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  379. }
  380. // Do executes the "groupsSettings.groups.patch" call.
  381. // Exactly one of *Groups or error will be non-nil. Any non-2xx status
  382. // code is an error. Response headers are in either
  383. // *Groups.ServerResponse.Header or (if a response was returned at all)
  384. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  385. // check whether the returned error was because http.StatusNotModified
  386. // was returned.
  387. func (c *GroupsPatchCall) Do(opts ...googleapi.CallOption) (*Groups, error) {
  388. gensupport.SetOptions(c.urlParams_, opts...)
  389. res, err := c.doRequest("json")
  390. if res != nil && res.StatusCode == http.StatusNotModified {
  391. if res.Body != nil {
  392. res.Body.Close()
  393. }
  394. return nil, &googleapi.Error{
  395. Code: res.StatusCode,
  396. Header: res.Header,
  397. }
  398. }
  399. if err != nil {
  400. return nil, err
  401. }
  402. defer googleapi.CloseBody(res)
  403. if err := googleapi.CheckResponse(res); err != nil {
  404. return nil, err
  405. }
  406. ret := &Groups{
  407. ServerResponse: googleapi.ServerResponse{
  408. Header: res.Header,
  409. HTTPStatusCode: res.StatusCode,
  410. },
  411. }
  412. target := &ret
  413. if err := gensupport.DecodeResponse(target, res); err != nil {
  414. return nil, err
  415. }
  416. return ret, nil
  417. // {
  418. // "description": "Updates an existing resource. This method supports patch semantics.",
  419. // "httpMethod": "PATCH",
  420. // "id": "groupsSettings.groups.patch",
  421. // "parameterOrder": [
  422. // "groupUniqueId"
  423. // ],
  424. // "parameters": {
  425. // "groupUniqueId": {
  426. // "description": "The resource ID",
  427. // "location": "path",
  428. // "required": true,
  429. // "type": "string"
  430. // }
  431. // },
  432. // "path": "{groupUniqueId}",
  433. // "request": {
  434. // "$ref": "Groups"
  435. // },
  436. // "response": {
  437. // "$ref": "Groups"
  438. // },
  439. // "scopes": [
  440. // "https://www.googleapis.com/auth/apps.groups.settings"
  441. // ]
  442. // }
  443. }
  444. // method id "groupsSettings.groups.update":
  445. type GroupsUpdateCall struct {
  446. s *Service
  447. groupUniqueId string
  448. groups *Groups
  449. urlParams_ gensupport.URLParams
  450. ctx_ context.Context
  451. header_ http.Header
  452. }
  453. // Update: Updates an existing resource.
  454. func (r *GroupsService) Update(groupUniqueId string, groups *Groups) *GroupsUpdateCall {
  455. c := &GroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  456. c.groupUniqueId = groupUniqueId
  457. c.groups = groups
  458. return c
  459. }
  460. // Fields allows partial responses to be retrieved. See
  461. // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
  462. // for more information.
  463. func (c *GroupsUpdateCall) Fields(s ...googleapi.Field) *GroupsUpdateCall {
  464. c.urlParams_.Set("fields", googleapi.CombineFields(s))
  465. return c
  466. }
  467. // Context sets the context to be used in this call's Do method. Any
  468. // pending HTTP request will be aborted if the provided context is
  469. // canceled.
  470. func (c *GroupsUpdateCall) Context(ctx context.Context) *GroupsUpdateCall {
  471. c.ctx_ = ctx
  472. return c
  473. }
  474. // Header returns an http.Header that can be modified by the caller to
  475. // add HTTP headers to the request.
  476. func (c *GroupsUpdateCall) Header() http.Header {
  477. if c.header_ == nil {
  478. c.header_ = make(http.Header)
  479. }
  480. return c.header_
  481. }
  482. func (c *GroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
  483. reqHeaders := make(http.Header)
  484. for k, v := range c.header_ {
  485. reqHeaders[k] = v
  486. }
  487. reqHeaders.Set("User-Agent", c.s.userAgent())
  488. var body io.Reader = nil
  489. body, err := googleapi.WithoutDataWrapper.JSONReader(c.groups)
  490. if err != nil {
  491. return nil, err
  492. }
  493. reqHeaders.Set("Content-Type", "application/json")
  494. c.urlParams_.Set("alt", alt)
  495. urls := googleapi.ResolveRelative(c.s.BasePath, "{groupUniqueId}")
  496. urls += "?" + c.urlParams_.Encode()
  497. req, _ := http.NewRequest("PUT", urls, body)
  498. req.Header = reqHeaders
  499. googleapi.Expand(req.URL, map[string]string{
  500. "groupUniqueId": c.groupUniqueId,
  501. })
  502. return gensupport.SendRequest(c.ctx_, c.s.client, req)
  503. }
  504. // Do executes the "groupsSettings.groups.update" call.
  505. // Exactly one of *Groups or error will be non-nil. Any non-2xx status
  506. // code is an error. Response headers are in either
  507. // *Groups.ServerResponse.Header or (if a response was returned at all)
  508. // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  509. // check whether the returned error was because http.StatusNotModified
  510. // was returned.
  511. func (c *GroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Groups, error) {
  512. gensupport.SetOptions(c.urlParams_, opts...)
  513. res, err := c.doRequest("json")
  514. if res != nil && res.StatusCode == http.StatusNotModified {
  515. if res.Body != nil {
  516. res.Body.Close()
  517. }
  518. return nil, &googleapi.Error{
  519. Code: res.StatusCode,
  520. Header: res.Header,
  521. }
  522. }
  523. if err != nil {
  524. return nil, err
  525. }
  526. defer googleapi.CloseBody(res)
  527. if err := googleapi.CheckResponse(res); err != nil {
  528. return nil, err
  529. }
  530. ret := &Groups{
  531. ServerResponse: googleapi.ServerResponse{
  532. Header: res.Header,
  533. HTTPStatusCode: res.StatusCode,
  534. },
  535. }
  536. target := &ret
  537. if err := gensupport.DecodeResponse(target, res); err != nil {
  538. return nil, err
  539. }
  540. return ret, nil
  541. // {
  542. // "description": "Updates an existing resource.",
  543. // "httpMethod": "PUT",
  544. // "id": "groupsSettings.groups.update",
  545. // "parameterOrder": [
  546. // "groupUniqueId"
  547. // ],
  548. // "parameters": {
  549. // "groupUniqueId": {
  550. // "description": "The resource ID",
  551. // "location": "path",
  552. // "required": true,
  553. // "type": "string"
  554. // }
  555. // },
  556. // "path": "{groupUniqueId}",
  557. // "request": {
  558. // "$ref": "Groups"
  559. // },
  560. // "response": {
  561. // "$ref": "Groups"
  562. // },
  563. // "scopes": [
  564. // "https://www.googleapis.com/auth/apps.groups.settings"
  565. // ]
  566. // }
  567. }